.seg.nrrd versus .nrrd

What is the difference between file ended with .nrrd versus .seg.nrrd
I found when I load the .seg.nrrd file into 3D slicer, it was recognized as segmentation; but in the case of .nrrd file, i need to choose by myself.
Are the information stored in both format the same, only adding segmentation attribute in the .seg.nrrd file? Thanks for your help!

When a segmentation is saved into .nrrd image format, a couple of additional metadata fields are saved (segment names, colors, terminology, etc.). We still keep the .nrrd file extension so that any nrrd-compatible software can recognize it.

The composite .seg.nrrd file extension just gives a hint for Slicer to load the file as “Segmentation”. If you save the segmentation as .nrrd then it is loaded as “Volume” by default and you need to manually select Description->Segmentation in “Add data” dialog to load it as “Segmentation”.

1 Like

Are the segmentation area in both file the same? Thanks for your help!

In Slicer-4.10, segmentations were always saved as 4D volumes and automatically cropped to the minimum necessary extent. In Slicer-4.11 segmentation is saved the same way as an exported 3D labelmap (only 3D volume if no overlap between segments, not cropped to minimum size).

Thanks for your reply!!! According what you reply, can I state that in slicer 4.10, no matter I store the segmentation in need or seg.nrrd, the segmentation area will be the same area in both format.? Does this result also apply to slicer 4.11? I am really grateful for your answer, thanks a lot???

If you save the segmentation directly (not by exporting to labelmap node and saving the labelmap) then it does not matter if you choose .seg.nrrd or just .nrrd file extension. Dimensionality and extent depends on Slicer version (Slicer-4.10 is 4D data with reduced extent; Slicer-4.11 is usually 3D and by default not reduced extent).

Just for confirmation, sorry for keep asking question.
Does save the segmentation directly means this screen?


Do these two file format, .nrrd or seg.nrrd. , both contains the same segmentation area?

Really thanks for your help!!!

Your file extension choice in this save data window only affects the segmentation file’s extension. The content is exactly the same.