Possibility to export multiple labels in one nifti file?

Is it possible to export multiple labels in one nii.gz file? I’m cautious on trying this as I’m afraid the labels might go missing.

The most common use case is to export all non-overlapping segments of an image into a single file. Therefore, you don’t need to worry about saving many labels into a single file.

However, NIFTI files have many issues, mostly due to that you can store the image geometry (origin, spacing, axis directions) in ambiguous ways. You may find that the labels that you write using one software cannot be read correctly by another software. Therefore, I would recommend using NRRD file format instead.