# Segment ids when imported from label map

**URL:** <https://discourse.slicer.org/t/segment-ids-when-imported-from-label-map/12502>\
**Category:** Development\
**Tags:** segmentation, extensions-manager\
**Created:** [July 13, 2020, 11:40am UTC](https://discourse.slicer.org/t/segment-ids-when-imported-from-label-map/12502 "2020-07-13T11:40:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 14, 2020, 6:33am UTC](https://discourse.slicer.org/t/segment-ids-when-imported-from-label-map/12502/2 "2020-07-14T06:33:23Z")

</div>

Probably the easiest is to create a color table (.ctbl) file that contains your segment names. The format is a simple text file that you can create in any text editor:

```nohighlight
0 background 0 0 0 0
1 first 128 174 128 255
2 second 241 214 145 255
3 and_the_last_one 177 122 101 255

```

You can use this color table like this:

- Load this color table into Slicer
- Load the labelmap volume into Slicer, in Add data dialog check “Show options” and check “LabelMap” checkbox and select your custom color table
- Convert the loaded labelmap volume to segmentation volume by right-clicking on it in Data module

---

_[View the full topic](https://discourse.slicer.org/t/segment-ids-when-imported-from-label-map/12502)._
