# Segmentation creation

**URL:** https://discourse.slicer.org/t/segmentation-creation/21184
**Category:** Support
**Tags:** build, segmentation, 3d-model
**Created:** [December 22, 2021, 3:54pm UTC](https://discourse.slicer.org/t/segmentation-creation/21184 "2021-12-22T15:54:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![19lollo95](https://avatars.discourse-cdn.com/v4/letter/1/82dd89/32.png) [@19lollo95](https://discourse.slicer.org/u/19lollo95)
#### Post date: [December 22, 2021, 3:54pm UTC](https://discourse.slicer.org/t/segmentation-creation/21184/1 "2021-12-22T15:54:01Z")

</div>

Hi everyone,  
I have to segment the MRBrain considering white matter, gray matter, CFS, skull etc. How can I create an mhd file consisting of some of these objects? (e.g. how can I get one file / segment which contains only white and gray matter, another which contains CFS of the skull and the last which contains only a tumor)  
Thanks in advance

---

<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: [December 23, 2021, 4:02pm UTC](https://discourse.slicer.org/t/segmentation-creation/21184/2 "2021-12-23T16:02:27Z")

</div>

See the answer in this post:

> [@Segmentation saving support](https://discourse.slicer.org/t/segmentation-saving-support/21183/2):
>
> When you export a segmentation to a labelmap then by default only the visible segments are exported. So, you can have two labelmap volumes, each containing one segment by showing one segment, export, showing the other segment, export. For volumetric mesh generation I would recommend to use SegmentMesher extension, which can generate multimaterial tetrahedral mesh directly from segmentation.
