Professional Documents
Culture Documents
Introduction
2/27/2014 2
Preliminaries (1)
► Reflection
, is defined as
The reflection of a set B, denoted B
==
B {w | w −b, for b ∈ B}
► Translation
2/27/2014 3
Example: Reflection and Translation
2/27/2014 4
Preliminaries (2)
2/27/2014 5
Examples: Structuring Elements (1)
origin
2/27/2014 6
Examples: Structuring Elements (2)
Accommodate the
entire structuring
elements when its Origin of B visits
origin is on the every element of A
border of the
original set A
At each location of
the origin of B, if B
is completely
contained in A,
then the location is
a member of the
new set, otherwise
it is not a member
of the new set.
2/27/2014 7
Erosion
A { z | ( B) Z ∩ A =
B= ∅} c
2/27/2014 8
Example
of
Erosion
(1)
2/27/2014 9
Example
of
Erosion
(2)
2/27/2014 10
Dilation
2
With A and B as sets in Z , the dilation of A by B,
denoted A ⊕ B, is defined as
{ ()
∩A≠∅
A ⊕ B= z | B
z
}
and A
The set of all displacements z , the translated B
overlap by at least one element.
=
A ⊕B { ()
z | B
∩ A ⊆ A
z }
2/27/2014 11
Examples of Dilation (1)
2/27/2014 12
Examples of Dilation (2)
2/27/2014 13
Duality
( A − B)
=A ⊕ B
c c
and
( A ⊕ B)
=Ac − B
c
2/27/2014 14
Duality
{z | ( B )
( A − B=
) ⊆ A}
c c
Z
{z | ( B ) ∅}
c
= Z
∩A =
c
= {z | ( B ) Z
∩ Ac ≠ ∅}
= Ac ⊕ B
2/27/2014 15
Duality
{ ( ) ∩ A ≠ ∅}
c
( A=
⊕ B)
c
z| B
Z
{ ()
= z | ∩A =
B
Z
∅}
c
= Ac − B
2/27/2014 16
Opening and Closing
2/27/2014 17
Opening and Closing
2/27/2014 18
Opening
2/27/2014 19
Example: Opening
2/27/2014 20
Example: Closing
2/27/2014 21
2/27/2014 22
Duality of Opening and Closing
( AB ) )
= (A B
c c
( A B) )
= ( A B
c c
2/27/2014 23
The Properties of Opening and Closing
► Properties of Opening
(a) A B is a subset (subimage) of A
(b) if C is a subset of D, then C B is a subset of D B
(c) ( A B) B = A B
► Properties of Closing
B = ( B1 , B2 )
B1 : object
B2 : background
A∗ B = ( A − B1 ) ∩ ( Ac − B2 )
2/27/2014 26
Some Basic Morphological Algorithms (1)
► Boundary Extraction
The boundary of a set A, can be obtained by first eroding A
by B and then performing the set difference between A and
its erosion.
β ( A) =A − ( A − B )
2/27/2014 27
Example 1
2/27/2014 28
Example 2
2/27/2014 29
Some Basic Morphological Algorithms (2)
► Hole Filling
A hole may be defined as a background region surrounded
by a connected border of foreground pixels.
2/27/2014 30
Some Basic Morphological Algorithms (2)
► Hole Filling
1. Forming an array X0 of 0s (the same size as the array
containing A), except the locations in X0 corresponding to
the given point in each hole, which we set to 1.
2/27/2014 31
Example
2/27/2014 32
2/27/2014 33
Some Basic Morphological Algorithms (3)
2/27/2014 34
Some Basic Morphological Algorithms (3)
X k= ( X k −1 + B) ∩ A
B : structuring element
until X k = X k -1
2/27/2014 35
2/27/2014 36