Opening

Opening[image,ker]
gives the morphological opening of image with respect to the structuring element ker.

Opening[image,r]
gives the opening with respect to a range-r square.

Opening[data,]
applies opening to an array of data.

DetailsDetails

  • Opening 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 s and s.
  • Opening automatically pads structuring elements to have odd dimensions.
  • Opening[image,r] is equivalent to Opening[image,BoxMatrix[r]].

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Use morphological opening to extract objects larger than the structuring element:

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

Opening of a color photo with a diamond-shaped structuring element:

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

Opening of a 3D image using a cubic structuring element:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2008
(7.0)
| Updated in 2012
(9.0)