<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Yixun,<div><br></div><div>Thanks for your reply. This solved my issue.</div><div><br></div><div>Regards,</div><div>Jef</div><div><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Tue, 17 Jul 2012 10:50:58 -0400<br>Subject: Re: [Insight-users] Changes in gdcm::SeriesFileNames since ITKv4?<br>From: yxliuwm@gmail.com<br>To: jvdmb@hotmail.com<br>CC: insight-users@itk.org<br><br><div>Hi,</div>
<div>There is a bug in gdcm::SerieHelper</div>
<div>&nbsp;</div>
<div>Use m_UseSeriesDetails&nbsp; not UseSeriesDetails</div>
<div><font color="#0000ff"><font color="#0000ff">
void<BR></font></font> SerieHelper::SetUseSeriesDetails( <font color="#0000ff"><font color="#0000ff">bool</font></font> useSeriesDetails )
{<BR>
<BR><font color="#008000"><font color="#008000">// Fixed</font></font>
m_UseSeriesDetails = useSeriesDetails;<BR>
}<BR>
Yixun<BR><br><br></div>
<div class="ecxgmail_quote">On Tue, Jul 17, 2012 at 10:20 AM, jef vdmb <span dir="ltr">&lt;<a href="mailto:jvdmb@hotmail.com">jvdmb@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;padding-left:1ex" class="ecxgmail_quote">
<div>
<div dir="ltr">
<div dir="ltr">Hi, 
<div><br></div>
<div>Ever since I passed to ITKv4 (4.1 and 4.2 give the same result), the behaviour of itk::<span style="font-size:10pt">GDCMSeriesFileNames seems to have changed.</span></div>
<div><span style="font-size:10pt"><br></span></div>
<div><span style="font-size:10pt">I use the following standard code:</span></div>
<div>
<br><BR>
<i><span></span><span><b>typedef</b></span><span> </span>itk<span>::</span>GDCMSeriesFileNames<span> </span>NamesGeneratorType<span>;</span></i><BR>
<i><span></span>NamesGeneratorType<span>::</span>Pointer<span> </span><span>namesGenerator</span><span> </span><span>=</span><span> </span>NamesGeneratorType<span>::</span><span>New</span><span>();</span></i><BR>
<i><br></i><BR>
<i><span></span><span>// namesGenerator</span>-&gt;SetLoadSequences(<span><b>true</b></span>);</i><BR>
<i><span></span><span>// namesGenerator</span>-&gt;SetLoadPrivateTags(<span><b>true</b></span>);</i><BR>
<i><span></span><span>namesGenerator</span>-&gt;SetUseSeriesDetails(<span><b>true</b></span>);</i><BR>
<i><span></span><span>namesGenerator</span><span>-&gt;</span><span>AddSeriesRestriction</span><span>(</span><span>"0008|0021"</span><span>);</span></i><BR>
<i><span></span><span>namesGenerator</span><span>-&gt;</span><span>AddSeriesRestriction</span><span>(</span><span>"0008|0032"</span><span>);</span></i><BR>
<i><span style="font-size:10pt">namesGenerator</span><span style="font-size:10pt">-&gt;</span><span style="font-size:10pt">SetDirectory</span><span style="font-size:10pt">(</span><span style="font-size:10pt">cla</span><span style="font-size:10pt">.</span><span style="font-size:10pt">input_arg</span><span style="font-size:10pt">);</span></i><BR>

<br><BR>
When compiled against ITK 3.20, several DICOM series are detected. Using ITK 4.1 (and the same directory), only one series is &nbsp;retained. Adding the (commented) options, does not change anything.&nbsp;<BR>
<br><BR>
My apologies if I missed the answer in this mailing list. I saw several entries reporting similar behavior, but did not come across an answer.<BR>
<br><BR>
Regards,<BR>
Jef<BR>
<br><BR></div></div></div></div><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></blockquote></div><br></div></div>                                               </div></body>
</html>