itk_dreg.reduce_dfield.transform
¶
Module Contents¶
Functions¶
Compose multiple input displacement fields into one transform. |
Data¶
Utility methods to aid distributed registration using ITK Python, ITKElastix, and Dask. |
API¶
- itk_dreg.reduce_dfield.transform.logger¶
‘getLogger(…)’
Utility methods to aid distributed registration using ITK Python, ITKElastix, and Dask.
- itk_dreg.reduce_dfield.transform.collection_to_deformation_field_transform(transform_collection: itk_dreg.reduce_dfield.transform_collection.TransformCollection, reference_image: itk.Image, initial_transform: itk_dreg.base.itk_typing.TransformType, scale_factors: List[float]) itk.DisplacementFieldTransform[itk.D, 3] ¶
Compose multiple input displacement fields into one transform.
Follows the same algorithm as
itkTransformToDisplacementFieldFilter
, but is compatible with the PythonTransformCollection
implementation.Assumptions:
input physical regions cover output physical region
domain overlap is handled in TransformCollection
- Parameters:
transform_collection – The
TransformCollection
to discretely sample into anitk.DisplacementFieldTransform
output.reference_image – The image to reference to apply spatial metadata to the output displacement field image.
initial_transform – The initial transform to apply to the reference image to get appropriate initial positioning for the displacement field image.
scale_factors – The desired scale factors to reduce or increase the size of the displacement field image grid relative to the reference image.
- Returns:
An
itk.DisplacementFieldTransform
discretizing the input collection of transforms. May be applied in sequence afterinitial_transform
to map from an input to an output image domain.