If there were multiple VOIs and the pipeline extraction were used, but only Image and Mask were specified. The label column were not used. What will happen?
Then the default settings take effect: label with value 1, or first segment is used to calculate features.
It there any way to check how many segmentation in the nrrd file? I have a multiple ROI nrrd, and I delete all other segmentation except one, could I check if there is only one segmentation in the file by code? Thanks for your help!
If it’s a segmentation generated in Slicer then yes, quite easy:
import SimpleITK as sitk ma = sitk.ReadImage('path/to/segmentation.seg.nrrd') n_seg = ma.GetNumberOfComponentsPerPixel()