Morphological Image Processing - Part3
Morphological Image Processing - Part3
Processing
part3
Grayscale Morphology
Grayscale Morphology
Gray Scale Erosion
Example
Opening for Grayscale Image
Closing for Grayscale Image
Illustration of 1-D Grayscale Opening and
Closing
opening
closing
Example of Grayscale Opening and Closing
Example
• Segment the coins from the image
MATLAB Code
Top Hat Transform
• Open the image with a structuring element subtract it from the
original
• Leaves only details smaller than structuring element
f ℎ = 𝑓 − (𝑓 𝑜 𝑏)
𝑓𝑜𝑏
t t
Summary / Questions
• Morphological algorithms are a useful set of tools for extracting
features of interest in a binary image, including
• Finding connected region
• Filtering out very large or very small region
• Finding the boundary of regions
• Filling in the interior of regions
• Finding the skeleton of region
• Morphological algorithms can be extended to grayscale images
• What does “dilation” and “erosion” mean for grayscale?