# Exporting Segmentations to DICOM

**URL:** <https://discourse.slicer.org/t/exporting-segmentations-to-dicom/251>\
**Category:** Support\
**Created:** [May 2, 2017, 8:30pm UTC](https://discourse.slicer.org/t/exporting-segmentations-to-dicom/251 "2017-05-02T20:30:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![SLautenschlaeger](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@SLautenschlaeger](https://discourse.slicer.org/u/SLautenschlaeger)\
**Post date:** [May 2, 2017, 8:30pm UTC](https://discourse.slicer.org/t/exporting-segmentations-to-dicom/251/1 "2017-05-02T20:30:03Z")

</div>

Hi together,

I’d like to export segmentations to DICOM to import them in other planing systems. However I can only export the CT-Data Set and not the corresponding segmentations. Quantitative reporting and SlicerRT are installed.  
Any ideas what might be the problem ?

Best regards  
Stefan

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [May 2, 2017, 10:58pm UTC](https://discourse.slicer.org/t/exporting-segmentations-to-dicom/251/2 "2017-05-02T22:58:18Z")

</div>

Hi Stefan,  
Since you say “planning system,” I assume you want RT Structure Set.  
In that case, I think you need to create a study, put the segmentation into the same study as  
the CT, and then export the study (right click on study, choose export).  
Greg

---

<div class="post-metadata">

**Author:** ![JK\_Kim](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@JK\_Kim](https://discourse.slicer.org/u/JK_Kim)\
**Post date:** [August 8, 2017, 7:40pm UTC](https://discourse.slicer.org/t/exporting-segmentations-to-dicom/251/3 "2017-08-08T19:40:44Z")

</div>

I am also having the same issue. I exported a CT and a RTSTRUCT from a planning system (Varian Eclipse), imported to Slicer (4.6.2), modified the structure, and then when I export the CT and modified segmentation it only exports the CT image. I opened the python inspector and I see the following error… It basically saying it cannot find vtkSegmentationCore. Is there anything that I am missing. I installed SlicerRT and Reporting modules.

=======  
Traceback (most recent call last):  
File “”, line 2, in   
File “C:/Users/jkim20/AppData/Roaming/NA-MIC/Extensions-25516/Reporting/lib/Slicer-4.6/qt-scripted-modules/DICOMSegmentationPlugin.py”, line 339, in export  
self.exportAsDICOMSEG(exportablesCollection)  
File “C:/Users/jkim20/AppData/Roaming/NA-MIC/Extensions-25516/Reporting/lib/Slicer-4.6/qt-scripted-modules/DICOMSegmentationPlugin.py”, line 374, in exportAsDICOMSEG  
import vtkSegmentationCore  
ImportError: No module named vtkSegmentationCore

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [August 8, 2017, 7:54pm UTC](https://discourse.slicer.org/t/exporting-segmentations-to-dicom/251/4 "2017-08-08T19:54:55Z")

</div>

@JK_Kim It seems you’re actually exporting to DICOM SEG, not DICOM RTSS. Make sure you have the segmentation and the CT under the same study (which must have a patient parent), right click the study in Data module, select Export to DICOM… and make sure that RT is selected on the left under the tree.

Also I strongly recommend downloading a recent nightly.

---

<div class="post-metadata">

**Author:** ![JK\_Kim](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@JK\_Kim](https://discourse.slicer.org/u/JK_Kim)\
**Post date:** [August 8, 2017, 9:15pm UTC](https://discourse.slicer.org/t/exporting-segmentations-to-dicom/251/5 "2017-08-08T21:15:39Z")

</div>

Thanks for the quick reply. It works well with the “RT” selected as the  
export type.  
Best regards,  
Jinkoo

---

<div class="post-metadata">

**Author:** ![Hanaana](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@Hanaana](https://discourse.slicer.org/u/Hanaana)\
**Post date:** [August 9, 2017, 1:11pm UTC](https://discourse.slicer.org/t/exporting-segmentations-to-dicom/251/6 "2017-08-09T13:11:05Z")

</div>

Hello everyone,

I need your support. I am trying to convert my NIfTI data to DICOM data but  
until now I couldn’t do it in slicer while exporting my data.

The exported format is .sql . so it is possible to export my data as .dcm ?

Looking forward to hearing from you,

Hanaa

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [August 9, 2017, 1:35pm UTC](https://discourse.slicer.org/t/exporting-segmentations-to-dicom/251/7 "2017-08-09T13:35:20Z")

</div>

Please follow the instructions two comments above.

In order to have a segmentation to export from nifti, you need to import the loaded labelmap volume to a segmentation in the Segmentations module’s Import/Export section at the bottom.

---

<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:** [August 29, 2017, 1:44pm UTC](https://discourse.slicer.org/t/exporting-segmentations-to-dicom/251/8 "2017-08-29T13:44:35Z")

</div>

A post was split to a new topic: [Improve an existing segmentation](https://discourse.slicer.org/t/improve-an-existing-segmentation/964)

---

<div class="post-metadata">

**Author:** ![Moran\_Artzi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/moran_artzi/32/9566_2.png) [@Moran\_Artzi](https://discourse.slicer.org/u/Moran_Artzi)\
**Post date:** [February 28, 2019, 11:48am UTC](https://discourse.slicer.org/t/exporting-segmentations-to-dicom/251/9 "2019-02-28T11:48:42Z")

</div>

> [@cpinter](#):
>
> ou need to import the loaded labelmap volume to a segmentation in the Segmentations module’s Impor

Going to Segmentations module’s Import/Export section without prior actio?  
Use the Segmentations modules Import/Export section without prior operation?  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/7/e70b0b5cac5b5be79a5f9f7d860ce2e000a0a7a4.png)

I can not import the file from there
