Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Image Processing & Analysis > Mathematical Morphology > Dilation >

Dilation

Dilation
gives the morphological dilation of image with respect to the structuring element ker.
Dilation
gives the dilation with respect to a range r square.
  • Dilation works with binary, grayscale, and other images.
  • The structuring element ker is a matrix containing s and s.
  • Dilation automatically adds zeros to structuring elements so that they have odd dimensions.
  • If multiple image channels are present, Dilation operates on each of them separately.
  • Dilation takes a Padding option that specifies the values to assume for pixels outside the image.
  • The default setting is Padding, corresponding to pixel value for all channels.
Dilation removes smaller dark features:
Dilation of a binary image:
Grayscale dilation:
Dilate horizontally:
Dilate vertically:
Dilate with a disk-shaped structuring element:
Dilation removes smaller dark features:
In[1]:=
Click for copyable input
Out[1]=
 
Dilation of a binary image:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
 
Grayscale dilation:
In[1]:=
Click for copyable input
Out[1]=
 
Dilate horizontally:
In[1]:=
Click for copyable input
Out[1]=
 
Dilate vertically:
In[1]:=
Click for copyable input
Out[1]=
 
Dilate with a disk-shaped structuring element:
In[1]:=
Click for copyable input
Out[1]=
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF