How to convert between ITK transforms and Slicer transform nodes?

dzenanz
Wed, 31 Jan 2024 20:07:22 +0000
Development

I am creating a scripted module for ANTs registration (wip). It is invoking a wrapped itk::ANTSRegistration. For Slicer node ↔ ITKImage conversion, I am using previously added utility functions. But I am not aware of a convenient way to convert between ITK transforms and Slicer transform nodes.

These static methods from vtkITKTransformConverter look interesting. I don’t know how to access them from Python, and whether that is even possible. I assume vtkTransforms would be usable for invoking GetTransformFromNode and SetAndObserveTransformToParent methods of vtkMRMLTransformNode.

My fallback is using existing utility functions, which will almost certainly necessitate more coding.

Are there any suggestions?

9 posts - 5 participants