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 PythonTransformCollectionimplementation.Assumptions:
input physical regions cover output physical region
domain overlap is handled in TransformCollection
- Parameters:
transform_collection – The
TransformCollectionto discretely sample into anitk.DisplacementFieldTransformoutput.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.DisplacementFieldTransformdiscretizing the input collection of transforms. May be applied in sequence afterinitial_transformto map from an input to an output image domain.