Digital Image Processing Assignment
Digital Image Processing Assignment
Roll NO 19014198-070
Section SE-19-B
7/31/2023
It is a technique used to process images based on their shapes and structures. It primarily
focuses on operations that modify the geometric structure of an image. Morphological
operations are especially useful for image enhancement, noise removal, segmentation,
and object extraction.
Dilation:
Dilation expands the image pixels, or it adds pixels on object boundaries. First, we
traverse the structuring element over the image object to perform dilation operation. The
output pixel values are calculated using the following equation.
Example:
This example of Dilation is shown in this Figure. Where (a) represents original image,
8(b) and 8(c) shows processed images after dilation using 3x3 and 5x5 structuring
elements respectively.
Properties:
It can repair breaks.
It can repair intrusions.
Erosion:
Erosion shrinks the image or removes pixels on object boundaries. First, we traverse the
structuring element over the image object to perform an erosion operation. The output
pixel values are calculated using the following equation.
Example:
This example of Erosion is shown in this Figure. Where (a) represents original image,
8(b) and 8(c) shows processed images after dilation using 3x3 and 5x5 structuring
elements respectively.
Properties:
It can split apart joint objects.
It can strip away extrusions.
Opening:
This operation is the combination of erosion followed by dilation. It helps to remove
small objects and noise while preserving the overall structure of larger objects.
Closing:
This operation is the combination of dilation followed by erosion. It helps to close
small gaps between objects.
Usage:
Morphological image processing is widely used in various applications, such as image
segmentation, feature extraction, character recognition, medical image analysis, and
more. It can be implemented efficiently using algorithms and data structures like erosion
and dilation masks or more advanced techniques like the distance transform.
Hit/Miss Transformation:
The Hit/Miss transformation is a morphological operation used in image processing to
detect specific patterns or shapes in binary images. It is a more advanced morphological
operation that helps identify patterns based on the exact arrangement of foreground and
background pixels in the image.
Hit/Miss transformation uses two structuring elements: one for foreground (object) pixels
and another for background (non-object) pixels. The goal is to find matches for the object
pattern and the complement of the object pattern within the image.
Conclusion:
The final result of the Hit/Miss transformation is obtained by combining the hit and miss
images using logical operations. Typically, a pixel is considered to be a match if it is a hit
(foreground) and also a miss (background) in the complement image.
The Hit/Miss transformation is particularly useful for detecting complex shapes or
objects with specific arrangements of pixels. It can be used in various image processing
tasks, such as pattern recognition, character recognition, and feature extraction.