[Insight-users] Neighborhood size in the NeighborhoodIterator.

Luis Ibanez luis.ibanez at kitware.com
Mon Feb 20 11:25:35 EST 2006


Hi Pedro,


Please read the ITK Software Guide:


     http://www.itk.org/ItkSoftwareGuide.pdf



In particular,
Chapter 11 "Iterators", pdf-pages 733-776.


The number of pixels in the neighborhood can be
obtained by calling the method "Size()", as
illustrated in pdf-page 769.


Please let us know if you have further questions.



    Thanks


      Luis



--


BTW. Please *do not* post questions to this list by
replying to the digest messages. There are at least
two reasons why such practice is a bad idea:



a) The subject of your email is *meaningless*.

    It just says

      "RE: Insight-users Digest, Vol 22, Issue 52"

    So, it will be hard to track your issue later on.




b) You bombard the list with a message that has several
    kilobytes (the digest), just to post your five lines
    question that is totally unrelated to the topics in
    the digest.




-------------------------------------
Pedro Pablo Mayorga Alvarez wrote:
> Hi.
> I'm using a NeighborhoodIterator, but I need to know how many pixels are in
> the neighborhood because I don't need boundary conditions.
>  - - - - - 
> |A|B|C|D|E|
>  - - - - - 
> |F|G|H|I|J|           <----Image[5 columns,3 rows]
>  - - - - - 
> |K|L|M|N|O|
>  - - - - - 
> For example Pixel A,E have 3 neighbors, while B,C,D have 5, and G,H have 8.
> 



More information about the Insight-users mailing list