# Exporting DICOM with Segmentation Mask applied

**URL:** <https://discourse.slicer.org/t/exporting-dicom-with-segmentation-mask-applied/8600>\
**Category:** Support\
**Tags:** segmentation, dicom\
**Created:** [September 27, 2019, 10:20pm UTC](https://discourse.slicer.org/t/exporting-dicom-with-segmentation-mask-applied/8600 "2019-09-27T22:20:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Medvedskiy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/michael_medvedskiy/32/4831_2.png) [@Michael\_Medvedskiy](https://discourse.slicer.org/u/Michael_Medvedskiy)\
**Post date:** [September 27, 2019, 10:20pm UTC](https://discourse.slicer.org/t/exporting-dicom-with-segmentation-mask-applied/8600/1 "2019-09-27T22:20:40Z")

</div>

Hello. I was planning on segmenting brain from the rest of the head (given the head as a DICOM archive with 320 images in it). So I segmented it fairly proper with Threshold and Grow From seeds, now I have a 3d brain (both as selection and a form), and what I’d like to do is simply save only those pixels (of 3D space) of DICOM array (that of 320 images), which are present in the segment. Can I do that?

---

<div class="post-metadata">

**Author:** ![Amine](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/amine/32/4844_2.png) [@Amine](https://discourse.slicer.org/u/Amine)\
**Post date:** [September 27, 2019, 11:06pm UTC](https://discourse.slicer.org/t/exporting-dicom-with-segmentation-mask-applied/8600/2 "2019-09-27T23:06:11Z")

</div>

Hi, yes you can, first get SegmentEditorExtraEffects module then go to segment editor\> Mask Volume, select your segment, operation= Fill outside, fill value= -1000 (ideally the lowest intensity on your volume) and hit apply, then export the resulting volume as in [here](https://www.slicer.org/wiki/Documentation/4.10/Modules/DICOM) .
