[ITK] [ITK-users] Neighborhood Iterators Starting and Ending point

Matt McCormick matt.mccormick at kitware.com
Thu May 28 12:28:35 EDT 2015


Hi Denis,

Depending on your goals, working with a std::slice on the neighborhood
may help or just defining the neighborhood over the desired region
could be an alternative.  The documentation on NeighborhoodIterators
may help [1].

HTH,
Matt

[1] http://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch6.html#x47-1110006.4

On Tue, May 26, 2015 at 12:00 PM, Abu-Sammour, Denis
<Denis.Abu-Sammour at medma.uni-heidelberg.de> wrote:
> Hello,
>
> Is there a way to force the neighborhood iterator to start iterating in a
> defined point rather than using GoToBegin() which moves the center of the
> neighborhood iterator to the 1st pixel in the iteration region? For example,
> is it possible to start iterating (i.e. the 1st  neighborhood is centered)
> at say (x=5,y=5) with a neighborhood radius of 5 pixels then move with a
> step (offset) of 10 pixels stopping the iteration  at (x= end – 5, y= end –
> 5) rather than IsAtEnd() ?
>
> Thank you.
>
> Denis
>
>
> _____________________________________
> 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
>
_____________________________________
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