Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

DeleteBorderComponents

DeleteBorderComponents[image]
replaces connected components adjacent to the border in a binary image image with background pixels.
DeleteBorderComponents[m]
replaces components adjacent to the border in a label matrix m with .
  • The option setting CornerNeighbors->False treats only the four pixels in the coordinate directions as adjacent.
Deleting components connected to the image border in a binary image:
Deleting components connected to the image border in a binary image:
In[1]:=
Click for copyable input
Out[1]=
Deleting the border component from a label matrix:
Assume 4-connectivity for computing the components:
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF