Save transformed data

Andras, thank you!

I don’t understand what you meant above. What are the steps to resample a give volume into a specific geometry using the “harden transform” feature?

What are the steps to resample a give volume into a specific geometry using the “harden transform” feature?

This is not done by “harden transform” but you can use one of the resampling modules for this. The same way as before.

The new feature is that if you don’t have a reference volume, then you can create it by simply hardening the transform on a volume. Before this feature was available, you had to use Crop volume module to create a reference volume (or harden large translation/rotation components of the transform and use the resulting volume as reference volume).

1 Like

This makes sense now, thank you for the clarification Andras!

Is there a similar approach to save the transformation file (.tfm)?

Yes, sure you can harden a transform on another transform. While multiple linear transforms are collapsed into one linear transform; if you harden non-linear transforms then you’ll have composite transforms that are all listed in the transform file.

If you want then you can get a single combined displacement field of all the transforms as a grid transform. For this, there is no need to harden the transform but simply use Transforms module’s Convert section. You can convert the grid transform to a bspline transform using ScatteredTransform extension for a more efficient representation (10-100x smaller file size, with some potential loss of minor details for highly irregular displacement fields).