# Exporting segmentation as dcm

**URL:** https://discourse.slicer.org/t/exporting-segmentation-as-dcm/28168
**Category:** Support
**Created:** [March 4, 2023, 4:19pm UTC](https://discourse.slicer.org/t/exporting-segmentation-as-dcm/28168 "2023-03-04T16:19:28Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Nadya\_Shusharina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nadya_shusharina/32/9186_2.png) [@Nadya\_Shusharina](https://discourse.slicer.org/u/Nadya_Shusharina)
#### Post date: [March 4, 2023, 4:19pm UTC](https://discourse.slicer.org/t/exporting-segmentation-as-dcm/28168/1 "2023-03-04T16:19:28Z")

</div>

Operating system: Windows 11 PRO  
Slicer version: 5.2.1  
Expected behavior: Export created segmentation to the DICOM database  
Actual behavior: No export

Hello,

I am creating segmentation in Segment Editor and exporting it to the DICOM database as dcm. When Slicer RT module was installed, the segmentation was recognized as RTSTRUCT and the export failed. After I uninstalled Slicer RT the segmentation was exported as expected. Am I missing something?

Thank you,  
Nadya

---

<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: [March 6, 2023, 5:28am UTC](https://discourse.slicer.org/t/exporting-segmentation-as-dcm/28168/2 "2023-03-06T05:28:29Z")

</div>

SlicerRT provides plugin for exporting segmentation as DICOM RT structure set, so uninstalling it should make the RTSTRUCT export option disappear.

Have you installed some locally built SlicerRT?

How did you do your export DICOM RT structure set? How did it fail?

---

<div class="post-metadata">

### Author: ![Nadya\_Shusharina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nadya_shusharina/32/9186_2.png) [@Nadya\_Shusharina](https://discourse.slicer.org/u/Nadya_Shusharina)
#### Post date: [March 6, 2023, 7:48pm UTC](https://discourse.slicer.org/t/exporting-segmentation-as-dcm/28168/3 "2023-03-06T19:48:14Z")

</div>

SlicerRT was installed from the Extension Manager.  
Attached are snapshots of the Export to DICOM module with and without SlicerRT installed.

 ![noslicerrt](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/a/8af635a1ab279c80f416cbb6bc7d85e8f7639770.png)  
 ![slicerrt](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/7/7771bda544859cce15a203daaee0097eeafc57e7.png)

---

<div class="post-metadata">

### Author: ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)
#### Post date: [March 6, 2023, 8:39pm UTC](https://discourse.slicer.org/t/exporting-segmentation-as-dcm/28168/4 "2023-03-06T20:39:20Z")

</div>

You need to export the study to DICOM that contains both the anatomical image and the segmentation, rather than just the segmentation.

---

<div class="post-metadata">

### Author: ![Nadya\_Shusharina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nadya_shusharina/32/9186_2.png) [@Nadya\_Shusharina](https://discourse.slicer.org/u/Nadya_Shusharina)
#### Post date: [March 6, 2023, 8:49pm UTC](https://discourse.slicer.org/t/exporting-segmentation-as-dcm/28168/5 "2023-03-06T20:49:39Z")

</div>

I believe this is what I am doing. The problem is there is no SEG object in the list.

---

<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: [March 6, 2023, 9:06pm UTC](https://discourse.slicer.org/t/exporting-segmentation-as-dcm/28168/6 "2023-03-06T21:06:45Z")

</div>

Do you want to save the segmentation as SEG or RTSTRUCT?

---

<div class="post-metadata">

### Author: ![Nadya\_Shusharina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nadya_shusharina/32/9186_2.png) [@Nadya\_Shusharina](https://discourse.slicer.org/u/Nadya_Shusharina)
#### Post date: [March 6, 2023, 9:16pm UTC](https://discourse.slicer.org/t/exporting-segmentation-as-dcm/28168/7 "2023-03-06T21:16:57Z")

</div>

I am just testing now. Would be good to have an option of either SEG or RTSTRUCT.

---

<div class="post-metadata">

### Author: ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)
#### Post date: [March 7, 2023, 8:45pm UTC](https://discourse.slicer.org/t/exporting-segmentation-as-dcm/28168/8 "2023-03-07T20:45:39Z")

</div>

I discovered why both plugins were not being displayed. Should be fixed by this PR: [BUG: Allow multiple DICOM plugins for export with same mean confidence by Sunderlandkyl · Pull Request #6863 · Slicer/Slicer · GitHub](https://github.com/Slicer/Slicer/pull/6863).
