mdreg.elastix.transform#
- mdreg.elastix.transform(moving, transfo, spacing=1)[source]#
Transforms an image using a transformation produced by
mdreg.elastix.coreg()
.- Parameters:
moving – numpy.ndarray The input 2D or 3D image array.
transfo – itk.elastixParameterObject itk parameter object encoding the transformation from moving to fixed image.
spacing – array-like Pixel spacing in mm. This can be a single scalar if all dimensions are equal, or an array of 2 elements (for 2D data) or 3 elements ( for 3D data). Defaults to 1.
- Returns:
The transformed image.
- Return type: