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:

In[1]:=
Click for copyable input
Out[1]//MatrixForm=

Four-connected components:

In[1]:=
Click for copyable input
Out[1]//MatrixForm=

Scope  (3)

See Also

DiamondMatrix  BoxMatrix  ChessboardDistance  ManhattanDistance  MorphologicalComponents

Introduced in 2008
(7.0)
| Updated in 2014
(10.0)