DIP Lecture8 PDF
DIP Lecture8 PDF
Lecture # 07
Structuring element
Input Image
Definition of Hit, Miss and Fit
Definition of erosion
• The basic effect of the operator on a binary
image is to erode away the boundaries of
regions of foreground pixels . Thus areas of
foreground pixels shrink in size, and holes
within those areas become larger.
Example of Erosion
Example of Erosion
Concept of Erosion
Concept of Erosion
Points selected for Erosion
Result After Erosion
• close all
• clear all
• im=imread('circuit_thresh.jpg');
• imshow(im);
• erodeVar=strel('disk',1);
• outImage=imerode(im,erodeVar);
• imshow(outImage);
• erodeVar=strel('disk',3)
• outImage2=imerode(im,erodeVar);
• figure,imshow(im);
• figure,imshow(outImage2);
Summary
• Dilation expand the area of the object region
along the boundary region.
• Erosion shrinks the objects by removing the
boundary pixels.