Beruflich Dokumente
Kultur Dokumente
of
39
IMAGE PROCESSING
MORPHOLOGICAL IMAGE
PROCESSING
2
of
39
Introduction
Once segmentation is complete, morphological
operations can be used to remove imperfections in
the segmented image and provide information on the
form and structure of the image
B Structuring Element
0 0 1 0 0
1 1 1 0 1 0 0 1 1 1 0
1 1 1 1 1 1 1 1 1 1 1
1 1 1 0 1 0 0 1 1 1 0
0 0 1 0 0
7
of Fundamental Definitions
39
The object A consists of those pixels a that share some
common property:
Object -
OR
Structuring Element
12
of
39
Erosion Example
Original Image Processed Image
Structuring Element
13
of
39
Pictorial representation of Erosion
14
of
39
Erosion Example 1
After erosion
Original
with a disc of
image
radius 10
OR
Structuring Element
20
of
39
Dilation Example
Original Image Processed Image With Dilated Pixels
Structuring Element
21
of
39
Pictorial representation of Dilation
22
of
39
Dilation Example 1
Structuring element
24
of
39
What Is Dilation For?
Dilation can repair breaks
followed by a dilation
A B = (AB) B OR
Original
Image
Image
After
Opening
28
of
39
Opening Example
29
of
39
Opening Example
Original Image Processed Image
Structuring Element
30
of
39
Opening Example
Original Image Processed Image
Structuring Element
31
of
39
Closing
The closing of image A by structuring
element B, denoted A B is simply a dilation
followed by an erosion
A B = (A B ) B
of
39
32
After
Image
Image
Original
Closing
Closing Example
33
of
39
Closing Example
Closing Example
34
of
39
Closing Example
Original Image Processed Image
Structuring Element
35
of
39
Closing Example
Original Image Processed Image
Structuring Element
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
39
36
Morphological Processing Example
37
of
39
Duality of Erosion & Dilation
38
of
39
Morphological Algorithms
Using the simple technique we have looked
at so far we can begin to consider some
more interesting morphological algorithms
We will look at:
- Hit / Miss algorithm
Boundary Detection
Hole filling
Convex Hull
Thinning/thickening
Pruning
39
of
39
Hit/Miss transform
The hit-and-miss transform is a general binary
morphological operation that can be used to look
for particular patterns of foreground and
background pixels in an image.
A
B ( AOX ) A O(W X )
c
44
of
39
Boundary Extraction
Extracting the boundary (or outline) of an object is often
extremely useful
The boundary of a set A can be given simply as
(A) = A (AB)
where B is the suitable SE
45
of
39
Boundary Extraction Example
A simple image and the result of performing
boundary extraction using a square 3*3
structuring element
X k ( X k 1 B ) A c
k 1,2,3.....
We begin by forming an array X0 as the starting
point inside the boundary. B is a simple structuring
element and Ac is the complement of A
This equation is applied repeatedly until X k= Xk-1
05/14/17 69
70
of
39
Summary (2)
05/14/17 70
71
of
39
05/14/17 71
72
of
39
05/14/17 72