# Saving a select view as a DICOM file

**URL:** <https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227>\
**Category:** Support\
**Created:** [July 7, 2022, 4:47pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227 "2022-07-07T16:47:29Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![beginl22](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/beginl22/32/15915_2.png) [@beginl22](https://discourse.slicer.org/u/beginl22)\
**Post date:** [July 7, 2022, 4:47pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227/1 "2022-07-07T16:47:29Z")

</div>

I am working with CT scans of metatarsals and I am looking at the anterior to posterior configuration (cross section of diaphysis). But when I go to save the view as a DICOM, it just ends up saving a DICOM file of the inferior to superior view (like a normal CT scan). Any help with saving the select A/P view, as well as figuring out what exact slice I am looking at in the data set.  
Thank you!

---

<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:** [July 7, 2022, 4:58pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227/2 "2022-07-07T16:58:35Z")

</div>

Changing the slice view orientation just changes how the image is displayed and will not modify the image.

You can reslice the volume, for example using Crop volume module. You can enable rotation of the cropping region (ROI) in Markups module:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/5/b5142cc2d2f9e6b397a3c6264386b1ba2c5a8db1.jpeg)

Why would you like to export the resliced image to DICOM? Would you like to do some additional processing in some other software? Why would you like to export to DICOM format instead of a simpler research format, such as NRRD?

---

<div class="post-metadata">

**Author:** ![beginl22](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/beginl22/32/15915_2.png) [@beginl22](https://discourse.slicer.org/u/beginl22)\
**Post date:** [July 7, 2022, 5:46pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227/4 "2022-07-07T17:46:44Z")

</div>

Looking to export A/P view of metatarsals for cross-sectional bone model. The bone modeling code only accepts DICOM. Is it not possible to just export the A/P view?

---

<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:** [July 7, 2022, 5:55pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227/5 "2022-07-07T17:55:29Z")

</div>

Would you like to simulate an X-ray image from a CT?

---

<div class="post-metadata">

**Author:** ![beginl22](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/beginl22/32/15915_2.png) [@beginl22](https://discourse.slicer.org/u/beginl22)\
**Post date:** [July 7, 2022, 6:05pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227/6 "2022-07-07T18:05:18Z")

</div>

No, I am importing a normal CT scan. Then I was looking at trying to save the anterior/posterior view of the foot to use for a bone model. But it does not seem like 3D Slicer allows me to save any variations of the CT scan, other than the original superior/inferior as a DICOM

---

<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:** [July 7, 2022, 6:14pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227/7 "2022-07-07T18:14:33Z")

</div>

> [@beginl22](#):
>
> But it does not seem like 3D Slicer allows me to save any variations of the CT scan, other than the original superior/inferior as a DICOM

I just described above how one way to do it. There are many other options how to get a single slice or many slices or a projection or average of slices in any orientation.

> [@beginl22](#):
>
> Then I was looking at trying to save the anterior/posterior view of the foot to use for a bone model

Do you want to save a single reformatted slice of the 3D image as a new DICOM image? Or do you want to show a 3D rendering? If it is hard to explain then post a few images of what you want to get.

---

<div class="post-metadata">

**Author:** ![beginl22](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/beginl22/32/15915_2.png) [@beginl22](https://discourse.slicer.org/u/beginl22)\
**Post date:** [July 7, 2022, 6:18pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227/8 "2022-07-07T18:18:25Z")

</div>

Preferably, I would like to save one single slice from the A/P display as a DICOM file. Just a single slice of interest showing the cross sections of the metatarsals.

---

<div class="post-metadata">

**Author:** ![beginl22](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/beginl22/32/15915_2.png) [@beginl22](https://discourse.slicer.org/u/beginl22)\
**Post date:** [July 7, 2022, 7:26pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227/9 "2022-07-07T19:26:41Z")

</div>

I cant seem to get my cross sectional slice. Is there any other way of going about selecting a specific slice? I tried to use your method but cant seem to get it. This is my first time working with 3D Slicer and I am just trying to import a normal CT, and export a single slice of the A/P view.

---

<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:** [July 7, 2022, 7:50pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227/10 "2022-07-07T19:50:45Z")

</div>

What you want to do is highly unusual (why would you need to extract a single slice, why it is a problem that there are other slices in the image; why that software cannot reslice the volume; why a bone modeling software care about how the voxel grid is oriented - it should work in physical space), so the soution may not be very easy or convenient.

If you need to do this only for a handful of cases, without any Python scripting, then you can create a ROI and rotate and reslice it like this:

[![](https://img.youtube.com/vi/eW3XIYnI6Ok/maxresdefault.jpg "How to extract a single slice using Slicer GUI") ](https://www.youtube.com/watch?v=eW3XIYnI6Ok)

---

<div class="post-metadata">

**Author:** ![beginl22](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/beginl22/32/15915_2.png) [@beginl22](https://discourse.slicer.org/u/beginl22)\
**Post date:** [July 7, 2022, 7:56pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227/11 "2022-07-07T19:56:04Z")

</div>

I figured out how to extract the view that I want as DICOM files. Where in 3D slicer though does it tell you what # slice you are looking at? Rather than exporting a single slice, I have exported the entire A/P view, but now I have to choose my slice of interest for the bone model, but I do not see anywhere in 3D Slicer what the exact number slice I am looking at in the CT file. The entire CT is 512 slices so I am just trying to figure out where I can see what number slice I am looking at.

My apologies if this is all confusing, I am new to 3D Slicer and I also am struggling with how to explain my exact problems.

---

<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:** [July 7, 2022, 8:44pm UTC](https://discourse.slicer.org/t/saving-a-select-view-as-a-dicom-file/24227/12 "2022-07-07T20:44:04Z")

</div>

Slicer performs all analysis and visualizations in 3D, so image data is not organized into slices but managed as one single 3D array. There are no slice indices until the data is actually exported to DICOM.

However, since most DICOM exporter choose to reslice the volume along the third axis, you can get the slice index by adding 1 to the third voxel coordinate that is shown in the [Data Probe](https://slicer.readthedocs.io/en/latest/user_guide/user_interface.html#data-probe). You need to add 1 because in DICOM the slice index usually starts from 1, while 3D coordinates start from 0.
