# Load image with correct orientation

**URL:** <https://discourse.slicer.org/t/load-image-with-correct-orientation/36711>\
**Category:** Development\
**Created:** [June 12, 2024, 2:44am UTC](https://discourse.slicer.org/t/load-image-with-correct-orientation/36711 "2024-06-12T02:44:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![haphantran](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/haphantran/32/18446_2.png) [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Post date:** [June 12, 2024, 2:44am UTC](https://discourse.slicer.org/t/load-image-with-correct-orientation/36711/1 "2024-06-12T02:44:01Z")

</div>

Hi team,  
Thank you for the help in advance.  
I’m trying to load 2 images into 3D Slicer. If I load it manually (Import data), 3D Slicer display them in the correct orientation as below.  
Image 0 (Green view)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/9/d9368d3e5db3e5af324489ccf4daad8131d9311c.jpeg)  
Image 1 (Yellow View)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/f/df8de61137c4b38f94997d8b47f9984bab5696af.jpeg)  
But I tried to write code and can’t distinguish between these 2 images. As can be seen from the screenshots, the JIK to RAS direction Matrix are the same, Scan Order are the same too.  
Which field should I use to display the image in the correct orientation?

---

<div class="post-metadata">

**Author:** ![haphantran](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/haphantran/32/18446_2.png) [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Post date:** [June 24, 2024, 2:07pm UTC](https://discourse.slicer.org/t/load-image-with-correct-orientation/36711/2 "2024-06-24T14:07:40Z")

</div>

Hi guys,  
Do anyone have any info on this?  
Thank you,  
Ha Phan.

---

<div class="post-metadata">

**Author:** ![haphantran](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/haphantran/32/18446_2.png) [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Post date:** [August 1, 2024, 2:17am UTC](https://discourse.slicer.org/t/load-image-with-correct-orientation/36711/3 "2024-08-01T02:17:36Z")

</div>

Bump this up. Please let me know if you have some information regarding this.

---

<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 1, 2024, 12:45pm UTC](https://discourse.slicer.org/t/load-image-with-correct-orientation/36711/4 "2024-08-01T12:45:21Z")

</div>

Based on the the volume information you can see that these are single slices in different axes of the volume - the first has a single ‘J’ slice, while the second has a single ‘I’ slice even though both are “axial IS”. So if you need to distinguish them programmatically you’ll need to look at the shape of the corresponding array.
