# Save transformed data

**URL:** <https://discourse.slicer.org/t/save-transformed-data/2151>\
**Category:** Support\
**Created:** [February 22, 2018, 5:31pm UTC](https://discourse.slicer.org/t/save-transformed-data/2151 "2018-02-22T17:31:30Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [March 5, 2018, 3:22pm UTC](https://discourse.slicer.org/t/save-transformed-data/2151/21 "2018-03-05T15:22:47Z")

</div>

Andras, thank you!

> [@lassoan](#):
>
> Resampling with a reference volume is still be needed when the goal is to have various volumes with the same geometry. To achieve this, one volume can be transformed using hardening the transform; then this volume can be used as reference volume for resampling all the other volumes.

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?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 5, 2018, 3:38pm UTC](https://discourse.slicer.org/t/save-transformed-data/2151/22 "2018-03-05T15:38:35Z")

</div>

> 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).

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [March 5, 2018, 3:50pm UTC](https://discourse.slicer.org/t/save-transformed-data/2151/23 "2018-03-05T15:50:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Noemi\_Garau](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/noemi_garau/32/15911_2.png) [@Noemi\_Garau](https://discourse.slicer.org/u/Noemi_Garau)\
**Post date:** [July 6, 2022, 9:42pm UTC](https://discourse.slicer.org/t/save-transformed-data/2151/24 "2022-07-06T21:42:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 7, 2022, 12:41am UTC](https://discourse.slicer.org/t/save-transformed-data/2151/25 "2022-07-07T00:41:17Z")

</div>

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).

[Previous page](https://discourse.slicer.org/t/save-transformed-data/2151.md?page=1)
