Professional Documents
Culture Documents
Chapter 9:
Morphological Image Processing
What are Morphological Operations?
Morphing
B
A
z = (z1,z2)
(A)z B̂
Logical Operations*
A B z Bˆ z A
= Empty set
Dilate means “extend”
A = Object to be dilated
B = Structuring element
Structuring
Element (B)
A = Object to be eroded
B = Structuring element
Structuring
Element (B)
( A B ) A Bˆ
c c
where c = complement
Proof:
( A B ) z B z A
c c
z B z A
c c
z B z Ac
A Bˆ
c
Opening Operation
A B ( A B) B
or
A B B z B z A
= Combination of all parts of A that can completely contain B
A B c
Ac Bˆ
Properties Opening
1. A B A
2. If C D then C B D B
3. A B B A B
Properties Closing
1. A A B
2. If C D then C B D B
3. A B B A B
Idem potent property: can’t change any more
Example: Application of Morphological Operations
Finger print
enhancement
Original Boundary
image
(Images from Rafael C.
Gonzalez and Richard E.
Wood, Digital Image
Processing, 2nd Edition.
Region Filling
X k X k 1 B A
c
X-ray image
of bones
Thresholded
image
Connected
components
(Images from Rafael C.
Gonzalez and Richard E.
Wood, Digital Image
Processing, 2nd Edition.
Convex Hull
Convex hull has no concave part.
Convex hull
4
Algorithm: C ( A) D D i X conv
i
i
where
i 1
X ki X k 1 * B i A, i 1,2,3,4
A B A ( A * B)
A ( A * B)c
Make an object
thinner.
(Images from Rafael C.
Gonzalez and Richard E.
Wood, Digital Image
Processing, 2nd Edition.
Thickening
A . B A ( A * B)
A . B ((...(( A . B ) . B )...) . B )
1 2 n
and K maxk A kB
Skeletons
X 1 A B = thinning
8
X 2 ( X 1 * B k ) = finding end points
k 1
X 4 X 1 X 3 = Pruned result
Original
image
After
Thinning End
3 times points
Dilation
of end Pruned
points result
Summary of Binary Morphological Operations
x = don’t care
Max
Moving
window
Structuring
element B
Min
Moving
window
Structuring
element B
Darker Brighter
Reduce dark
Reduce white
objects
objects
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Gray-scale Morphological Smoothing
Smoothing: Perform opening followed by closing
h f ( f b)
Small
blob
Size distribution
Original image graph (Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Morphological Watershads
Original P Surface of P
image
P at edges look
like mountain ridges.
Morphological Watershads