registration_data#
- class ITKImage(source: str | ndarray, perm=None)[source]#
Bases:
object- brutal_rotate(rotation_axis, power=1)[source]#
Perform a 90° rotation of the 3d image without editing the metadata accordingly.
- property index_to_physical_matrix#
Return the physical to index affine transformation, as a projective transform.
- property index_to_physical_pair#
Return the physical to index affine transformation, as a pair (matrix, translation_vector).
- class RegistrationData(fixed_image: ITKImage, moving_image: ITKImage, fixed_points: array | None = None, moving_points: array | None = None, reg_params: elastixParameterObject | None = None, pullback_image: itkImagePython | None = None, transform_params: elastixParameterObject | None = None)[source]#
Bases:
objectClass that retains the data of a registration attempt.
Encapsulate fixed and moving image and points, chosen elastix registration parameters, computed transform parameters, transformed image, transformed fixed points, registration scores for various metrics. All points are stored in index coordinates (numpy order), as the data arrays of napari.
- fixed_points: array | None = None#
- moving_points: array | None = None#
- pullback_image: itkImagePython | None = None#
- reg_params: elastixParameterObject | None = None#
- transform_params: elastixParameterObject | None = None#