Lab 14
Lab 14
Lab
CEL-445
Lab Journal 14
Morphological Operations
Objective:
In this lab we will learn about applying different morphological operations on both grayscale and
binary images.
Tools:
Jupyter Notebook (Anaconda)
Introduction:
Morphological Operations
Morphological Operations is a broad set of image processing operations that process digital images
based on their shapes. In a morphological operation, each image pixel is corresponding to the value of
other pixel in its neighborhood.
Tasks
Task:1
Erode the image “fp.tif” using a suitable structural element so that all the noise is removed from the
image. Apply erosion on Fig01.tif with structuring elements of different sizes.
Solution:
Output:
Task:2
Dilate the image “broken_text.tif” such that the breakages in the characters/alphabets no longer exist.
Apply dilation on Fig01.tif with structuring elements of different sizes.
Solution:
Output:
Task:3
Morphological operations can also be performed on grayscale images. For dilation, the maximum
value is used that falls under the structuring element. For erosion, the minimum value is used that falls
under the structuring element. Perform dilation and erosion on Fig01.tif.
Solution:
Output:
Task:4
Morphological operations can also be used to segment out objects from an image. Using opening and
a suitable structuring element (disc, diamond and rectangle), segment out each object from the
“Objects.png” image.
Solution:
Output:
Conclusion:
In this lab we have learned about applying different morphological operations on both
grayscale and binary images, and we learned about morphological operations applications.
Operations is a broad set of image processing operations that process digital images based on
their shapes. In a morphological operation, each image pixel is corresponding to the value of
other pixel in its neighborhood and perform the given tasks in lab.
----------------------------------------------------------------------------------