Morphological Image Processing
Morphological Image Processing
MORPHOLOGICAL
IMAGE PROCESSING
SOME BASIC CONCEPTS FROM SET THEORY
SOME BASIC CONCEPTS FROM SET THEORY
Translation
Reflection
LOGIC OPERATIONS INVOLVING BINARY
IMAGES
LOGIC OPERATIONS INVOLVING BINARY
IMAGES
A B
Dilation
Structuring element
Erosion
For sets A and B in Z2, the erosion of A by B is defined
as
AΟB = z | ( Bˆ ) A z
where B̂ : the reflection of B about its origin and
shifting this reflection by z
The erosion of A by B is the set of all points z, such
that B, translated by z is contained in A.
( AOB ) = z | ( B ) z A
c c
( AOB) c = Ac Bˆ
= z | ( B ) z Ac = c
= z | ( B ) z Ac = Ac Bˆ
Erosion
Dilation and Erosion
Erosion Example
Opening and Closing
Opening:
smooth the contour of an object, break narrow isthmuses, and
eliminate thin protrusions.
The opening A by B is the erosion of A by B, followed by a
dilation of the result by B
A B = ( AΟB ) B
A B = ( B ) z | ( B ) z A
Closing:
smooth sections of contours but it generally fuses narrow
breaks and long thing gulfs, eliminates small holes, and fills
gaps in the contour.
A • B = ( A B )ΟB
Opening and Closing
Opening
Opening and Closing
Closing
Opening and Closing
Opening Example
Opening and Closing
Closing Example
Opening and Closing
L/2
L
L/2
L
EXERCISES
EROSION RESULT
MORPHOLOGICAL ALGORITHMS
Boundary Extraction
Region Filling
Convex Hull
Thinning
Pruning
Skeleton
Thickening
Some Basic Morphological Algorithms
Boundary Extraction
The boundary of a set A,
( A) = A − ( AOB)
where B is a suitable structuring element.
Some Basic Morphological Algorithms
Boundary Extraction Example
Some Basic Morphological Algorithms
Region Filling
The following procedure can fill the region:
X k = ( X k −1 B) Ac
where X0 = p, and B is the symmetric
structuring element shown in Fig. 9.15.
Note that p is the initial point we should
assign.
Some Basic Morphological Algorithms
Region Filling
0
1
X0=p
X k = ( X k −1 B) Ac
Some Basic Morphological Algorithms
Region Filling
Some Basic Morphological Algorithms
Extraction of Connected Components
X k = ( X k −1 B ) A
Some Basic Morphological Algorithms
Extraction of Connected Components
CONVEX HULL
Some Basic Morphological Algorithms
Thinning
The thinning of a set A by a structuring element B can
be defined in terms of the hit-or-miss transform:
A B = A − ( AO
* B)
= A ( AO
*B ) c