# 3D Visualization in Slicerde

**URL:** https://discourse.slicer.org/t/3d-visualization-in-slicerde/30025
**Category:** Development
**Tags:** segmentation, dicom
**Created:** [June 14, 2023, 3:48am UTC](https://discourse.slicer.org/t/3d-visualization-in-slicerde/30025 "2023-06-14T03:48:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DzungDinh](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@DzungDinh](https://discourse.slicer.org/u/DzungDinh)
#### Post date: [June 14, 2023, 3:48am UTC](https://discourse.slicer.org/t/3d-visualization-in-slicerde/30025/1 "2023-06-14T03:48:42Z")

</div>

Hello!

I have a question regarding the best practice for visualizing the MRI scans and their segmentation. When I import the MRI scans and segmentations, it doesn’t align (they are in different locations). Moreover, the segmentation can only be viewed in 3D and not in 2D slices using the subwindow.

So my question is, how should I save both MRI and segmentation after getting the segmentation from a PyTorch model? Like, what should the shape be? What should the format be?

Thank you for your help!

---

<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: [June 16, 2023, 2:31pm UTC](https://discourse.slicer.org/t/3d-visualization-in-slicerde/30025/2 "2023-06-16T14:31:19Z")

</div>

It seems that when you saved the segmentation to file you did not copy the image origin, spacing, and axis directions from the input image to the output segmentation.
