0% found this document useful (0 votes)
22 views

Lab 14

asxdcfvgbn

Uploaded by

nihib66608
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Lab 14

asxdcfvgbn

Uploaded by

nihib66608
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Digital Image Processing

Lab

CEL-445
Lab Journal 14

Submitted to: MA’AM AMNA WAHEED

Name: Muhammad Touseef Shahzad


Class: BCE - 07
Enrollment no.: 01-132192-041

DEPARTMENT OF COMPUTER ENGINEERING


BAHRIA UNIVERSITY | ISLAMABAD CAMPUS
Lab# 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.

We came to know about the morphological operations we learn that 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 and perform the given tasks in lab.

----------------------------------------------------------------------------------

You might also like