Morphology: A Thinning Algorithm Morphology Morphology
Morphology: A Thinning Algorithm Morphology Morphology
Morphology
Language of set theory
Let denote the set of all integers, and denote the set of integer
Let and be two white regions in a black and white binary image. Then they
can be considered as two sets in space, and their
Object:
Background:
where means ``not belong to''.
Basic definitions:
where .
Here the reflection is with respect to a specific origin, such as a point center
in the shape, e.g., the center of the shape.
Dilation
is the set of all displacements 's that keep the intersect (overlap)
For these simplest structuring elements, dilation can be carried out by setting all
background pixels (with value "0") 4- or 8-connected to each object pixel (with
value "1") to the value "1".
Erosion
Alternatively,
is the set of all translations 's that will keep the translated version
of to be entirely contained in .
Erosion of a binary image shape by shrinks the shape by half of the
size of .
If the same simple structuring elements are used, erosion can be carried out by
setting each object pixel (with value "1") 4- or 8-connected to a background pixel
(with value "0") to the value "0".
Properties of dilation and erosion
Commutative:
Non-commutative:
Associative:
Proof:
Opening
Dilation and erosion are not a pair of opposite operations in the sense that
their effects do not cancel each other.
The erosion carried out first eliminates small shapes (assumed to be noise)
as well as shrinking the object shape, while the following dilation grows the
object back (but not the noise).
Closing
Dilation:
Erosion:
Filling holes:
Thinning:
Example:
Example: