SimpleITK
SimpleITK copied to clipboard
How to convert DisplacementFieldTransform to Image format and save it?
How to convert DisplacementFieldTransform to Image format and save it? For example, as shown below: final_transform = sitk.DisplacementFieldTransform(displacement_field) I want to save final_transform to .nii.gz format
The method GetDisplacementField returns an Image that you can save as .nii.gz with the WriteImage function.