# Saving DICOM format

**URL:** <https://discourse.slicer.org/t/saving-dicom-format/18414>\
**Category:** Support\
**Tags:** dicom\
**Created:** [June 30, 2021, 4:18am UTC](https://discourse.slicer.org/t/saving-dicom-format/18414 "2021-06-30T04:18:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![refrangioni](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@refrangioni](https://discourse.slicer.org/u/refrangioni)\
**Post date:** [June 30, 2021, 4:18am UTC](https://discourse.slicer.org/t/saving-dicom-format/18414/1 "2021-06-30T04:18:45Z")

</div>

I need to segment CT images for include such images in TOMO\_MC program to dosimetric simulating in MCNP .  
The TOMO\_MC program only accept bitmap files.  
I think save the segmented images in DICOM format to convert in .bmp extensions, but i cant save segmented images in DICOM format.  
It is necessary any extension : slicerRT or quantitativereporting ?

---

<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 30, 2021, 4:20am UTC](https://discourse.slicer.org/t/saving-dicom-format/18414/2 "2021-06-30T04:20:28Z")

</div>

Do you need to save the segmentation in DICOM Segmentation Object, DICOM RT structure set, or .bmp file format?

---

<div class="post-metadata">

**Author:** ![refrangioni](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@refrangioni](https://discourse.slicer.org/u/refrangioni)\
**Post date:** [July 1, 2021, 1:56pm UTC](https://discourse.slicer.org/t/saving-dicom-format/18414/3 "2021-07-01T13:56:19Z")

</div>

I need save in .bmp.  
The file must be contain the segmented slices.

---

<div class="post-metadata">

**Author:** ![refrangioni](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@refrangioni](https://discourse.slicer.org/u/refrangioni)\
**Post date:** [July 5, 2021, 12:13pm UTC](https://discourse.slicer.org/t/saving-dicom-format/18414/4 "2021-07-05T12:13:10Z")

</div>

I need the images to be in .bmp file format but if it’s difficult it can also be in dicom format as long as they contain the segmentation, then I can transform them into .bmp by another program, but the ideal is that they are in .bmp

---

<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 9, 2021, 4:33am UTC](https://discourse.slicer.org/t/saving-dicom-format/18414/5 "2021-07-09T04:33:59Z")

</div>

I would recommend to submit a feature request to the developers of TOMOT\_MC to add support for more commonly used image formats (such as jpg or png).

In the meantime, you can save a segmentation or a volume in bmp file format as shown in [this example](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#rasterize-a-model-and-save-it-to-a-series-of-image-files). If you want to save the image in native resolution then you can get the voxels as numpy array using `slicer.util.arrayFromVolume` or `slicer.util.arrayFromSegmentBinaryLabelmap`.

---

<div class="post-metadata">

**Author:** ![refrangioni](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@refrangioni](https://discourse.slicer.org/u/refrangioni)\
**Post date:** [July 10, 2021, 1:53am UTC](https://discourse.slicer.org/t/saving-dicom-format/18414/6 "2021-07-10T01:53:41Z")

</div>

I managed to save the segmented images in dicom format using the SlicerRT extension.  
I followed as recommended by Gowtham P in this forum:  
Right Click the segmentation node on Data Manager → Export visible segments to Binary Labelmap  
A new segmentation label will be created, if you right-click that you will get the option to export to DICOM, where you can add details and export your segment as a DICOM series.  
Need to choose RT in “select export type” item.  
Thank you very much!
