# Is it possible to change ROI to a labelmap?

**URL:** <https://discourse.slicer.org/t/is-it-possible-to-change-roi-to-a-labelmap/33193>\
**Category:** Support\
**Created:** [December 4, 2023, 7:44am UTC](https://discourse.slicer.org/t/is-it-possible-to-change-roi-to-a-labelmap/33193 "2023-12-04T07:44:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xiaojie\_Guo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/xiaojie_guo/32/67098_2.png) [@Xiaojie\_Guo](https://discourse.slicer.org/u/Xiaojie_Guo)\
**Post date:** [December 4, 2023, 7:44am UTC](https://discourse.slicer.org/t/is-it-possible-to-change-roi-to-a-labelmap/33193/1 "2023-12-04T07:44:52Z")

</div>

Hi,  
I drew a rectangle ROI box in slicer, and want to change it to a label map. Then I can get a mask. What should I do?

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [December 4, 2023, 10:00am UTC](https://discourse.slicer.org/t/is-it-possible-to-change-roi-to-a-labelmap/33193/2 "2023-12-04T10:00:26Z")

</div>

> [@Xiaojie\_Guo](#):
>
> change it to a label map

Check the ‘[Markups to surface](https://gitlab.com/chir-set/Tools7/-/tree/master/MarkupsToSurface/)’ module. It can create a segment from an ROI, that you can convert to a label map in the ‘Data’ module.

---

<div class="post-metadata">

**Author:** ![Xiaojie\_Guo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/xiaojie_guo/32/67098_2.png) [@Xiaojie\_Guo](https://discourse.slicer.org/u/Xiaojie_Guo)\
**Post date:** [December 5, 2023, 1:16am UTC](https://discourse.slicer.org/t/is-it-possible-to-change-roi-to-a-labelmap/33193/3 "2023-12-05T01:16:12Z")

</div>

Great! Thanks very much.
