# Oblique CT volume reformation

**URL:** <https://discourse.slicer.org/t/oblique-ct-volume-reformation/33823>\
**Category:** Support\
**Tags:** python, reformat\
**Created:** [January 17, 2024, 1:21pm UTC](https://discourse.slicer.org/t/oblique-ct-volume-reformation/33823 "2024-01-17T13:21:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anuta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anuta/32/68992_2.png) [@Anuta](https://discourse.slicer.org/u/Anuta)\
**Post date:** [January 17, 2024, 1:21pm UTC](https://discourse.slicer.org/t/oblique-ct-volume-reformation/33823/1 "2024-01-17T13:21:01Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [January 17, 2024, 2:16pm UTC](https://discourse.slicer.org/t/oblique-ct-volume-reformation/33823/2 "2024-01-17T14:16:00Z")

</div>

Hi

Please check [here](https://slicer.readthedocs.io/en/latest/user_guide/modules/cropvolume.html#use-cases):

> **Definition of new axis directions** for your image: [Interpolated cropping options](https://slicer.readthedocs.io/en/latest/user_guide/modules/cropvolume.html#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](https://slicer.readthedocs.io/en/latest/user_guide/modules/transforms.html) module.

That should answer your `oblique reformation` question

Hope it helps

---

<div class="post-metadata">

**Author:** ![Anuta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anuta/32/68992_2.png) [@Anuta](https://discourse.slicer.org/u/Anuta)\
**Post date:** [January 17, 2024, 2:50pm UTC](https://discourse.slicer.org/t/oblique-ct-volume-reformation/33823/3 "2024-01-17T14:50:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Anuta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anuta/32/68992_2.png) [@Anuta](https://discourse.slicer.org/u/Anuta)\
**Post date:** [January 23, 2024, 12:17pm UTC](https://discourse.slicer.org/t/oblique-ct-volume-reformation/33823/4 "2024-01-23T12:17:55Z")

</div>

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.
