# How to transform sagittal images to Axis images？

**URL:** <https://discourse.slicer.org/t/how-to-transform-sagittal-images-to-axis-images/25614>\
**Category:** Community\
**Tags:** dicom\
**Created:** [October 9, 2022, 9:07am UTC](https://discourse.slicer.org/t/how-to-transform-sagittal-images-to-axis-images/25614 "2022-10-09T09:07:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [October 9, 2022, 9:07am UTC](https://discourse.slicer.org/t/how-to-transform-sagittal-images-to-axis-images/25614/1 "2022-10-09T09:07:02Z")

</div>

Hello，friends,  
I am studying deep learning,I need to change the dicom images into the same position.  
how to transform sagittal DICOM to axial DICOM？

as you see,the default position is sagittal,when I load it into slicer ,it can show axial,but when I use Creat a DICOM series module to creat a new dicom series ,it is still Sagittal position.  
 ![1665306062603](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/b/9b51201a95fbd6f1c79b1950514038baec278779.jpeg)

---

<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:** [October 9, 2022, 2:16pm UTC](https://discourse.slicer.org/t/how-to-transform-sagittal-images-to-axis-images/25614/2 "2022-10-09T14:16:03Z")

</div>

You can use the Orient Scalar Volume module for that.

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [October 9, 2022, 10:52pm UTC](https://discourse.slicer.org/t/how-to-transform-sagittal-images-to-axis-images/25614/3 "2022-10-09T22:52:01Z")

</div>

> [@pieper](#):
>
> ule for that.

Great! Thank you very much,Mr. Pieper,it works.

Another question is how I can get the python code,I want to write it into my python scripts,as a part of pretreatments for batch.

---

<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:** [October 10, 2022, 4:25pm UTC](https://discourse.slicer.org/t/how-to-transform-sagittal-images-to-axis-images/25614/4 "2022-10-10T16:25:55Z")

</div>

The script repository is a good place to get ideas.

[https://slicer.readthedocs.io/en/latest/developer\_guide/script\_repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository)

Although a lot of the training materials are for slightly older versions, they are still valid for understanding how Slicer works and ways to address tasks via programming:

[https://www.slicer.org/wiki/Documentation/4.10/Training#Tutorials\_for\_software\_developers](https://www.slicer.org/wiki/Documentation/4.10/Training#Tutorials_for_software_developers)
