# Shape mismatch after exporting segmented labels

**URL:** <https://discourse.slicer.org/t/shape-mismatch-after-exporting-segmented-labels/11502>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [May 12, 2020, 11:34am UTC](https://discourse.slicer.org/t/shape-mismatch-after-exporting-segmented-labels/11502 "2020-05-12T11:34:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@Flash](https://discourse.slicer.org/u/Flash)\
**Post date:** [May 12, 2020, 11:34am UTC](https://discourse.slicer.org/t/shape-mismatch-after-exporting-segmented-labels/11502/1 "2020-05-12T11:34:10Z")

</div>

Hello,

I have generated mask labels for brain tumor with nvidia clara…I am overlaying these mask labels on the original brain tumor image.I have edited the generated the mask lables with segment editor and later tried to export with data-\>export visible segments to binary label maps and save it as a nifti file.

However,the newly exported image has a different shape  
For eg: original mask file shape(224,224,155)  
modified mask file shape(91,95,76)

I want to retain the shape of the modified file just like the original mask file(224,224,155)

If anyone could guide me as to how to go about this…

Thanks

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [May 12, 2020, 3:31pm UTC](https://discourse.slicer.org/t/shape-mismatch-after-exporting-segmented-labels/11502/2 "2020-05-12T15:31:57Z")

</div>

Hi, what version of Slicer are you using?

---

<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:** [May 12, 2020, 7:15pm UTC](https://discourse.slicer.org/t/shape-mismatch-after-exporting-segmented-labels/11502/3 "2020-05-12T19:15:12Z")

</div>

Slicer version is important because in Slicer-4.10 you had to export to labelmap with a chosen reference volume before saving, while in recent Slicer-4.11 versions, labelmaps are saved by default with the master volume’s geometry.

---

<div class="post-metadata">

**Author:** ![Flash](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@Flash](https://discourse.slicer.org/u/Flash)\
**Post date:** [May 14, 2020, 4:07am UTC](https://discourse.slicer.org/t/shape-mismatch-after-exporting-segmented-labels/11502/4 "2020-05-14T04:07:56Z")

</div>

Hello,

I am using Slicer version 4.11.0-2020-03-01!

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [May 15, 2020, 2:37pm UTC](https://discourse.slicer.org/t/shape-mismatch-after-exporting-segmented-labels/11502/5 "2020-05-15T14:37:24Z")

</div>

I haven’t been able to reproduce this. Can you send me an example scene where this occurs?

---

<div class="post-metadata">

**Author:** ![Flash](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@Flash](https://discourse.slicer.org/u/Flash)\
**Post date:** [May 19, 2020, 10:16am UTC](https://discourse.slicer.org/t/shape-mismatch-after-exporting-segmented-labels/11502/6 "2020-05-19T10:16:54Z")

</div>

Sorry for the late reply…

The issue has been resolved…Earlier I had set the reference volume to None…  
Now when i set the reference volume to the referred image and then save the file with .nii extension…the original file’s shape is retained
