# Is it possible to fill in all black outside the segmentation?

**URL:** <https://discourse.slicer.org/t/is-it-possible-to-fill-in-all-black-outside-the-segmentation/18914>\
**Category:** Support\
**Created:** [July 24, 2021, 10:35pm UTC](https://discourse.slicer.org/t/is-it-possible-to-fill-in-all-black-outside-the-segmentation/18914 "2021-07-24T22:35:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelsosamd](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/angelsosamd/32/11771_2.png) [@angelsosamd](https://discourse.slicer.org/u/angelsosamd)\
**Post date:** [July 24, 2021, 10:35pm UTC](https://discourse.slicer.org/t/is-it-possible-to-fill-in-all-black-outside-the-segmentation/18914/1 "2021-07-24T22:35:51Z")

</div>

Hi!

Is it possible to fill in all black outside the segmentation? (background)

Regards,

Angel S.

---

<div class="post-metadata">

**Author:** ![Juicy](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Juicy](https://discourse.slicer.org/u/Juicy)\
**Post date:** [July 24, 2021, 11:19pm UTC](https://discourse.slicer.org/t/is-it-possible-to-fill-in-all-black-outside-the-segmentation/18914/2 "2021-07-24T23:19:50Z")

</div>

Yes, you need to make a second segment and make sure the newly created segment is selected. You can then use the thresholding tool, you need to select a value which highlights all the black region and change “Editable area” under “Masking” to “Outside all Segments” to ensure you do not overwrite you previous segment. You could also use the “Invert” tool under “Logical Operators” to invert you segmentation, i.e. highlight all the background while the area where the segment was is un-highlighted.

---

<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 25, 2021, 12:26pm UTC](https://discourse.slicer.org/t/is-it-possible-to-fill-in-all-black-outside-the-segmentation/18914/3 "2021-07-25T12:26:41Z")

</div>

If you want to change the voxels of the original volume then you can use the “Mask Volume” effect in Segment Editor. It is part of Slicer core in recent Slicer Preview Releases, it is not n SegmentEditorExtraEffects extension for earlier Slicer versions.
