Image Processing Toolbox User's Guide Previous page   Next Page

Dilation and Erosion

Dilation and erosion are two fundamental morphological operations. Dilation adds pixels to the boundaries of objects in an image, while erosion removes pixels on object boundaries. The number of pixels added or removed from the objects in an image depends on the size and shape of the structuring element used to process the image.

The following sections

To view an extended example that uses morphological processing to solve an image processing problem, see the Image Processing Toolbox watershed segmentation demo.


Previous page  Morphological Operations Understanding Dilation and Erosion Next page

© 1994-2005 The MathWorks, Inc.