[ITK-users] SimpleITK - Reading different DICOM serie

Guillaume Lemaître g.lemaitre58 at gmail.com
Mon Nov 3 15:47:33 EST 2014


Hi Brad,

I build Simple-ITK from anaconda recipes.
Checking the conda-build directory, it seems SimpleITK 0.9.0 and ITK 4.6.1

Cheers,

On 3 November 2014 21:37, Bradley Lowekamp <blowekamp at mail.nih.gov> wrote:

> 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 GuillaumePhD CandiateMSc 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
>
>
>


-- 




*LEMAÎTRE GuillaumePhD CandiateMSc 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20141103/6deb6dd0/attachment-0001.html>


More information about the Insight-users mailing list