is an option for various array and image processing functions that specifies whether diagonally adjacent corners should be considered neighbors of particular elements.
Examplesopen allclose all
Basic Examples (2)
Finding the morphological perimeter of an object:
This image contains either one or 16 objects, depending on the setting of CornerNeighbors:
The result of geodesic dilation may depend on the definition of connectivity:
Introduced in 2008
Updated in 2014