After spinning an image in different axes, how to save the reformatted image as a .nii file?
it is not clear how you mean by “spining image in different axes”. if you use Transforms
module, you should harden you transform (right click on volume, and choose harden Transform), and save it as nii.
If you used `Mouse Interaction’ widget to rotate the slice views, then you haven’t done anything to your data, you can’t really save that to the disk.
I find that interactive reslicing of an image is the easiest by using Crop Volume module. You can rotate the ROI as described here: Saving a select view as a DICOM file - #2 by lassoan
I work with the “Reformat” widget. You can either you mouse interaction or sliders on the widget to transform the box of the image. I need to save the image in the new-generated box after reformatting it.
The “Transforms” widget may also work. But, when I change the values (e.g., Rotation), I cannot visulaize the result of that (the rotated image). Then, I do not know what I saving.
So, I do not know if I have explained it properly, but I need to rotate the image and save the result in the new box as a new image.
Any method might suggest for that?
Bests,
Shahin
Have you tried the method that I described at the post linked above? It requires manual alignment of the ROI or a short Python code snippet that does this adjustment automatically.
We don’t provide a convenient GUI for this because this is not commonly needed (if any module needs the current image slice it can easily retrieve it). What is the clinical problem that you would like to solve? What approach/tools do you plan to use for it?