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

David Doria daviddoria at gmail.com
Tue Jul 12 13:05:27 EDT 2011


In something like this:

http://www.itk.org/Wiki/ITK/Examples/Iterators/ShapedNeighborhoodIterator_Manual

these lines:

 std::cout << "New position: " << iterator.GetIndex() << std::endl;

      std::cout << ci.GetNeighborhoodIndex() << " -> "
<< ci.GetNeighborhoodOffset() << " = " << ci.Get() << std::endl;

produce:

New position [8, 8]:
199 -> [0, -1] = 0
241 -> [0, 1] = 0

I understand the position (from GetIndex) and the offset (from
GetNeighborhoodOffset), but what are the values 199 and 241 that
GetNeighborhoodIndex returns for every pixel?

Thanks,

David


More information about the Insight-users mailing list