# Problem: How can i transform nifti files forever?

**URL:** <https://discourse.slicer.org/t/problem-how-can-i-transform-nifti-files-forever/24771>\
**Category:** Support\
**Tags:** transforms\
**Created:** [August 15, 2022, 7:18pm UTC](https://discourse.slicer.org/t/problem-how-can-i-transform-nifti-files-forever/24771 "2022-08-15T19:18:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikkos](https://avatars.discourse-cdn.com/v4/letter/n/f0a364/32.png) [@nikkos](https://discourse.slicer.org/u/nikkos)\
**Post date:** [August 15, 2022, 7:18pm UTC](https://discourse.slicer.org/t/problem-how-can-i-transform-nifti-files-forever/24771/1 "2022-08-15T19:18:22Z")

</div>

Hello dear slicer community,

I have the following problem when transforming Nifti files. Because they are not transfomed correctly. My procedure is the following:

1. I open the nifti file.
2. I go to the Transform tab , create a new linear transform and then under apply transform move the nifti from Transformable to Transform. Only then I can see what changes when I turn the rotation sliders.
3. when I have set everything so far, I go back to Data. 4.
4. then I click on the nifti and make harden Transform.
5. when I save now, it saves but when I reload it, it looks like the transform was done twice.
6. I have the same thing when i click on the eye once to hide it and then click on it again to show it.

Maybe someone here can help me or knows a similar problem, thanks a lot

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 16, 2022, 2:01pm UTC](https://discourse.slicer.org/t/problem-how-can-i-transform-nifti-files-forever/24771/2 "2022-08-16T14:01:18Z")

</div>

Check that you are configured to see the patient view rather than the image-referenced view, which you can set as described in the link below. Note you can also volume render or make the slice views visible in 3D to see the effect of the transforms.

> [@Slice view orientation of oblique/rotated volumes - aligned to volume or anatomical axes?](https://discourse.slicer.org/t/slice-view-orientation-of-oblique-rotated-volumes-aligned-to-volume-or-anatomical-axes/20092/2):
>
> In earlier Slicer versions, slice views were initialized to be aligned with anatomical axes (as defined when the patient was scanned). In recent Slicer Preview Releases we switched to aligning slice views with voxel arrays because this seems to be what most users expect. You can switch between the two orientations using [slice view controls](https://slicer.readthedocs.io/en/latest/user_guide/user_interface.html#slice-view): choose an anatomical plane using the “Slice orientation” selector to align with anatomical axes click “Rotate to volume plane” button to snap the slice pl…

As a side note, nii files are slightly lossy because they store the transform with 32bit floats while Slicer internally uses 64bit which is better preserved in formats like nrrd and dicom. This may sound like a small detail but it can lead to visibly different results or numerical errors when comparing orientations.
