PRODUCTS
Mathematica
Mathematica Home Edition
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
Wolfram Lightweight Grid Manager
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
SOLUTIONS
Industry
Chemical Engineering
Image Processing
Mechanical Engineering
Petroleum Engineering
Environmental Sciences
Bioinformatics
Data Analysis and Mining
Financial Risk Management
Statistics
Software Engineering
More...
Education
Higher Education
Precollege Education
Students
Technology
Interactive Deployment
High-Performance and Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Learning Center
Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Wolfram|Alpha
Demonstrations Project
Wolfram Blog
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Data Manipulation
>
Image Processing & Analysis
>
Mathematical Morphology
>
Built-in
Mathematica
Symbol
Image Processing
Tutorials »
|
Erosion
Opening
Closing
HitMissTransform
MaxFilter
DistanceTransform
See Also »
|
Image Processing & Analysis
Mathematical Morphology
Summary of New Features in 7.0
New in 7.0: Alphabetical Listing
New in 7.0: Data Manipulation
More About »
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.
MORE INFORMATION
Dilation
works with binary, grayscale and other images.
The structuring element
ker
is a matrix containing
0
s and
1
s.
Dilation
automatically adds zeros to structuring elements so that they have odd dimensions.
Dilation
[
image
,
r
]
is equivalent to
Dilation
[
image
,
BoxMatrix
[
r
]]
.
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
->0
, corresponding to pixel value
0
for all channels.
EXAMPLES
CLOSE ALL
Basic Examples
(6)
Dilation removes smaller dark features:
In[1]:=
Out[1]=
Dilation of a binary image:
In[1]:=
In[2]:=
Out[2]=
Grayscale dilation:
In[1]:=
Out[1]=
Dilate horizontally:
In[1]:=
Out[1]=
Dilate vertically:
In[1]:=
Out[1]=
Dilate with a disk-shaped structuring element:
In[1]:=
Out[1]=
SEE ALSO
Erosion
Opening
Closing
HitMissTransform
MaxFilter
DistanceTransform
TUTORIALS
Image Processing
MORE ABOUT
Image Processing & Analysis
Mathematical Morphology
Summary of New Features in 7.0
New in 7.0: Alphabetical Listing
New in 7.0: Data Manipulation
RELATED LINKS
Demonstrations with Dilation
(
Wolfram Demonstrations Project
)
New in 7