# Combine labelmap from different models into one and save the data

**URL:** <https://discourse.slicer.org/t/combine-labelmap-from-different-models-into-one-and-save-the-data/33134>\
**Category:** Support\
**Created:** [November 30, 2023, 4:47am UTC](https://discourse.slicer.org/t/combine-labelmap-from-different-models-into-one-and-save-the-data/33134 "2023-11-30T04:47:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LLL](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@LLL](https://discourse.slicer.org/u/LLL)\
**Post date:** [November 30, 2023, 4:47am UTC](https://discourse.slicer.org/t/combine-labelmap-from-different-models-into-one-and-save-the-data/33134/1 "2023-11-30T04:47:51Z")

</div>

Hi,

I have several surface models (in .stl format) and would like to create one single labelmap which contains all individual models. Here’s is a screenshot for the model.

 ![Combine lablemap from diffeernt stl models into One](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/e/5e1a709f8871f4710439ff127a05ec5f2c4884d5.jpeg)

Currently I can only export the labelmap individually as .nrrd file. However, it lost the relative coordination information between the models. I also tried to merge the models but:

1. only two models can be merged at a time;
2. once merged, colour (label) assigned to corresponding model get lost.  
Before Merging:  
 ![Before merging](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/f/cf1f98dba0af8c3105612857cb7c775690f60a2a.png)  
After Merging:  
 ![After merging](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/c/bcf1c3edf0cc1e92acc2c7145b9438485febc775.png)

May I ask how I can combine all the label maps into one and export it into some format that can be loaded into Matlab?

Many Thanks!
