algorithms.registration.chain_transform

Module: algorithms.registration.chain_transform

Inheritance diagram for nipy.algorithms.registration.chain_transform:

Inheritance diagram of nipy.algorithms.registration.chain_transform

Chain transforms

ChainTransform

class nipy.algorithms.registration.chain_transform.ChainTransform(optimizable, pre=None, post=None)

Bases: object

__init__(optimizable, pre=None, post=None)

Create chain transform instance

Parameters:
optimizablearray or Transform

Transform that we are optimizing. If this is an array, then assume it’s an affine matrix.

preNone or array or Transform, optional

If not None, a transform that should be applied to points before applying the optimizable transform. If an array, then assume it’s an affine matrix.

postNone or Transform, optional

If not None, a transform that should be applied to points after applying any pre transform, and then the optimizable transform. If an array, assume it’s an affine matrix

apply(pts)

Apply full transformation to points pts

If there are N points, then pts will be N by 3

Parameters:
ptsarray-like

array of points

Returns:
transformed_ptsarray

N by 3 array of transformed points

property param

get/set param