[ITK-users] SimpleITK - Reading different DICOM serie
Guillaume Lemaître
g.lemaitre58 at gmail.com
Fri Oct 31 19:03:36 EDT 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20141101/7e216503/attachment.html>
More information about the Insight-users
mailing list