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 .

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Deleting components connected to the image border in a binary image:

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

Deleting components connected to the border of a 3D image:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2010
(8.0)
| Updated in 2012
(9.0)
Translate this page: