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 0.

Details and Options

Examples

open allclose all

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]=

Scope  (1)

Options  (1)

Applications  (1)

Properties & Relations  (1)

See Also

DeleteSmallComponents  ComponentMeasurements  MorphologicalComponents

Introduced in 2010
(8.0)
| Updated in 2012
(9.0)