<div dir="ltr"><div><div>Hi Brad,<br><br></div><div>I build Simple-ITK from anaconda recipes.<br></div>Checking the conda-build directory, it seems SimpleITK 0.9.0 and ITK 4.6.1<br><br></div>Cheers,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 November 2014 21:37, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello,<div><br></div><div>What version of ITK and SimpleITK are you using?</div><div><br></div><div>Thanks,</div><div>Brad</div><div><br><div><div><div class="h5"><div>On Oct 31, 2014, at 7:03 PM, Guillaume Lemaître <<a href="mailto:g.lemaitre58@gmail.com" target="_blank">g.lemaitre58@gmail.com</a>> wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I am currently using SimpleITK with python to read directly some DICOM data.<br></div>My dataset is corresponding to an MRI modality composed of 40 series. Each serie is a 3D volume.<br><br></div>I would like to read the serie one-by-one. As a minimal example, I can post the following code:<br><span style="font-family:courier new,monospace"><br><font size="1"><span style="color:rgb(0,0,255)">reader</span> = sitk.ImageSeriesReader()<br></font></span></div><font size="1"><span style="font-family:courier new,monospace"><span style="color:rgb(0,255,0)"># For each serie found</span><br></span></font><div><div><font size="1"><span style="font-family:courier new,monospace"><span style="color:rgb(255,0,0)">for</span> serie <span style="color:rgb(255,0,0)">in</span> <span>reader</span>.GetGDCMSeriesIDs(path_to_data):<br></span></font></div><div><font size="1"><span style="font-family:courier new,monospace">   <span style="color:rgb(56,118,29)"> <span style="color:rgb(0,255,0)"># Get the dicom filename corresponding to the current serie</span></span><br></span></font></div><div><font size="1"><span style="font-family:courier new,monospace">    <span style="color:rgb(0,0,255)">dicom_names</span> = <span>reader</span>.GetGDCMSeriesFileNames(path_to_data, serie)<br>    <span>reader</span>.SetFileNames(dicom_names)<br>    <span style="color:rgb(0,0,255)">image</span> = <span>reader</span>.Execute()</span></font><br><br></div><div>I got the following error:<br><br><font size="1"><span style="font-family:courier new,monospace">WARNING: In /home/lemaitre/anaconda/conda-bld/work/build/ITK/Modules/IO/GDCM/src/itkGDCMSeriesFileNames.cxx, line 138<br>GDCMSeriesFileNames (0x3078840): No Series were found<br></span></font><br></div><div>However, the output of<font size="1"><span style="font-family:courier new,monospace"><span> reader</span>.GetGDCMSeriesIDs(path_to_data)</span></font> seems ok:<br><span style="font-family:courier new,monospace"><font size="1">('1.2.826.0.1.3680043.2.1125.1.12083572272639445972057901411530444',<br></font></span></div><div><span style="font-family:courier new,monospace"><font size="1"> ............................ 40 lines ...........................<br></font></span></div><div><span style="font-family:courier new,monospace"><font size="1"> '1.2.826.0.1.3680043.2.1125.1.98804240625293208256969403455867278')</font></span><br clear="all"></div><div><div><br></div><div>So my question is the following. What is the right way to passing the serieID to the <font size="1"><span style="font-family:courier new,monospace">GetGDCMSeriesFileNames</span><span style="font-family:courier new,monospace">()</span></font> function.<br><br></div><div>Thanks in advance,<br><br></div><div>Best regards,<br></div><div>-- <br><div><div dir="ltr"><div><span style="font-family:'Times New Roman';font-size:inherit"><table style="width:638px" border="0" cellpadding="0"><tbody><tr style="height:37.5pt"><td style="width:228px;height:37.5pt;padding:0.75pt" valign="top" align="left"><b><span style="font-family:Arial,Helvetica;font-size:8pt">LEMAÎTRE Guillaume</span><span style="font-size:8pt;font-family:Helvetica"><br></span><font size="1"><span style="font-family:Arial">PhD Candiate<br>MSc Erasmus Mundus ViBOT (Vision-roBOTic)<br></span></font><span style="font-size:7.5pt;font-family:Arial" lang="EN-GB"><font>MSc Business Innovation and Technology Management<br></font></span></b><span style="font-size:7.5pt;font-family:Arial" lang="EN-GB"><b><br></b><font color="#0DB02B"><a href="mailto:g.lemaitre58@gmail.com" target="_blank">g.lemaitre58@gmail.com</a><br><br></font></span><div><br></div></td><td style="width:400px;height:37.5pt;padding:0.75pt" valign="top" align="left"><span style="font-size:8pt"><b><span style="font-family:Arial,Helvetica">ViCOROB - Computer Vision and Robotic Team</span></b></span><span style="font-size:7.5pt;font-family:Arial"><br>Universitat de Girona, Campus Montilivi, Edifici P-IV 17071 Girona<br>Tel. <a href="tel:%2B34%20972%2041%2098%2012" value="+34972419812" target="_blank">+34 972 41 98 12</a> - Fax. <a href="tel:%2B34%20972%2041%2082%2059" value="+34972418259" target="_blank">+34 972 41 82 59</a> </span><br><span lang="EN-GB"><a href="http://vicorob.udg.es/" style="font-family:Arial;font-size:7.5pt" target="_blank">http://vicorob.udg.es/</a><br><font><b><font face="Arial, Helvetica"><span style="font-size:11px">LE2I - Le Creusot</span></font><br></b><font size="1" face="Arial">IUT Le Creusot, Laboratoire LE2I, 12 rue de la Fonderie, 71200 Le Creusot<br>Tel. <a href="tel:%2B33%203%2085%2073%2010%2090" value="+33385731090" target="_blank">+33 3 85 73 10 90</a></font></font><span style="font-family:Arial;font-size:x-small"> - Fax. <a href="tel:%2B33%203%2085%2073%2010%2097" value="+33385731097" target="_blank">+33 3 85 73 10 97</a></span><span style="font-family:Arial;font-size:x-small"> </span><span style="font-family:Arial;font-size:x-small"><br></span><span style="font-family:Arial;font-size:7.5pt" lang="EN-GB"><a href="http://le2i.cnrs.fr/" target="_blank">http://le2i.cnrs.fr</a></span></span></td></tr></tbody></table></span></div><div style="text-align:left"><img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103962984/config/le2i.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103388011/config/vico.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103887254/config/ub.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103809482/config/udg.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340104225210/config/vibot.png"></div><a href="https://sites.google.com/site/glemaitre58/" target="_blank">https://sites.google.com/site/glemaitre58/</a><br>Vice - Chairman of A.S.C. Fours UFOLEP<br>Chairman of A.S.C. Fours FFC<br>Webmaster of <a href="http://ascfours.free.fr/" target="_blank">http://ascfours.free.fr</a></div></div>
</div></div></div></div></div></div>
_____________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br><a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br></blockquote></div><br></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-family:'Times New Roman';font-size:medium"><table style="width:638px" border="0" cellpadding="0"><tbody><tr style="height:37.5pt"><td style="width:228px;height:37.5pt;padding-top:0.75pt;padding-right:0.75pt;padding-bottom:0.75pt;padding-left:0.75pt" valign="top" align="left"><b><span style="font-family:Arial,Helvetica;font-size:8pt">LEMAÎTRE Guillaume</span><span style="font-size:8pt;font-family:Helvetica"><br></span><font size="1"><span style="font-family:Arial">PhD Candiate<br>MSc Erasmus Mundus ViBOT (Vision-roBOTic)<br></span></font><span style="font-size:7.5pt;font-family:Arial" lang="EN-GB"><font color="#000000">MSc Business Innovation and Technology Management<br></font></span></b><span style="font-size:7.5pt;font-family:Arial" lang="EN-GB"><b><br></b><font color="#0DB02B"><a href="mailto:g.lemaitre58@gmail.com" target="_blank">g.lemaitre58@gmail.com</a><br><br></font></span><p></p></td><td style="width:400px;height:37.5pt;padding-top:0.75pt;padding-right:0.75pt;padding-bottom:0.75pt;padding-left:0.75pt" valign="top" align="left"><span style="font-size:8pt"><b><span style="font-family:Arial,Helvetica"><font color="#000000">ViCOROB - Computer Vision and Robotic Team</font></span></b></span><span style="font-size:7.5pt;font-family:Arial"><font color="#000000"><br>Universitat de Girona, Campus Montilivi, Edifici P-IV 17071 Girona<br>Tel. +34 972 41 98 12 - Fax. +34 972 41 82 59 </font></span><br><span lang="EN-GB"><a href="http://vicorob.udg.es/" style="font-family:Arial;font-size:7.5pt" target="_blank">http://vicorob.udg.es/</a><br><font color="#000000"><b><font face="Arial, Helvetica"><span style="font-size:11px">LE2I - Le Creusot</span></font><br></b><font face="Arial" size="1">IUT Le Creusot, Laboratoire LE2I, 12 rue de la Fonderie, 71200 Le Creusot<br>Tel. +33 3 85 73 10 90</font></font><span style="font-family:Arial;font-size:x-small"> - Fax. +33 3 85 73 10 97</span><span style="font-family:Arial;font-size:x-small"> </span><span style="font-family:Arial;font-size:x-small"><br></span><span style="font-family:Arial;font-size:7.5pt" lang="EN-GB"><a href="http://le2i.cnrs.fr" target="_blank">http://le2i.cnrs.fr</a></span></span></td></tr></tbody></table></span></div><div style="text-align:left"><img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103962984/config/le2i.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103388011/config/vico.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103887254/config/ub.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103809482/config/udg.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340104225210/config/vibot.png"></div><a href="https://sites.google.com/site/glemaitre58/" target="_blank">https://sites.google.com/site/glemaitre58/</a><br>Vice - Chairman of A.S.C. Fours UFOLEP<br>Chairman of A.S.C. Fours FFC<br>Webmaster of <a href="http://ascfours.free.fr" target="_blank">http://ascfours.free.fr</a></div></div>
</div>