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.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (2)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=
Introduced in 2008
(7.0)
| Updated in 2014
(10.0)