[Insight-users] neighborhood iterator

Jiao Lin jiao.lin at gmail.com
Wed Feb 16 14:24:54 EST 2011


My current understanding is that the shaped neighborhood iterator is
to change the shape of the neighborhood. It is like defining the
patten of your brush. It is not really defining the pattern the brush
walking through the image it seems.

--Jiao

On Wed, Feb 16, 2011 at 11:15 AM, David Doria <daviddoria at gmail.com> wrote:
> On Wed, Feb 16, 2011 at 2:12 PM, robert tamburo <robert.tamburo at gmail.com>
> wrote:
>>
>> Check out the ShapedNeighborhoodIterator class. I have not used it before,
>> but the description sounds like it may work. You can set the neighborhood
>> pixels to iterate by adding the offsets to an active list.
>>
>
> That is a good idea. I tried to make a demo of that class but it crashes and
> I haven't looked into it:
> http://www.itk.org/Wiki/ITK/Examples/Broken/Images/ShapedNeighborhoodIterator
>
> That examples tries to demonstrate sliding a "cross" over the image (though
> it seemed quite awkard). You could setup your "Grid" as the shape of the
> iterator, as Robert suggested.
> David


More information about the Insight-users mailing list