# Difference between segmentation dimensions and original dimensions

**URL:** <https://discourse.slicer.org/t/difference-between-segmentation-dimensions-and-original-dimensions/33585>\
**Category:** Support\
**Created:** [January 2, 2024, 8:50am UTC](https://discourse.slicer.org/t/difference-between-segmentation-dimensions-and-original-dimensions/33585 "2024-01-02T08:50:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berk\_Gezgin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/berk_gezgin/32/65862_2.png) [@Berk\_Gezgin](https://discourse.slicer.org/u/Berk_Gezgin)\
**Post date:** [January 2, 2024, 8:50am UTC](https://discourse.slicer.org/t/difference-between-segmentation-dimensions-and-original-dimensions/33585/1 "2024-01-02T08:50:25Z")

</div>

I saved the labels I made in 3D Slicer with “Export to file…” by right-clicking in the “Data” section and selecting “Export visible segments to binary labelmap”. However, later I realized that the dimensions of the resulting labels and the original file did not match. The label files were saved to contain only the labeled region. How can I fix this with Python? Also, what should I do to avoid such a problem when saving the labels I made in 3DSlicer from now on?

![Adsız1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/8/b8ce94b23746951da1b04d4a9fcc76746f1e2bcf.png)  
 ![Adsız2](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/d/bd26e0d5c97e22165c0bd322c21ef10f6bbd9188.png)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 2, 2024, 3:54pm UTC](https://discourse.slicer.org/t/difference-between-segmentation-dimensions-and-original-dimensions/33585/2 "2024-01-02T15:54:58Z")

</div>

Which version of Slicer are you using?
