Closing

Closing[image,ker]

gives the morphological closing of image with respect to the structuring element ker.

Closing[image,r]

gives the closing with respect to a range-r square.

Closing[data,]

applies closing to an array of data.

Details

  • Closing works with arbitrary 2D and 3D images, operating separately on each channel, as well as data arrays of any rank.
  • The structuring element ker is a matrix containing 0s and 1s.
  • Closing automatically pads structuring elements to have odd dimensions.
  • Closing[image,r] is equivalent to Closing[image,BoxMatrix[r]].

Examples

open allclose all

Basic Examples  (3)

Closing of a binary image using a disk-shaped structuring element:

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

Closing of a grayscale image using a disk-shaped structuring element:

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

Remove a hole in a 3D image:

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

Scope  (10)

Applications  (4)

See Also

Opening  Dilation  Erosion  GeodesicClosing  HitMissTransform  BottomHatTransform

Introduced in 2008
(7.0)
| Updated in 2012
(9.0)