# Converting an ROI to a binary mask

**URL:** <https://discourse.slicer.org/t/converting-an-roi-to-a-binary-mask/35115>\
**Category:** Support\
**Created:** [March 27, 2024, 3:41am UTC](https://discourse.slicer.org/t/converting-an-roi-to-a-binary-mask/35115 "2024-03-27T03:41:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [March 27, 2024, 3:41am UTC](https://discourse.slicer.org/t/converting-an-roi-to-a-binary-mask/35115/1 "2024-03-27T03:41:33Z")

</div>

I need to fill the contents of a ROI, and turn it into a mask. I tried to use the Flood fill but it doesn’t complete (I bump the values high to make sure there everyvoxel is picked up).

What is the proper way of doing this?
