algorithms.registration.transform

Module: algorithms.registration.transform

Inheritance diagram for nipy.algorithms.registration.transform:

digraph inheritance87b23de500 { rankdir=LR; size="8.0, 12.0"; "registration.transform.Transform" [URL="#nipy.algorithms.registration.transform.Transform",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="A default transformation class"]; }

Generic transform class

This implementation specifies an API. We’ve done our best to avoid checking instances, so any class implementing this API should be valid in the places (like registration routines) that use transforms. If that isn’t true, it’s a bug.

Transform

class nipy.algorithms.registration.transform.Transform(func)[source]

Bases: object

A default transformation class

This class specifies the tiny API. That is, the class should implement:

  • obj.param - the transformation exposed as a set of parameters. Changing param should change the transformation

  • obj.apply(pts) - accepts (N,3) array-like of points in 3 dimensions, returns an (N, 3) array of transformed points

  • obj.compose(xform) - accepts another object implementing apply, and returns a new transformation object, where the resulting transformation is the composition of the obj transform onto the xform transform.

__init__(func)[source]

Initialize self. See help(type(self)) for accurate signature.

apply(pts)[source]
compose(other)[source]
property param