(4.a) Morphological Operations
(4.a) Morphological Operations
Morphological Operators
ANISHA M. LAL
• Once segmentation is complete, morphological operations can be used to
remove imperfections in the segmented image and provide information on
the form and structure of the image
Morphology
• Morphological image processing (or morphology) describes a range of image
processing techniques that deal with the shape (or morphology) of features
in an image
• Morphological operations are typically applied to remove imperfections
introduced during segmentation, and so typically operate on bi-level images
Example
B Structuring Element
Structuring Element 1 1 1
Output Image 0
Example for Erosion
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 0 0
Example for Erosion
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 0 0 0
Example for Erosion
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 0 0 0 0
Example for Erosion
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 0 0 0 0 1
Example for Erosion
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 0 0 0 0 1 0
Example for Erosion
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 0 0 0 0 1 0 0
Example for Erosion
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 0 0 0 0 1 0 0 0
Dilation & Erosion
• Basic operations
• Are dual to each other:
• Erosion shrinks foreground, enlarges Background
Structuring Element 1 1 1
Output Image 1
Example for Dilation
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 1 0
Example for Dilation
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 1 0 1
Example for Dilation
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 1 0 1 1
Example for Dilation
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 1 0 1 1 1
Example for Dilation
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 1 0 1 1 1 1
Example for Dilation
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 1 0 1 1 1 1 1
Example for Dilation
Input image 1 0 0 0 1 1 1 0 1 1
Structuring Element 1 1 1
Output Image 1 0 1 1 1 1 1 1
Another Dilation Example
Thresholded closed
Closing Example 2
• Good for further processing: E.g. Skeleton operation looks
better for closed image!