# Import label map to segmentation with names

**URL:** <https://discourse.slicer.org/t/import-label-map-to-segmentation-with-names/12414>\
**Category:** Development\
**Tags:** segmentation\
**Created:** [July 7, 2020, 1:11pm UTC](https://discourse.slicer.org/t/import-label-map-to-segmentation-with-names/12414 "2020-07-07T13:11:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@Niels](https://discourse.slicer.org/u/Niels)\
**Post date:** [July 7, 2020, 1:11pm UTC](https://discourse.slicer.org/t/import-label-map-to-segmentation-with-names/12414/1 "2020-07-07T13:11:56Z")

</div>

I am using python for my module and I am exporting my label map to a segmentation.  
The names of the segments seem to get numbers but I want them to have names after the import. Is that possible?

slicer.modules.segmentations.logic().ImportLabelmapToSegmentationNode(myLabelMapNode, newSegmentationNode)
