Morphological image processing motes.pdf

banushri914 16 views 39 slides Sep 19, 2024
Slide 1
Slide 1 of 39
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39

About This Presentation

notes


Slide Content

Chapter 9: Morphological
Image Processing
Digital Image Processing

2
Mathematic Morphology
! used to extract image components that are
useful in the representation and description of
region shape, such as
! boundaries extraction
! skeletons
! convex hull
! morphological filtering
! thinning
! pruning

3
Basic Set Theory

4
Reflection and Translation
} ,|{
ˆ
Bfor bbwwB ∈−∈=
} ,|{)( Afor azaccA
z ∈+∈=

5
Example

Structuring element (SE)
6
"  small set to probe the image under study
"  for each SE, define origo
"  shape and size must be adapted to geometric
properties for the objects

Basic morphological operations
! Erosion
! Dilation

! combine to
! Opening object
! Closening background
7
keep general shape but
smooth with respect to

Erosion
! Does the structuring element fit the
set?
erosion of a set A by structuring element
B: all z in A such that B is in A when
origin of B=z
shrink the object
8
}{ Az|(B)BA
z⊆=−

Erosion
9

Erosion
10

11
Erosion
}{ Az|(B)BA
z⊆=−

Dilation
! Does the structuring element hit the
set?
! dilation of a set A by structuring element
B: all z in A such that B hits A when
origin of B=z
! grow the object
12
}
ˆ
{ ΦA)Bz|(BA
z
≠∩=⊕

Dilation
13

Dilation
14

15
Dilation
}
ˆ
{ ΦA)Bz|(BA
z
≠∩=⊕
B = structuring element

16
Dilation : Bridging gaps

useful
! erosion
! removal of structures of certain shape and
size, given by SE
! Dilation
! filling of holes of certain shape and size,
given by SE
17

Combining erosion and
dilation
! WANTED:
! remove structures / fill holes
! without affecting remaining parts
! SOLUTION:
! combine erosion and dilation
! (using same SE)
18

19
Erosion : eliminating irrelevant
detail
structuring element B = 13x13 pixels of gray level 1

Opening
erosion followed by dilation, denoted C,
! eliminates protrusions
! breaks necks
! smoothes contour
20
BBABA ⊕−= )(

Opening
21

Opening
22

23
Opening
BBABA ⊕−= )(
})(|){( ABBBA
zz ⊆∪=

Closing
dilation followed by erosion, denoted •


! smooth contour
! fuse narrow breaks and long thin gulfs
! eliminate small holes
! fill gaps in the contour
24
BBABA −⊕=• )(

Closing
25

Closing
26

27
Closing
BBABA −⊕=• )(

28
Properties
Opening
(i)  A°B is a subset (subimage) of A
(ii)  If C is a subset of D, then C °B is a subset of D °B
(iii)  (A °B) °B = A °B
Closing
(i)  A is a subset (subimage) of A•B
(ii)  If C is a subset of D, then C •B is a subset of D •B
(iii)  (A •B) •B = A •B
Note: repeated openings/closings has no effect!

Duality
! Opening and closing are dual with respect
to complementation and reflection
29
)
ˆ
()( BABA
cc
=•

30

31

Useful: open & close
32

Application: filtering
33

Hit-or-Miss Transformation
C? (HMT)
! find location of one shape among a set of shapes
ztemplate matching
! composite SE: object part (B1) and background
part (B2)
! does B1 fits the object while, simultaneously,
B2 misses the object, i.e., fits the background?
34

35
Hit-or-Miss Transformation
)]([)( XWAXABA
c
−−∩−=∗

36
Boundary Extraction
)()( BAAA −−=β

37
Example

38
Region Filling
,...3,2,1 )(
1
=∩⊕=

kABXX
c
kk

39
Example
Tags