[Insight-users] What is GetNeighborhoodIndex of the ShapedNeighborhoodIterator?

Dawood AlMasslawi masslawi at gmail.com
Mon Jul 18 10:35:50 EDT 2011


>
> Following the same logic it should return the neighborhood index of
>
> the pixel which the constant iterator is currently accessing.
>
> In the wiki example since the radius of the neighborhood is set
>
> equal to the size of the image I guess it returns the number of the pixel
>
> as the iterator walks from the top left to the bottom right.
>
> Hence the neighborhood index would start with 0 and end with
>
> number of pixels minus 1.
>
> Still, 199 and 241 seems a bit much, the image has only 100 pixels!!
>
>
> Dawood
>
>
>
>
> On Mon, Jul 18, 2011 at 5:42 PM, David Doria <daviddoria at gmail.com> wrote:
>
>> On Mon, Jul 18, 2011 at 9:00 AM, Dawood AlMasslawi <masslawi at gmail.com>wrote:
>>
>>> Hi David,
>>>
>>> The GetNeighborhoodIndex method returns the index of the pixel at
>>>
>>> an offset position from the center of the neighborhood, therefore this
>>>
>>> method should have an offset as an argument. It's strange that you
>>>
>>> didn't get any errors!
>>>
>>> This method is implemented in "InsightToolkit\Code\Common\
>>>
>>> itkNeighborhood.txx", line 184, check your version to make sure!
>>>
>>> HTH,
>>>
>>> Dawood
>>>
>>
>> Hm, when looking for that, I realized it is not the GetNeighborhoodIndex(offset)
>> function of ShapedNeighborhoodIterator, but rather the GetNeighborhoodIndex()
>> function of the ConstIterator struct:
>>
>>
>> http://www.itk.org/Doxygen/html/structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#a8798aa7d0bc3e9b42591902b7e3d32f6
>>
>> What is the concept that this one is returning?
>>
>> David
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110718/3b5b2b1e/attachment.htm>


More information about the Insight-users mailing list