Hello! I am new to the Slicer and just starting my project. My main intention is to reslice and save some CT volume in angles (X, Y and Z directions), wich I get from external device, without opening the Slicer itself. I also did some search in documentation, but I am not sure, in which direction should I go now.
Firstly, I would like to know, if oblique reformation of the whole volume is possible in Slicer. I found that with “Reformat” module I can rotate individual slices, but I am not sure, if I can save resliced volume as a whole.
Secondly, I would like to know, how to access this module with a python script to pass the angles to the module without typing them down (the whole “Reformat” module is written on C and I didn’t see any example with Python yet).
Looking forward to your answers!
Hi
Please check here:
Definition of new axis directions for your image: Interpolated cropping options allows the output volume to have different axis directions that the original volume. The output volume’s axis directions will be aligned with the ROI widget’s axes. ROI widget axes can be rotated using the Transforms module.
That should answer your oblique reformation
question
Hope it helps
Thank you for your answer! As far as I understand, setting new axis direction and reslicing the volume are two different operation. I think, this module won’t allow me to perform reslicing.
Ok, so the answer is partially the same, as mentioned in the first comment.
One more step is required after applying transformation. In order to perform reslicing in new orientation “Resample Scalar volume” module is required, though I still didn’t find out how to perform all of this programmatically.