Dilation

Dilation[image,ker]

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

Dilation[image,r]

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

Dilation[data,]

applies dilation to an array of data.

Details and Options

  • Dilation 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.
  • Dilation[image,r] is equivalent to Dilation[image,BoxMatrix[r]].
  • The structuring element is automatically padded with zeros to have odd dimensions.  »
  • Dilation takes a Padding option that specifies the values to assume for pixels outside the image.
  • By default, Padding0 is used for images, corresponding to pixel value 0 for all channels.

Examples

open allclose all

Basic Examples  (3)

Dilation of a binary image:

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

Dilation of a grayscale image:

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

Dilation of a 3D shape:

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

Scope  (13)

Options  (2)

Applications  (2)

Properties & Relations  (2)

Possible Issues  (1)

See Also

Erosion  Opening  Closing  HitMissTransform  MaxFilter  DistanceTransform

Tutorials

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