Beruflich Dokumente
Kultur Dokumente
translation reflection
A⊕ B = { z ( Bˆ ) ∩ A ≠ ∅ }
z
B:structuring
element
像convolution
中filter翻轉
Chapter 9
Morphological Image Processing
Application of dilation:
bridging gaps in images
Structuring
element
A B = { z ( B ) z ⊆ A} z: displacement
Chapter 9
Morphological Image Processing
Application of erosion:
eliminate irrelevant detail
( A B ) = { z ( B ) z ⊆ A}
c c
= { z ( B) ∩ A = ∅ }
z
c c
= { z ( B) ∩ A ≠ ∅ }
c
{ }
z
A⊕B = z (Bˆ)z ∩ A ≠ ∅
= A ⊕ Bˆ
c
9.3 Opening and Closing
Opening – °
A ° B = (A Θ B) ⊕ B.
Closing - •
A • B = (A ⊕ B) Θ B.
Duals
( A• B) C
( )
= A o B̂ .
C
Opening
Closing
Chapter 9
Morphological Image Processing
Noisy
image
Remove opening
outer
noise
closing
Remove
inner
noise
Hit-or-miss transformation
erosion
Erosion
with (W-X)
Hit-or-miss transformation (cont.)
Boundary Extraction
ß (A) = A – (A Ө B)
Example 9.5
Region filling
X0 = p
X k = ( X k −1 ⊕ B ) ∩ Ac , k = 1,2,3,...
Until X k = X k −1
thresholding
erosion
去除小雜訊
Convex hull
A set is convex if
} A line join two points in A lies entirely within A
Convex hull (cont.)
Convex hull
A
Convex hull algorithm
X0 = A B i : structuring elements
X ki = ( X ki −1 * B i ) ∪ A, k = 1,2,3,...
Until X ki = X ki −1
Hit-or-miss trans., no background
match is required = erosion?
C ( A) = ∪ X conv
i
i
Don’t care
Thinning 細化
A⊗ B = A− (A * B)
{B} = {B1 , B 2 , B 3 ,..., B n }
Thinning (cont.)
Convert to m-connectivity
Thickening
A . B = A∪(A * B)
Another method: 1. Thin the background
2. Complement the result
A Ac
thin(Ac)
complement
Skeletons 骨架
K
S ( A) = ∪ Sk ( A)
k =0
Sk ( A) = ( A kB ) − ( A kB ) o B
(A kB ) = (...( A B) B) ...) B
Erosion k 次
K = max{ k ( A kB) ≠ ∅ }
Result is not connected!
Pruning
Hit-or-miss
2.
convolution-like operation
( f ⊕ b)( s, t ) = max{ f ( s − x, t − y ) + b( x, y ) ( s − x, t − y ) ∈ D f ; ( x, y ) ∈ Db }
Dilation (cont.)
( f - b)( s, t ) = min{ f ( s + x, t + y ) − b( x, y ) ( s + x, t + y ) ∈ D f ; ( x, y ) ∈ Db }
Erosion (cont.)
f ob = ( f b) ⊕ b
Closing = dilation followed by erosion
f • b = ( f ⊕ b) b
Opening:
Remove light
sparks
Closing:
Remove dark
holes
Example of opening and closing
opening closing
Morphological smoothing
Opening+closing
} Remove both light and dark details
original smoothing
Morphological gradient
Gradient:
original 無方向性
Top-hat transformation
original
Texture segmentation
original
Granulometry