<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"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></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 <<a href="mailto:notinmyhead@gmail.com">notinmyhead@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I refer to this email (dated 10/23/2012):<br>
><br>
> Il giorno 23/ott/2012, alle ore 13.33, kosborn ha scritto:<br>
><br>
>> Instead of trying to bypass the bug, a better solution is to fix it as<br>
>> someone else pointed out in an earlier thread. Edit the file<br>
>> InsightToolkit-4.2.1/Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat/gdcmSerieHelper.cxx<br>
>><br>
>> and change the SetUseSeriesDetails method to<br>
>><br>
>> void SerieHelper::SetUseSeriesDetails( bool useSeriesDetails )<br>
>> {<br>
>> //UseSeriesDetails = useSeriesDetails;<br>
>> m_UseSeriesDetails = useSeriesDetails;<br>
>> }<br>
>><br>
>> and rebuild ITK. Then the AddSeriesRestriction method of GDCMSeriesFileNames<br>
>> works as it should. In my case<br>
>><br>
>> itk::GDCMSeriesFileNames::Pointer nameGenerator =<br>
>> itk::GDCMSeriesFileNames::New();<br>
>> nameGenerator->SetLoadSequences(true);<br>
>> nameGenerator->SetLoadPrivateTags(true);<br>
>> nameGenerator->SetUseSeriesDetails(true);<br>
>> nameGenerator->AddSeriesRestriction("0019|100c");<br>
>> nameGenerator->SetDirectory("path/to/dicom/files");<br>
>> itk::SerieUIDContainer uids = nameGenerator->GetSeriesUIDs();<br>
>><br>
>> gives me as many series uids are there are b-values, using 0019|100c as the<br>
>> private Siemens tag for b-values.<br>
>><br>
>> Good luck, Kevin<br>
><br>
><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>
_____________________________________<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>