<div dir="ltr"><div>Hi all,<br><br></div>   I happened to experience the same bug. I am curious to see it is still there in ITK-4.4.1 release. Can anyone in gdcm and ITK teams integrate this fix?<br><br>Thanks,<br>Mengda<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 10, 2013 at 12:01 PM, Matt McCormick <span dir="ltr">&lt;<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ale,<br>
<br>
To get the fix integrated, write at test along with the fix, and<br>
submit it to upstream GDCM:<br>
<br>
  <a href="https://lists.sourceforge.net/lists/listinfo/gdcm-developers" target="_blank">https://lists.sourceforge.net/lists/listinfo/gdcm-developers</a><br>
<br>
and ITK:<br>
<br>
  <a href="http://www.itk.org/Wiki/ITK/Git/Develop" target="_blank">http://www.itk.org/Wiki/ITK/Git/Develop</a><br>
<br>
Please let me know if there are any questions.<br>
<br>
Thanks,<br>
Matt<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Jan 10, 2013 at 9:16 AM, Alessandro &lt;<a href="mailto:notinmyhead@gmail.com">notinmyhead@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I refer to this email (dated 10/23/2012):<br>
&gt;<br>
&gt; Il giorno 23/ott/2012, alle ore 13.33, kosborn ha scritto:<br>
&gt;<br>
&gt;&gt; Instead of trying to bypass the bug, a better solution is to fix it as<br>
&gt;&gt; someone else pointed out in an earlier thread.  Edit the file<br>
&gt;&gt; InsightToolkit-4.2.1/Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat/gdcmSerieHelper.cxx<br>
&gt;&gt;<br>
&gt;&gt; and change the SetUseSeriesDetails method to<br>
&gt;&gt;<br>
&gt;&gt;    void SerieHelper::SetUseSeriesDetails( bool useSeriesDetails )<br>
&gt;&gt;    {<br>
&gt;&gt;          //UseSeriesDetails = useSeriesDetails;<br>
&gt;&gt;          m_UseSeriesDetails = useSeriesDetails;<br>
&gt;&gt;    }<br>
&gt;&gt;<br>
&gt;&gt; and rebuild ITK. Then the AddSeriesRestriction method of GDCMSeriesFileNames<br>
&gt;&gt; works as it should. In my case<br>
&gt;&gt;<br>
&gt;&gt;        itk::GDCMSeriesFileNames::Pointer nameGenerator =<br>
&gt;&gt; itk::GDCMSeriesFileNames::New();<br>
&gt;&gt;        nameGenerator-&gt;SetLoadSequences(true);<br>
&gt;&gt;        nameGenerator-&gt;SetLoadPrivateTags(true);<br>
&gt;&gt;        nameGenerator-&gt;SetUseSeriesDetails(true);<br>
&gt;&gt;        nameGenerator-&gt;AddSeriesRestriction(&quot;0019|100c&quot;);<br>
&gt;&gt;        nameGenerator-&gt;SetDirectory(&quot;path/to/dicom/files&quot;);<br>
&gt;&gt;        itk::SerieUIDContainer uids = nameGenerator-&gt;GetSeriesUIDs();<br>
&gt;&gt;<br>
&gt;&gt; gives me as many series uids are there are b-values, using 0019|100c as the<br>
&gt;&gt; private Siemens tag for b-values.<br>
&gt;&gt;<br>
&gt;&gt; Good luck, Kevin<br>
&gt;<br>
&gt;<br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
_____________________________________<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://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div></div>