[ITK] [ITK-users] Runtime dependent image iteration
Matt McCormick
matt.mccormick at kitware.com
Mon Dec 14 11:27:55 EST 2015
Hello Victor,
This list of iterators is a good place to look for examples:
http://www.itk.org/Doxygen/html/group__ImageIterators.html
For instance, the itk::FloodFilledImageFunctionConditionalConstIterator may
be of interest.
The image iterators do not have many virtual methods, but that should not
discourage the creation of new classes -- the methods are not virtual
because of performance reasons.
HTH,
Matt
On Mon, Dec 14, 2015 at 10:40 AM, Poughon Victor <Victor.Poughon at cnes.fr>
wrote:
>
> Hello,
>
> I am trying to iterate over an image in a manner which depends on
> something only known at runtime. It seems like the iterator interface is
> not designed to handle this use case with polymorphism, because most
> methods are not virtual.
>
> I am thinking about writing that code into the iterator itself, but that's
> not so elegant because the iterator's code already has other
> responsibilities (iterating over the image in a specific way, etc.)
>
> Thanks for any help!
>
> Victor Poughon
>
>
> _____________________________________
> 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://public.kitware.com/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20151214/cb49f9ba/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://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list