# Exported NRRD file (segmentation) misaligned with the original DICOM file (MRI).

**URL:** <https://discourse.slicer.org/t/exported-nrrd-file-segmentation-misaligned-with-the-original-dicom-file-mri/21643>\
**Category:** Support\
**Created:** [January 26, 2022, 7:48pm UTC](https://discourse.slicer.org/t/exported-nrrd-file-segmentation-misaligned-with-the-original-dicom-file-mri/21643 "2022-01-26T19:48:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luisfilipeap](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/luisfilipeap/32/13974_2.png) [@luisfilipeap](https://discourse.slicer.org/u/luisfilipeap)\
**Post date:** [January 26, 2022, 7:48pm UTC](https://discourse.slicer.org/t/exported-nrrd-file-segmentation-misaligned-with-the-original-dicom-file-mri/21643/1 "2022-01-26T19:48:03Z")

</div>

Hello all,

Using the following header I saved my segmentation volume stored in the variable ‘out’ in a NRRD file:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/7/671d7157a9f0f32b6ff581fe3424a65778c6a49f.png)

Loading both original MRI, and the segmented nrrd volume. We may check that the volume information of both structures are pretty close:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/f/7ff9cd7fba39d74d3caa24ddee0a88a670673c51.png)

But some information is missing probably in the header file I saved since I couldn’t found a perfect position match between the NRRD and the original DICOM.

Here is how I see the 3D visualization of both volumes.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/b/9b5d2999b457fae345558d389d71440e1d097411.png)

Would you have any idea what I can try next?

thanks a lot

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 26, 2022, 7:51pm UTC](https://discourse.slicer.org/t/exported-nrrd-file-segmentation-misaligned-with-the-original-dicom-file-mri/21643/2 "2022-01-26T19:51:22Z")

</div>

Slicer uses RAS coordinate system internally (for backward compatibility) but uses LPS in all files (for compatibility with DICOM and other software). You can convert between two coordinate systems by inverting the sign of the first two coordinate values.
