ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
DILATION AND EROSION
DILATION AND EROSION 
• These are two fundamental morphological 
operations. 
• Morphological operations -a collection of non-linear 
operations related to the shape or 
morphology of features in an image 
• Dilation adds pixels to the boundaries of 
objects in an image 
• Erosion removes pixels on object boundaries
Dilation and erosion
Dilation and erosion
Dilation and erosion
Dilation and erosion
Structuring element 
• The number of pixels added or removed from 
the objects in an image depends on the size 
and shape of the structuring element 
• It’s a matrix of 1’s and 0’s 
• The center pixel of the structuring element, 
called the origin
Origin of a Diamond-Shaped Structuring 
Element
Dilation program 
BW = zeros(9,10); 
BW(4:6,4:7) = 1 
SE = strel('square',3) 
BW2 = imdilate(BW,SE)
Dilation and erosion
Dilation and erosion

More Related Content

Dilation and erosion

  • 2. DILATION AND EROSION • These are two fundamental morphological operations. • Morphological operations -a collection of non-linear operations related to the shape or morphology of features in an image • Dilation adds pixels to the boundaries of objects in an image • Erosion removes pixels on object boundaries
  • 7. Structuring element • The number of pixels added or removed from the objects in an image depends on the size and shape of the structuring element • It’s a matrix of 1’s and 0’s • The center pixel of the structuring element, called the origin
  • 8. Origin of a Diamond-Shaped Structuring Element
  • 9. Dilation program BW = zeros(9,10); BW(4:6,4:7) = 1 SE = strel('square',3) BW2 = imdilate(BW,SE)