# Confused with labelmap node and segmentation, and ROI?

**URL:** <https://discourse.slicer.org/t/confused-with-labelmap-node-and-segmentation-and-roi/9465>\
**Category:** Support\
**Created:** [December 10, 2019, 5:39pm UTC](https://discourse.slicer.org/t/confused-with-labelmap-node-and-segmentation-and-roi/9465 "2019-12-10T17:39:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aiden.zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aiden.zhu/32/67145_2.png) [@aiden.zhu](https://discourse.slicer.org/u/aiden.zhu)\
**Post date:** [December 10, 2019, 5:39pm UTC](https://discourse.slicer.org/t/confused-with-labelmap-node-and-segmentation-and-roi/9465/1 "2019-12-10T17:39:44Z")

</div>

If this question is silly, please do not laugh out loudly.

I am confused with the slicer’s labelmap (image volume or node) and the slicer’s segmentation, and ROIs. What’s critical difference between them? from data-view, aren’t they be the same? All may have multiple phases, labemap with 0, 1, 2, … while segments with ???, ROIs with different names…

Is there any relationship between them or conversion? ( I saw some posts talking about such conversions).

Anyway, I need read more and please help me and send me if you have any good links or ideas.

Thanks a lot.

---

<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:** [December 10, 2019, 5:53pm UTC](https://discourse.slicer.org/t/confused-with-labelmap-node-and-segmentation-and-roi/9465/2 "2019-12-10T17:53:57Z")

</div>

The big difference between labelmap and segmentation volume is that labelmap doesn’t allow overlap between two different structures (i.e., a voxel can only assigned to one of the labels), whereas segmentation let you do that. With the exception of that constraint, you can back and forth between those two very easily using the Segmentation module. There benefits to both of them, you can turn both into masks to define a region of interest (ROI) to run your computations on.

ROI can be a number of things, a mask derived from a segmentation, a rectangular box to define axes that constrains your volume, 3D primitives (like spheres, prisms etc). It simply means you are only interested what’s going on within that region/volume (volume of interest is probably more appropriate in Slicer, but ROI predates VOI).

---

<div class="post-metadata">

**Author:** ![aiden.zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aiden.zhu/32/67145_2.png) [@aiden.zhu](https://discourse.slicer.org/u/aiden.zhu)\
**Post date:** [December 10, 2019, 6:55pm UTC](https://discourse.slicer.org/t/confused-with-labelmap-node-and-segmentation-and-roi/9465/3 "2019-12-10T18:55:23Z")

</div>

Thanks you so much!  
It seems segmentation volumes have more benefit than the labelmap volumes.

By the way, would you have some comments on models? @muratmaga

---

<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:** [December 10, 2019, 8:31pm UTC](https://discourse.slicer.org/t/confused-with-labelmap-node-and-segmentation-and-roi/9465/4 "2019-12-10T20:31:28Z")

</div>

I am not sure I understood your inquiry about models? You can generate 3D mesh representation of your data both from labelmap and segmentation representation, just look under the Export/Import section of the `Segmentations` module

---

<div class="post-metadata">

**Author:** ![aiden.zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aiden.zhu/32/67145_2.png) [@aiden.zhu](https://discourse.slicer.org/u/aiden.zhu)\
**Post date:** [December 11, 2019, 2:17pm UTC](https://discourse.slicer.org/t/confused-with-labelmap-node-and-segmentation-and-roi/9465/5 "2019-12-11T14:17:19Z")

</div>

Thanks. I guess that info is enough for me now. LOL.

---

<div class="post-metadata">

**Author:** ![RayCui](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/raycui/32/4517_2.png) [@RayCui](https://discourse.slicer.org/u/RayCui)\
**Post date:** [October 26, 2020, 7:16am UTC](https://discourse.slicer.org/t/confused-with-labelmap-node-and-segmentation-and-roi/9465/6 "2020-10-26T07:16:41Z")

</div>

Hi, @muratmaga

I am confused about if export segmentation(have the situation of overlap) to labelmap, what will hapeen? Or what is the logic to deal with overlap?

---

<div class="post-metadata">

**Author:** ![RayCui](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/raycui/32/4517_2.png) [@RayCui](https://discourse.slicer.org/u/RayCui)\
**Post date:** [October 26, 2020, 7:35am UTC](https://discourse.slicer.org/t/confused-with-labelmap-node-and-segmentation-and-roi/9465/7 "2020-10-26T07:35:51Z")

</div>

> [@RayCui](#):
>
> I am confused about if export segmentation(have the situation of overlap) to labelmap, what will hapeen? Or what is the logic to deal with overlap?

I have try it. It maybe depends on your segment order. You can right click the segment, select move up or move down.
