[ITK] [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/community/attachments/20161107/cb144f23/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list