# Merging masks of nifti format and assigning conductivities to each

**URL:** <https://discourse.slicer.org/t/merging-masks-of-nifti-format-and-assigning-conductivities-to-each/34401>\
**Category:** Development\
**Tags:** segmentation, nifti, meshing\
**Created:** [February 19, 2024, 5:54pm UTC](https://discourse.slicer.org/t/merging-masks-of-nifti-format-and-assigning-conductivities-to-each/34401 "2024-02-19T17:54:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![savvy73](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@savvy73](https://discourse.slicer.org/u/savvy73)\
**Post date:** [February 19, 2024, 5:54pm UTC](https://discourse.slicer.org/t/merging-masks-of-nifti-format-and-assigning-conductivities-to-each/34401/1 "2024-02-19T17:54:26Z")

</div>

Hi, I have masks of different regions of brain in niftii format. I want to combine all the masks and assign conductivities to the same after which I need to mesh the output. I wanted to know if it can be done using 3D slicer. Your help is very much appriciated

---

<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:** [February 20, 2024, 12:35am UTC](https://discourse.slicer.org/t/merging-masks-of-nifti-format-and-assigning-conductivities-to-each/34401/2 "2024-02-20T00:35:09Z")

</div>

> [@savvy73](#):
>
> I have masks of different regions of brain in niftii format.

If these are from the same brain, they you can load each mask as a segmentation, and then use the `Segmentations` module to copy them into a single segmentation. See the user documentation

[https://slicer.readthedocs.io/en/latest/user\_guide/modules/segmentations.html](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmentations.html)

---

<div class="post-metadata">

**Author:** ![savvy73](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@savvy73](https://discourse.slicer.org/u/savvy73)\
**Post date:** [February 21, 2024, 2:45am UTC](https://discourse.slicer.org/t/merging-masks-of-nifti-format-and-assigning-conductivities-to-each/34401/4 "2024-02-21T02:45:56Z")

</div>

Thank you for your response. I tried doing it, but the output file is missing some segments. I am attaching the images below.

 ![Screenshot from 2024-02-21 03-31-25](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/1/a16b86f250f504817f72013e9dd801465f47251c.png)  
 ![Screenshot from 2024-02-21 03-43-59](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/8/d8b201fbd5da6bcba732a178d1c707a44803378b.png)

What I am trying to do is to add the masks and label them in a single file after which I can assign conductivities to do simulations. The segmentations after adding all the masks are what I want. Is there a way to label them? Also, I am not sure why the output is missing segments.

---

<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:** [February 21, 2024, 3:17am UTC](https://discourse.slicer.org/t/merging-masks-of-nifti-format-and-assigning-conductivities-to-each/34401/5 "2024-02-21T03:17:44Z")

</div>

I can’t tell what labels are missing from your screenshots. I am not seeing any spaces in segmentation.

You can rename them in whichever you like, double click the segment names and enter your text. You can also use the Terminology module and use standard DICOM anatomical terms to label your segments.
