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=
New in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »