[ITK-users] Writing dicom series in SimpleITK

Matias Montroull matimontg at gmail.com
Tue Nov 8 06:33:14 EST 2016


I had the same issue a while ago and the answer at that time was that the
serieswriter is not fully functional yet. Not sure if it has been fixed
since then. The problem is related to the metadata as you mentioned I
believe.

Matias

On Nov 8, 2016 12:38 AM, "Sara Gh" <sg.ele.eng at gmail.com> wrote:

> 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
>
> _____________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20161108/062413b0/attachment.html>


More information about the Insight-users mailing list