Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am performing a vertebrae segmentation task and I've output multiple segmentation.nii.gz files. Each of the segmented niftis files contains different segments (segment 1,2,3...), corresponding different vertebraes labelled in the file.

My question is how to save the individual slices from each segmented nii.gz file? So the desired output should be look like following (which is generated by 3DSlicer)

desired output of each individual slices from the segmentation niftis file

Input: one segmented niftis file including slices for each vertebrae (nii.gz)

Desired output: individual '.stl'/'obj'/'nii'/'nrrd' files for each of the slices

I have tried the 3DSlicer python transcripts, it is too complex to either install and operate so it is not desired to deliver. I am not sure whether SimpleITK could work in this.

Thank you in advance for your time and effort.

question from:https://stackoverflow.com/questions/65913683/python-how-to-save-individual-slices-from-segmented-nii-gz-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
710 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...