CornerNeighbors

CornerNeighbors

is an option for various array and image processing functions that specifies whether diagonally adjacent corners should be considered neighbors of particular elements.

Details

Examples

open allclose all

Basic Examples  (2)

Eight-connected components:

Four-connected components:

Scope  (3)

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
 (7.0)
 |
Updated in 2014
 (10.0)