It is allowed to export segmented files in NIfti format?

Operating system:
Slicer version:
Expected behavior:
Actual behavior:

Exporting segmentations into NIFTI file format is allowed, it is just not recommended.

Thanks. Can you explain me the reasons?
I need segmentation Nifti file to use in AR with hololens2? Do you think it’s a problem?

I included a link above to a page that compares DICOM, NRRD, NIFTI, but let me copy the reasons against NIFTI here then:

  • Orientation definition in NIFTI files can be ambiguous: there are multiple ways to define orientation, they can be both present, and contain contradicting information. Various softare will interpret these ambiguous files differently. See for example these discussions: 1, 2, 3
  • Not compatible with clinical software
  • Common convention for storing essential metadata does not exist
  • File header is not human-readable: you cannot use a text editor/viewer to see the actual file header but you always have to rely on a parser to give you an interpretation of the file header

You actually don’t need to use NIFTI for this purpose, as NRRD can store all (and more) metadata and voxel information that NIFTI can.

Anyway, if you need to use some specific software that is limited to NIFTI then you can export segmentation as NIFTI file from Slicer as I described in the link above.

1 Like