Lab#10
“Introduction to Morphological Operators”
Introduction:
Morphological image processing is a collection of non-linear operations related to the shape
or morphology of features in an image.
• Its techniques rely on relative ordering of pixel values, not numerical values.
• It provides information about image structure suitable for processing binary images and
grayscale images.
• It provides non-linear smoothing and feature enhancement.
• It removes imperfections caused by noise, texture, or threshold specification. use a
structuring element for comparison in all possible image locations.
Structuring elements:
• Matrix of pixels with values of 1 or 0 shape of element defined by value odd
dimensions.
Figure 1. Structuring element with origin in bold
Morphological operators are good for noise removal in background and removal of holes in
foreground/background.
Lab Objectives:
• Perform dilation operation on an image and compare the resultant image with original
image.
• Perform erosion operation on an image and compare the resultant image with original
image.
, In Lab tasks:
Task#01: Write a Matlab code to apply erosion on an Image.
Code:
Figure:
Task#02: Write a Matlab code to apply dilation on an Image.
Code:
“Introduction to Morphological Operators”
Introduction:
Morphological image processing is a collection of non-linear operations related to the shape
or morphology of features in an image.
• Its techniques rely on relative ordering of pixel values, not numerical values.
• It provides information about image structure suitable for processing binary images and
grayscale images.
• It provides non-linear smoothing and feature enhancement.
• It removes imperfections caused by noise, texture, or threshold specification. use a
structuring element for comparison in all possible image locations.
Structuring elements:
• Matrix of pixels with values of 1 or 0 shape of element defined by value odd
dimensions.
Figure 1. Structuring element with origin in bold
Morphological operators are good for noise removal in background and removal of holes in
foreground/background.
Lab Objectives:
• Perform dilation operation on an image and compare the resultant image with original
image.
• Perform erosion operation on an image and compare the resultant image with original
image.
, In Lab tasks:
Task#01: Write a Matlab code to apply erosion on an Image.
Code:
Figure:
Task#02: Write a Matlab code to apply dilation on an Image.
Code: