1 year ago
#305306
Mrmr
Stacking multiple Dicom series for a same patient
I have a a sereies of Dicom images for each patient and I would like to stack them and save them as one Volumetric Dicom image, Any idea of how to do that?
from glob import glob
import dcmstack
import dicom
src_paths = glob('...../*.dcm')
my_stack = dcmstack.DicomStack()
for src_path in src_paths:
src_dcm = dicom.read_file(src_path)
my_stack.add_dcm(src_dcm)
# but did not how to save the stacked image somewhere in my desktop.
python
image-processing
python-imaging-library
pydicom
medical-imaging
0 Answers
Your Answer