A shape class for ShapedImageNeighborhoodRange and ShapedNeighborhoodIterator

@phcerdan My latest patch ENH: Documented + tested order offsets ConnectedImageNeighborhoodShape was very much inspired by your earlier remarks on the order of the offsets, already on April 14, at itk::NeighborhoodRange: a new class for efficient modern C++ style iteration Now I think I found a proper term to describe the way the offsets are sorted: colexicographic order

The unit test included with the patch compares the offsets based on colexicographic order, by passing reverse-iterators of itk::Offset<Dimension> to std::lexicographical_compare. See itkConnectedImageNeighborhoodShapeGTest.cxx

Please check: http://review.source.kitware.com/#/c/23500

1 Like