# Exporting a ".seg.nrrd" Segmentation with Extent of Original Image

**URL:** https://discourse.slicer.org/t/exporting-a-seg-nrrd-segmentation-with-extent-of-original-image/36996
**Category:** Support
**Created:** [June 25, 2024, 2:37am UTC](https://discourse.slicer.org/t/exporting-a-seg-nrrd-segmentation-with-extent-of-original-image/36996 "2024-06-25T02:37:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sjanko2](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@sjanko2](https://discourse.slicer.org/u/sjanko2)
#### Post date: [June 25, 2024, 2:37am UTC](https://discourse.slicer.org/t/exporting-a-seg-nrrd-segmentation-with-extent-of-original-image/36996/1 "2024-06-25T02:37:14Z")

</div>

Hello,

I am new to posting to this forum, so please let me know if this question is in the right place!

I have a labelmapvolume node (“atlas”) and a volume node (“ghost”) within my scene. I’d like to export the labels as a “.seg.nrrd” file type where the header is set up for use with slicerio. I can’t seem to export in this format while maintaing the extent of the original image. Here are some things I have tried:

Per 3D Slicer documentation, I did the following:  
1.) Converted the labelmapvolume node to a segmentation node by right clicking \> Convert labelmap to segmentation node  
2.) Right clicked the segmentation node \> Export to file  
3.) Selected “.seg.nrrd” as the file format  
==\> This results in a .seg.nrrd file, but is not the same extent as my original image which is causing me some issues with post processing. I have tried this export method both with the “Crop to minimum extent” option selected and deselected with the same result.

[Per this forum post](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), I tried to export with my original image set as a reference geometry:  
1.) Converted the labelmapvolume node to a segmentation node by right clicking \> Convert labelmap to segmentation node  
2.) Gone to the Segmentations module, selected my segmentation, set my file format as “NRRD” (there is only options for STL, OBJ, NRRD, and NIFTI), set my Reference volume to be my volume node “ghost”  
3.) Selected my preferred color table  
==\> This results in a .nrrd file with the full extent that I need, but it has no metadata header information that can be used by slicerio as the “.seg.nrrd” files do.

Can someone help me understand what I’m missing? How can I get the full extent for my segmentation relative to reference geometry AND the metadata in the header of my nrrd file?

Thanks so much!

Sam

---

<div class="post-metadata">

### Author: ![Denis\_Samatov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/denis_samatov/32/82850_2.png) [@Denis\_Samatov](https://discourse.slicer.org/u/Denis_Samatov)
#### Post date: [September 24, 2026, 6:51am UTC](https://discourse.slicer.org/t/exporting-a-seg-nrrd-segmentation-with-extent-of-original-image/36996/2 "2026-09-24T06:51:42Z")

</div>

Hi @sjanko2 — I revisited your report about needing both the reference image’s full extent and the segment metadata that slicerio reads from `.seg.nrrd`. Your two export paths each preserved only one of those properties, and unchecking “Crop to minimum extent” did not change the result. Did you eventually find a supported way to retain both? If this is still an issue, which Slicer version and reference-geometry setting were involved? I am testing a read-only check that reports physical extent and segment metadata before downstream processing, and your outcome would help decide whether it is useful. A written description or synthetic header is enough; please do not share patient images.
