2. âMorphologyâ - a branch of Biology which deals with
the form and structure of plants and animals.
Here, it is used as a tool for extracting image
components useful in describing image shape.
Programme chart
âą Dilation and Erosion
âą Opening and Closing
âą Hit or Miss transformation
âą Morph. algorithms
3. Dilation
In dilation, a small image called structuring element is used as a local
maximum operator. As the structuring element is scanned over the
image, we compute the maximal pixel value overlapped by B and
replace the image pixel under the anchor point with that maximal
value.
Structuring element B
5. Dilation contd...
Dilation gradually enlarges the boundaries of regions of foreground pixels.
Thus areas of foreground regions grow in size while holes within those
regions become smaller.
7. Erosion
Erosion is the converse of dilation. The action of the erosion operator
is equivalent to computing a local minimum over the area of the
kernel. As the kernel is scanned over the image, we compute the
minimal pixel value overlapped by B and replace the image pixel
under the anchor point with that minimal value.
9. Erosion contdâŠ
Erosion is the converse of dilation. The action of the erosion operator
is equivalent to computing a local minimum over the area of the
kernel. As the kernel is scanned over the image, we compute the
minimal pixel value overlapped by B and replace the image pixel
under the anchor point with that minimal value.
11. Opening
Opening generally smoothens the contour of an object, breaks narrow
isthmuses, and eliminates thin protrusions.
The opening of set A by structuring element B, denoted A ⊠B, is defined as,
12. Opening â geometrical interpretation
Suppose that we view the structuring element B as a (flat) "rolling ball."
The boundary of A ⊠B is then established by the points in B that reach the
farthest into the boundary of A as B is rolled around the inside of this
boundary.
14. Closing
Closing also tends to smooth sections of contours but, as opposed to
opening, it generally fuses narrow breaks and long thin gulfs, eliminates small
holes, and fills gaps in the contour.
The closing of set A by structuring element B, denoted A âą B, is
defined as,
15. Closing â geometrical interpretation
Closing has a similar geometric interpretation, except that now we roll B on
the outside of the boundary.
17. A morphological filter
We have a binary image showing a section of a fingerprint corrupted
by noise. The noise manifests itself as light elements on a dark
background and as dark elements on the light components of the
fingerprint. The objective is to eliminate the noise and its effects on
the print while distorting it as little as possible. A morphological filter
consisting of opening followed by closing can be used to accomplish
this objective.
Noisy image Structuring element