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

Categories

0 votes
818 views
in Technique[技术] by (71.8m points)

stl - Python: how to save individual slices from segmented .nii.gz file

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

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

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...