Mathematica > Data Manipulation > Image Processing & Analysis > Mathematical Morphology >

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.
Count foreground objects that are formed by treating only non-corner pixel neighbors as being connected:
In[1]:=
Click for copyable input
Out[1]=
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team