# Why are my segmentations being saved as only the bounding box size rather than the size of the original image?

**URL:** <https://discourse.slicer.org/t/why-are-my-segmentations-being-saved-as-only-the-bounding-box-size-rather-than-the-size-of-the-original-image/9909>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [January 22, 2020, 8:37pm UTC](https://discourse.slicer.org/t/why-are-my-segmentations-being-saved-as-only-the-bounding-box-size-rather-than-the-size-of-the-original-image/9909 "2020-01-22T20:37:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![LisaDuff](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@LisaDuff](https://discourse.slicer.org/u/LisaDuff)\
**Post date:** [January 22, 2020, 8:37pm UTC](https://discourse.slicer.org/t/why-are-my-segmentations-being-saved-as-only-the-bounding-box-size-rather-than-the-size-of-the-original-image/9909/1 "2020-01-22T20:37:31Z")

</div>

hi  
I have made a large amount of segmentations on 3D slicer but when I try to save them they are only the size of the area covered by the segmentation. For example if the segmentation covers 100x40x40 slices it only saves the slices covered rather than the size of the original image. I want to use it as a mask so this is causing issues. I have tried saving straight fromt he segmentation editor as a seg.nrrd file and through the segmentation module by exporting it as a label map. how do I fix this?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [January 23, 2020, 5:59pm UTC](https://discourse.slicer.org/t/why-are-my-segmentations-being-saved-as-only-the-bounding-box-size-rather-than-the-size-of-the-original-image/9909/2 "2020-01-23T17:59:29Z")

</div>

You need to specify a Reference volume if you want a larger extent in your saved file.

See these topics that answer the same question:

> [@Output from segmentation](https://discourse.slicer.org/t/output-from-segmentation/818/6):
>
> If you want simpler, then you can export DICOM. Unfortunately the DICOM SEG exporter is currently broke, but very close to fixing, see [https://github.com/QIICR/QuantitativeReporting/issues/140](https://github.com/QIICR/QuantitativeReporting/issues/140) Exporting the segmentation to the labelmap takes around 8 clicks additinally to the few hundred you made when doing the segmentation. I think it is still much simpler than coming up with an elaborate workaround. If you want to make it quicker you can always write a python script that does that for you.

> [@Convert DICOM-RTSTRUCT format to Nifti format](https://discourse.slicer.org/t/convert-dicom-rtstruct-format-to-nifti-format/1580/2):
>
> Slicer can certainly read DICOM RTSTRUCT and save it as a labelmap in Nifti format. By default, when you export a segmentation to a labelmap volume, Slicer uses the smallest necessary image extent, so the input grayscale volume’s geometry will not be the same as labelmap volume’s. If your software requires the grayscale and labelmap volumes to have the exact same geometry then you just need to specify the grayscale volume as reference volume for labelmap export (see Segmentations module Expor…

> [@Adjusting and saving binary labelmaps](https://discourse.slicer.org/t/adjusting-and-saving-binary-labelmaps/1126):
>
> I have cropped ROI volumes that were registered and their segmentations transforms and exported to binary labelmaps. I am trying to save those labelmaps to files that have the same dimensions so that I can create a probabilistic atlas from them. I assumed that the registration and transformation of those segmentations would have constrained the labelmap images to the same dimensions, but I guess I was wrong. Is there a way to shift all of the segmentation labelmaps to have the same number of bin…

> [@Conerting RTstruct file to nrrd : Getting a meaningful result with correct dimensions?](https://discourse.slicer.org/t/conerting-rtstruct-file-to-nrrd-getting-a-meaningful-result-with-correct-dimensions/3921):
>
> Operating system: MacOS Slicer version: 4.9.0.-2018-08-04 Expected behavior: Produce nrrd file with 15x512x512x128 dimensions Actual behavior: Finding nrrd file with 15x357x211x128 dimensions Hi All, Would someone be able to post step by step instructions for converting an RTstruct file to an nrrd file? I am new to 3dslicer and am finding the program and its UI rather confusing. I believe screenshots would be helpful. I tried to follow the question [here](https://discourse.slicer.org/t/how-can-i-convert-an-rtstruct-to-an-nrrd/539) and I think that I did it corre…

---

<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:** [January 23, 2020, 6:50pm UTC](https://discourse.slicer.org/t/why-are-my-segmentations-being-saved-as-only-the-bounding-box-size-rather-than-the-size-of-the-original-image/9909/3 "2020-01-23T18:50:54Z")

</div>

Also note that in recent Slicer Preview Releases we save the entire segmentation region by default (crop to segmented region is an option in Save data dialog). This way, more memory and disk space is used but the saved file is compatible with software that rely on having exact match of image extents with the master volume.

---

<div class="post-metadata">

**Author:** ![LisaDuff](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@LisaDuff](https://discourse.slicer.org/u/LisaDuff)\
**Post date:** [February 11, 2020, 2:41pm UTC](https://discourse.slicer.org/t/why-are-my-segmentations-being-saved-as-only-the-bounding-box-size-rather-than-the-size-of-the-original-image/9909/4 "2020-02-11T14:41:32Z")

</div>

Thank you, since I am on a work laptop I can’t use preview releases at the moment but I will keep it in mind if I get the chance to change.

---

<div class="post-metadata">

**Author:** ![LisaDuff](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@LisaDuff](https://discourse.slicer.org/u/LisaDuff)\
**Post date:** [February 11, 2020, 2:46pm UTC](https://discourse.slicer.org/t/why-are-my-segmentations-being-saved-as-only-the-bounding-box-size-rather-than-the-size-of-the-original-image/9909/5 "2020-02-11T14:46:14Z")

</div>

Thank you. I didn’t realise there was another reference volume section in the advanced part of the segmentations module. I was relying on the segmentation editor master geometry.

---

<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:** [June 24, 2020, 3:34pm UTC](https://discourse.slicer.org/t/why-are-my-segmentations-being-saved-as-only-the-bounding-box-size-rather-than-the-size-of-the-original-image/9909/6 "2020-06-24T15:34:56Z")

</div>

4 posts were split to a new topic: [How to get segmentations as numpy arrays with same dimensions?](https://discourse.slicer.org/t/how-to-get-segmentations-as-numpy-arrays-with-same-dimensions/12202)
