[ITK Community] [Insight-users] LeafTreeIterator problem?

Xiaoxiao Liu xiaoxiao.liu at kitware.com
Wed Dec 4 21:46:09 EST 2013


Hi Thai Hoang,
Hmm, it looks like a bug to me.

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.)

Please investigate further in the source code
"Modules/Core/Common/include/itkLeafTreeIterator.h".
I will be happy to review your gerrit patch if you submit one (
http://www.itk.org/Wiki/ITK/Git/Develop).

Let me know if I you have more questions along the way.

-Best,
Xiaoxiao



On Wed, Dec 4, 2013 at 7:27 PM, Hoang Van Thai <hvthaibk at gmail.com> wrote:

> Dear all,
>
> 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
>
>                 0
>           /      |      \
>          1     2      3
>         /      /   \
>        7     4   5
>                     |
>                    6
>
> I am using ITK 4.4.2 and LinuxMint 13. Thanks!
>
> Thai Hoang
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
>


-- 


---------------------------------------------
*Xiaoxiao Liu*, Ph.D.
R & D Engineer
Kitware Inc <http://www.kitware.com/>.
Clifton Park, NY
Phone: (518) 881-4924  or  (518) 371-3971 x124
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131204/c88be697/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


More information about the Community mailing list