Morphological Image processing
Morphological Image processing
By:
Rahul K Patel
ECE Department
I.I.I.T, Surat
1
Morphological Image Processing
Introduction
■ Morphology: a branch of biology that deals with the form
and structure of animals and plants
3
■ The language of mathematical morphology is set
theory. As such, morphology offers a unified and
powerful approach to numerous image processing
problems. Sets in mathematical morphology
represent objects in an image.
■ For example, the set of all white pixels in a binary
image is a complete morhological description of the
image.
4
■ If is the set of pixels (2-D points) representing an object in
an image, then is simply the set of points in whose
coordinates have been replaced by (-x, -y)-- Reflection
5
Preliminaries (1)
■ Reflection
■ Translation
6
Example: Reflection and Translation
7
Preliminaries (2)
8
Examples: Structuring Elements (1)
origin
9
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.
10
Erosion
12
Example
of
Erosion
(2)
13
Dilation
14
Examples of Dilation (1)
15
Examples of Dilation (2)
16
Duality
■ Erosion and dilation are duals of each other with respect to
set complementation and reflection
17
Duality
■ Erosion and dilation are duals of each other with respect to
set complementation and reflection
18
Duality
■ Erosion and dilation are duals of each other with respect to
set complementation and reflection
19
Opening and Closing
■ Opening generally smoothes the contour of an object,
breaks narrow isthmuses, and eliminates thin protrusions
20
Opening and Closing
21
Opening
22
Example: Opening
23
Example: Closing
24
25
Duality of Opening and Closing
■ Opening and closing are duals of each other with respect to
set complementation and reflection
26
The Properties of Opening and Closing
■ Properties of Opening
■ Properties of Closing
27
28
The Hit-or-Miss
Transformation
29
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.
30
Example 1
31
Example 2
32
Some Basic Morphological Algorithms (2)
■ Hole Filling
A hole may be defined as a background region surrounded
by a connected border of foreground pixels.
33
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. Xk = (Xk-1 + B) Ac k=1,2,3,…
34
Example
35
36
Some Basic Morphological Algorithms (3)
■ Extraction of Connected Components
Central to many automated image analysis applications.
37
Some Basic Morphological Algorithms (3)
■ Extraction of Connected Components
Central to many automated image analysis applications.
38
39
40
Some Basic Morphological Algorithms (4)
■ Convex Hull
A set A is said to be convex if the straight line segment
joining any two points in A lies entirely within A.
41
Some Basic Morphological Algorithms (4)
■ Convex Hull
42
43
44
Some Basic Morphological Algorithms (5)
■ Thinning
The thinning of a set A by a structuring element B, defined
45
Some Basic Morphological Algorithms (5)
■ A more useful expression for thinning A symmetrically is
based on a sequence of structuring elements:
46
47
Some Basic Morphological Algorithms
(6)
■ Thickening:
48
Some Basic Morphological Algorithms
(6)
49
Some Basic Morphological Algorithms (7)
■ Skeletons
50
Some Basic Morphological Algorithms (7)
51
Some Basic Morphological Algorithms (7)
52
53
54
Some Basic Morphological Algorithms (7)
55
56
Some Basic Morphological Algorithms (8)
■ Pruning
57
Pruning:
Example
58
Pruning:
Example
59
Pruning:
Example
60
Pruning:
Example
61
Pruning:
Example
62