Closed ncullen93 closed 1 month ago
Nice. Is xfrm
here a composite transform, that could be written to a .h5
file?
Yes. Writing to h5 then reading back and applying works fine.
Printing:
ANTsTransform
Type : CompositeTransform
Dimension : 2
Precision : float
Great! Can composite transforms themselves be composed? Eg, I have subjectToTemplate.h5 and then templateToAnotherztemplate.h5
Yes that appears to work since they're stored as a general itk::Transform like all the other types besides the deformation field transform.
This PR lets you compose transforms of multiple types. There are really only two types of transforms wrapped by antspy though: itk::Transform and itk::DisplacementFieldTransform.
This example should work: