[ITK-users] Writing dicom series in SimpleITK
Sara Gh
sg.ele.eng at gmail.com
Mon Nov 7 22:38:35 EST 2016
Hello,
I am storing a series of Dicom images using "ImageSeriesWriter" in
SimpleITK:
def writeSeries(imagein,outDir):
writer = sitk.ImageSeriesWriter()
filenames = [ outDir+'MR_{0:04}.dcm'.format(i) for i in
range(imagein.GetSize()[2])]
writer.SetFileNames(filenames)
writer.Execute(imagein)
However, I am not able to read in the stored series and
"GetGDCMSeriesFileNames" reads only one of the Dicom images, not the wholes
series. I guess it is something related to the metadata of the stored
series, but I couldn't fix it. I would be thankful if you could help me
with it.
Regards,
Sara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20161107/cb144f23/attachment.html>
More information about the Insight-users
mailing list