wasserth / TotalSegmentator

Tool for robust segmentation of >100 important anatomical structures in CT and MR images
Apache License 2.0
1.42k stars 237 forks source link

Separating masks in multilabel NIFTI file #339

Closed Arconine1 closed 1 month ago

Arconine1 commented 1 month ago

Hi Wasserth,

Thank you for this great open source segmentator, it works well. Just one question: I saved the outputs in a single multilabel .nii file when running it and am now trying to get the masks as separate files.

Is there any way I can separate the masks within the existing single multilabel NIFTI file? Without having to re-run Totalsegmentator again, this time without the -ml.

Thank you!

wasserth commented 1 month ago

You can manually run some python code or use 3D Slicer to split the multilabel file into single files. TotalSegmentator has to additional command for that.