[ITK-users] SimpleITK - Reading different DICOM serie

David Chen dchen at mail.nih.gov
Mon Nov 3 16:23:16 EST 2014


Hi Guillaume

What version of SimpleITK are you running?  I tried your script using the current git master, and it doesn’t work for me.  But when I ran it using SimpleITK 0.8.0 it does.  So clearing something has gone wrong that we have to figure out.  For now, try and use 0.8.0.


Cheers,
Dave


> From: Guillaume Lemaître <g.lemaitre58 at gmail.com>
> Subject: [ITK-users] SimpleITK - Reading different DICOM serie
> Date: October 31, 2014 at 7:03:36 PM EDT
> To: "insight-users at itk.org" <insight-users at itk.org>
> 
> 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/insight-users/attachments/20141103/aa5330af/attachment.html>


More information about the Insight-users mailing list