# Export DICOM with RBG colours

**URL:** <https://discourse.slicer.org/t/export-dicom-with-rbg-colours/21892>\
**Category:** Support\
**Tags:** dicom\
**Created:** [February 10, 2022, 12:59pm UTC](https://discourse.slicer.org/t/export-dicom-with-rbg-colours/21892 "2022-02-10T12:59:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lidia](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lidia](https://discourse.slicer.org/u/lidia)\
**Post date:** [February 10, 2022, 12:59pm UTC](https://discourse.slicer.org/t/export-dicom-with-rbg-colours/21892/1 "2022-02-10T12:59:45Z")

</div>

Hi,

I’m working with MRI brain images, and i have segmented a structure, with the Segment Editor module, (colour: green), how can i add this segmentation to the original image, without losing the green colour?

It’s that possible?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 10, 2022, 1:38pm UTC](https://discourse.slicer.org/t/export-dicom-with-rbg-colours/21892/2 "2022-02-10T13:38:07Z")

</div>

If you install the `Quantitative Reporting` extension you can export a DICOM Segmentation Object with the color recorded. Be aware that not many other programs will be able to read and process DICOM with color.

---

<div class="post-metadata">

**Author:** ![lidia](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lidia](https://discourse.slicer.org/u/lidia)\
**Post date:** [February 11, 2022, 12:38pm UTC](https://discourse.slicer.org/t/export-dicom-with-rbg-colours/21892/3 "2022-02-11T12:38:21Z")

</div>

Thanks,

I try, but i get this error when i push the button “Save Report” :

NameError: name ‘returnValue’ is not defined

And the same error for “Complete Report”

---

<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:** [February 11, 2022, 3:39pm UTC](https://discourse.slicer.org/t/export-dicom-with-rbg-colours/21892/4 "2022-02-11T15:39:18Z")

</div>

After installing QuantitativeReporting extension, follow these instructions for exporting a segmentation to DICOM Segmentation Object: [DICOM — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/user_guide/modules/dicom.html#export-data-from-the-scene-to-dicom-database). Use the latest Slicer Preview Release for this, as there have been related fixes and improvements recently.
