[ITK] [ITK-users] SimpleITK - Reading different DICOM serie

Bradley Lowekamp blowekamp at mail.nih.gov
Mon Nov 3 15:37:17 EST 2014


Hello,

What version of ITK and SimpleITK are you using?

Thanks,
Brad

On Oct 31, 2014, at 7:03 PM, Guillaume Lemaître <g.lemaitre58 at gmail.com> wrote:

> Hi all,
> 
> I am currently using SimpleITK with python to read directly some DICOM data.
> My dataset is corresponding to an MRI modality composed of 40 series. Each serie is a 3D volume.
> 
> I would like to read the serie one-by-one. As a minimal example, I can post the following code:
> 
> reader = sitk.ImageSeriesReader()
> # For each serie found
> for serie in reader.GetGDCMSeriesIDs(path_to_data):
>     # Get the dicom filename corresponding to the current serie
>     dicom_names = reader.GetGDCMSeriesFileNames(path_to_data, serie)
>     reader.SetFileNames(dicom_names)
>     image = reader.Execute()
> 
> I got the following error:
> 
> WARNING: In /home/lemaitre/anaconda/conda-bld/work/build/ITK/Modules/IO/GDCM/src/itkGDCMSeriesFileNames.cxx, line 138
> GDCMSeriesFileNames (0x3078840): No Series were found
> 
> However, the output of reader.GetGDCMSeriesIDs(path_to_data) seems ok:
> ('1.2.826.0.1.3680043.2.1125.1.12083572272639445972057901411530444',
>  ............................ 40 lines ...........................
>  '1.2.826.0.1.3680043.2.1125.1.98804240625293208256969403455867278')
> 
> So my question is the following. What is the right way to passing the serieID to the GetGDCMSeriesFileNames() function.
> 
> Thanks in advance,
> 
> Best regards,
> -- 
> LEMAÎTRE Guillaume
> PhD Candiate
> MSc Erasmus Mundus ViBOT (Vision-roBOTic)
> MSc Business Innovation and Technology Management
> 
> g.lemaitre58 at gmail.com
> 
> 
> ViCOROB - Computer Vision and Robotic Team
> Universitat de Girona, Campus Montilivi, Edifici P-IV 17071 Girona
> Tel. +34 972 41 98 12 - Fax. +34 972 41 82 59 
> http://vicorob.udg.es/
> LE2I - Le Creusot
> IUT Le Creusot, Laboratoire LE2I, 12 rue de la Fonderie, 71200 Le Creusot
> Tel. +33 3 85 73 10 90 - Fax. +33 3 85 73 10 97 
> http://le2i.cnrs.fr
>         
> https://sites.google.com/site/glemaitre58/
> Vice - Chairman of A.S.C. Fours UFOLEP
> Chairman of A.S.C. Fours FFC
> Webmaster of http://ascfours.free.fr
> _____________________________________
> 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/community/attachments/20141103/aad0febf/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