VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
Â
Implement the morphological operations: Dilation, Erosion, Opening and Closing
1. 1
DIGITAL IMAGE PROCESSING
Tim Project Assignment HW #4
(1) Iva Nurwauziyah / P66067021
(2) Muhammad Irsyadi Firdaus / P66067055
1. Implement the morphological operations: Dilation, Erosion, Opening and Closing. Apply these operations to the
following binary image with random noise.
Morphology is a broad set of image processing operations that process images based on shapes. The most basic
morphological operations are dilation and erosion. Dilation add pixels to the boundaries of objects in an image, while
erosion removes pixels on object boundaries.
By utilizing the processes of erosion and dilation, opening and closing is simply and extension of these applications.
The process of “opening” an image will likely smooth the edges, break narrow block connectors and remove small
protrusions from a reference image. “Closing” an image will also smooth edges but, as opposed to opening, it generally
fuses narrow breaks and long thin gulfs, eliminates small holes, and fill gaps in the counter.
This following figure 1 is the dilation result of a grayscale image.
Figure 1. The morphological image processing result with radius = 2 (a) Original image (b) Dilation (c) Erosion (d)
Opening (e) Closing
a b c
d e
a b c
d e
2. 2
Figure 2. The morphological image processing result with radius = 3 (a) Original image (b) Dilation (c) Erosion (d)
Opening (e) Closing
Figures (b) and (c) show how the image is changed by the erosion and dilation. Erosion makes the object smaller,
dilation makes the object larger.
2. Implement the top-hat transformation using gray-level opening operator.
Top-hat transformation is used for enhancing light objects on a dark background. In this assignment, performing
morphological top-hat filtering in the greyscale image. Top-hat filtering computes the morphological opening of the
image and then subtracts the result from the original image.
Figure 3. Top-hat transformation result with radius = 2
Figure 4. Top-hat transformation result with radius = 10
Figure 3 and 4 above are the result of top-hat transformation. However,we guess the both result is still wrong, because
with the radius = 2 on the top-hat transformation result we are fail to enhance the light object, we can see on the top side
and bottom side the result has different feature). And in the top-hat transformation result with the radius = 10, we don’t
know what happen with this. Then, based on our thinking, both of them are fail because some an error with our program.
This following is the Guide User Interface (GUI) result.