Professional Documents
Culture Documents
Aditya Singh D14B 63 IPMV Exp6
Aditya Singh D14B 63 IPMV Exp6
Experiment No: 6
Grade/Marks:
Signature:
Aim : To perform the following operations :
1) Erosion
2) Dilation
3) Opening
4) Closing
5) Border Extraction
Create a GUI for displaying the result.
Theory :
Erosion :
Erosion erodes away the boundaries of the foreground object and is used to diminish
the features of an image.
Working of erosion:
Working of dilation:
Opening :
Opening is a process in which first erosion operation is performed and then dilation
operation is performed. It eliminates the thin protrusions of the obtained image.
Opening is used for removing internal noise of the obtained image.
Closing :
Closing is a process in which first dilation operation is performed and then erosion
operation is performed. It eliminates the small holes from the obtained image.
Closing is used for smoothening of contour and fusing of narrow breaks .
Border Extraction :
For border extraction, we take the erosion of the image and subtract the eroded
image from the original image to obtain the border.
Observations :
Conclusion :
• Erosion removes the small anomalies by removing the objects smaller than
the structuring element.
• Dilation fills the holes and broken areas by connecting the areas that are
separated by space smaller than the structuring element.