LocalToTemplateTransform#

class polpo.preprocessing.mri.LocalToTemplateTransform(template_affine=None)[source]#

Bases: PreprocessingStep

Get transform from local to template system.

Parameters:

template_affine (array-like) – Target affine matrix.

apply(data)[source]#

Apply step.

Parameters:

data (array-like or tuple[array-like; 2]) – (local, template) affine matrices.

Returns:

transformation_matrix (np.array) – Transformation matrix.