[Insight-users] NeighborhoodIterator documentation

Cory Quammen cquammen at cs.unc.edu
Sat Oct 9 20:57:06 EDT 2010


David,

The dimensions of the neighborhood iterator are given in terms of the
neighborhood "radius". From the itk::Neighborhood documentation:

"The radius is defined separately for each dimension as the number of
pixels that the neighborhood extends outward from the center pixel.
For example, a 2D Neighborhood object with a radius of 2x3 has sides
of length 5x7."

Hence, the example you cite from the documentation is indeed a 2x1 neighborhood.

Cory

On Sat, Oct 9, 2010 at 8:38 PM, David Doria <daviddoria at gmail.com> wrote:
> At lines 97-105 in itkNeighborhoodIterator.h :
>
>  * Pixels in a neighborhood can be accessed through a NeighborhoodIterator
>  * like elements in an array.  For example, a 2D neighborhood with radius 2x1
>  * has indices:
>  *
>  * \code
>  *
>  * 0  1  2  3  4
>  * 5  6  7  8  9
>  * 10 11 12 13 14
>
> Should "2x1" be replaced with "3x4", or am I misunderstanding something?
>
> Thanks,
>
> David
> _____________________________________
> 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.html
>
> 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
>



-- 
Cory Quammen
Computer Integrated Systems for Microscopy and Manipulation (CISMM)
Department of Computer Science
University of North Carolina at Chapel Hill
http://www.cs.unc.edu/~cquammen


More information about the Insight-users mailing list