5 - Unit DIP
5 - Unit DIP
•
HIT or MISS is a three step operation
Let us start with the different steps of HIT or
MISS : Given image A, and SE or object is X.
First Step: A is erosion X is performed. The
result is :
Second Step: A Complement Erosion with (w-x)
Step 3: In this result is HIT
Another Example:
Result of A erosion B
Second Step: A complement and also
C is complement of B
A complement C: Result is shown below
• As the intersection of the two erosion produces a result, it is
considered as HIT.
Summary
• If the object X is in A then it is HIT
• Otherwise it is MISS
One more example:
Some Basic Morphological Algorithms
• The following are some of the basic morphological algorithms
• Boundary Extraction
• Region Filling
• Extraction of connected components
• Convex Hull
• Thinning
• Thickening
• Skeletons
• Pruning
Boundary Extraction
Example
Example
Example: Given
Final Result
Region Filling
• Region-Filling is a method to fill a bounded region with a certain color
or image.
Example
Result of first iteration. The result will become
input for next step
Next iteration
Result of second iteration
Result of next iteration
Next step
In the next step the result remains same and
the algorithm stops iteration
Final step in the algorithm : union of original
image with x5: Region filled
Example
Extraction of Connected Component
Algorithm
Result of first iteration X1 generated
Segmentation
Image Segmentation
Detection of discontinuities (Segmentation)
• Discontinuity means abrupt change in the image pattern. Observe the
following images: point and lines are representation for abrupt changes.