# Export segmentation as DICOM

**URL:** <https://discourse.slicer.org/t/export-segmentation-as-dicom/13970>\
**Category:** Support\
**Created:** [June 18, 2020, 1:35pm UTC](https://discourse.slicer.org/t/export-segmentation-as-dicom/13970 "2020-06-18T13:35:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Alexander](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jan_alexander/32/6831_2.png) [@Jan\_Alexander](https://discourse.slicer.org/u/Jan_Alexander)\
**Post date:** [June 18, 2020, 1:35pm UTC](https://discourse.slicer.org/t/export-segmentation-as-dicom/13970/1 "2020-06-18T13:35:16Z")

</div>

Hello,

I try to do the same discussed above and as is shown in [this tutorial](https://youtu.be/nzWf4xHy1BM).  
Unfortunately, this does not work.

I believe the extensions `SlicerRT` and `Quantitave reporting` are correctly installed, but I do not even get the `RT` export option. Instead, I get this `DICOMSegmentation` export type. This type gives an error when I try to export : VolumeNode Panoramix-cropped has no attribute DICOM.instanceUIDs

 ![DICOM slicer fail](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/0/80b43fc4bba66c8f3d058c08ab81865818d46f81.png)

Thanks for your advice.  
Jan

---

<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:** [October 10, 2020, 12:32am UTC](https://discourse.slicer.org/t/export-segmentation-as-dicom/13970/2 "2020-10-10T00:32:57Z")

</div>

> [@Convert image and segmentation to DICOM](https://discourse.slicer.org/t/convert-image-and-segmentation-to-dicom/543/17):
>
> I do not even get the `RT` export option

If you want to export segmentation as DICOM RT structure set then you need to install SlicerRT extension. However, RT structure set is a very bad format for storing segmentation: it has many issues and limitations related to both importing and exporting it. To store segmentation in DICOM format, use Segmentation object format (the exporter that you show in your screenshot above).

DICOM Segmentation object exporter expects that the master volume is loaded from DICOM and has all the necessary unique identifiers (UIDs). If you want to use non-DICOM image source then first you can export the image to DICOM, which adds all the necessary identifiers.

---

<div class="post-metadata">

**Author:** ![Mgi](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mgi](https://discourse.slicer.org/u/Mgi)\
**Post date:** [October 13, 2020, 6:22pm UTC](https://discourse.slicer.org/t/export-segmentation-as-dicom/13970/3 "2020-10-13T18:22:28Z")

</div>

@lassoan When I tried to convert to DICOM using DICOM Segmentation exporter appear this error.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/5/05dbe24f0c41b0bfa040263c74aa8c9b96bf3d49.png)

---

<div class="post-metadata">

**Author:** ![Mgi](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mgi](https://discourse.slicer.org/u/Mgi)\
**Post date:** [October 13, 2020, 8:06pm UTC](https://discourse.slicer.org/t/export-segmentation-as-dicom/13970/4 "2020-10-13T20:06:00Z")

</div>

My debug report. ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/6/a67da0e3f9d62b9df64ed2473b9c51e64df99951.png)

---

<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:** [October 13, 2020, 8:33pm UTC](https://discourse.slicer.org/t/export-segmentation-as-dicom/13970/5 "2020-10-13T20:33:00Z")

</div>

Are you using the latest Slicer Stable Release?

---

<div class="post-metadata">

**Author:** ![dszimatore](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dszimatore](https://discourse.slicer.org/u/dszimatore)\
**Post date:** [June 15, 2021, 9:55am UTC](https://discourse.slicer.org/t/export-segmentation-as-dicom/13970/6 "2021-06-15T09:55:39Z")

</div>

Hello!  
Can anybody suggest me the easiest way to export a segmentation with MRI in DICOM, so that the file can be used for neuronavigation? I tried with RT, but hospital DICOM viewers were not able to read the .rtss file. I tried to create new subject and new study as suggested in tutorials but still the segmention isn’t saved but only the original file.  
Where can I find a deteiled descritpion of the procedure not to run into mistakes?

Thank you very much

---

<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 15, 2021, 5:20pm UTC](https://discourse.slicer.org/t/export-segmentation-as-dicom/13970/7 "2021-06-15T17:20:17Z")

</div>

Many DICOM viewers cannot display image segmentation. You can find the DICOM conformance statement of all commercial DICOM viewers online (just google `(productname) DICOM conformance statement`) where they describe what kind of image segmentation they can display (DICOM RT structure set is more common among old software, DICOM Segmentation object is supported in new software).

---

<div class="post-metadata">

**Author:** ![dszimatore](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dszimatore](https://discourse.slicer.org/u/dszimatore)\
**Post date:** [June 23, 2021, 9:31pm UTC](https://discourse.slicer.org/t/export-segmentation-as-dicom/13970/8 "2021-06-23T21:31:02Z")

</div>

I tried with “DICOM segmentation” but i obtained only a **subjct\_hyerarchy\_export** file, impossible to open with a viewer. Where can I find complete intructions for exporting segmentaion to DICOM? Is there a DICOM viewer by which I can test if the procedure was correct?

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:** [June 25, 2021, 9:58pm UTC](https://discourse.slicer.org/t/export-segmentation-as-dicom/13970/9 "2021-06-25T21:58:13Z")

</div>

See step-by-step instructions for DICOM export [here](https://slicer.readthedocs.io/en/latest/user_guide/modules/dicom.html#export-data-from-the-scene-to-dicom-database).

Only very few image viewers can display segmentations. Most of them are really just that, image viewers and cannot deal with any other objects (segmentaton object, spatial registration object, structured report, etc.). I think recent MITK versions can display segmentations and I know that the web-based OHIF viewer can do basic segmentation display, too. You can get an OHIF viewer without setting up a web server by uploading your data set to [Kheops](https://kheops.online/) and open its built-in viewer (that is an OHIF viewer).

---

<div class="post-metadata">

**Author:** ![dszimatore](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dszimatore](https://discourse.slicer.org/u/dszimatore)\
**Post date:** [June 25, 2021, 11:02pm UTC](https://discourse.slicer.org/t/export-segmentation-as-dicom/13970/10 "2021-06-25T23:02:53Z")

</div>

Thank you very much for answering!
