<div dir="ltr"><div><font color="#000000">Hi <font face="arial, sans-serif">Thai Hoang,</font></font></div><div>Hmm, it looks like a bug to me. <br></div><div><br></div><div>The corresponding itk test didn't actually verify the results of those iterators: "itkTreeContainerTest" reports the same leave node "7" only. ( The test code is testing the same tree as the example code here.)</div>
<div><br></div><div>Please investigate further in the source code "Modules/Core/Common/include/itkLeafTreeIterator.h".</div><div>I will be happy to review your gerrit patch if you submit one (<a href="http://www.itk.org/Wiki/ITK/Git/Develop">http://www.itk.org/Wiki/ITK/Git/Develop</a>).</div>
<div><br></div><div>Let me know if I you have more questions along the way.</div><div><br></div><div>-Best,</div><div>Xiaoxiao</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 4, 2013 at 7:27 PM, Hoang Van Thai <span dir="ltr"><<a href="mailto:hvthaibk@gmail.com" target="_blank">hvthaibk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all,<div><br></div><div>I am a new user and learning ITK by running its examples. In TreeContainer.cxx the output from LeafTreeIterator seems strange to me since I expect 7 4 6 3 but only get 7 from the output. Could any explain for me? The input tree is </div>
<div><br></div><div> 0</div><div> / | \</div><div> 1 2 3</div><div> / / \</div><div> 7 4 5 </div><div> |</div><div> 6</div>
<div><br></div><div>I am using ITK 4.4.2 and LinuxMint 13. Thanks!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Thai Hoang</div></font></span></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>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div><br></div>---------------------------------------------<br><b>Xiaoxiao Liu</b>, Ph.D.<div><div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">R & D Engineer</span></font></div>
<div><div><a href="http://www.kitware.com/" target="_blank">Kitware Inc</a>.</div></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Clifton Park, NY</span><div><div>Phone: (518) 881-4924 or <span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">(518) 371-3971 x124</span></div>
<div><font face="Verdana, Arial, Helvetica, sans-serif"><span style="line-height:31px;font-size:x-small"><br></span></font></div></div></div></div></div>
</div>