An Introduction To Wavelet Transform
An Introduction To Wavelet Transform
Wavelet Transform
Pao-Yen Lin
Digital Image and Signal Processing Lab
Graduate Institute of Communication Engineering
National Taiwan University
1
Outlines
Introduction
Background
Time-frequency analysis
Windowed Fourier Transform
Wavelet Transform
Applications of Wavelet Transform
2
Introduction
Why Wavelet Transform?
Examples
Scores, images, economical data, etc.
3
Introduction
4
Conventional Fourier Transform
X( f )
5
Wavelet Transform
W{x(t)}
6
Background
Image pyramids
Subband coding
7
Image pyramids
8
Image pyramids
9
Subband coding
H 0 z G0 z H 1 z G1 z 0
H 0 z G0 z H 1 z G1 z 2
For FIR filter
g 0 n 1 h1 n
n
g1 n 1 h0 n
n +1
11
Time-frequency analysis
Fourier Transform
F x t x t e
j 2 ft
dt x t , e j 2 ft
Time-Frequency Transform
T f f t * t dt f ,
t : time-frequency atoms 1
12
Heisenberg Boxes
f , is represented in a time-frequency plane by
a region whose location and width depends on the tim
e-frequency spread of .
Center?
Spread?
13
Heisenberg Boxes
Recall that 1 ,that is:
|| ||2 dt 1
2
| t |
Interpret as a PDF
Center : Mean
Spread : Variance
14
Heisenberg Boxes
Center (Mean) in time domain
dt
2
t | t |
Spread (Variance) in time domain
+
= t | t |2 dt
2 2
t
-
15
Heisenberg Boxes
Plancherel formula
ˆ
2 2
d 2
Center (Mean) in frequency domain
+
1
ˆ d
2
=
2 -
Spread (Variance) in frequency domain
1
ˆ d
2 2 2
2
16
Heisenberg Boxes
Heisenberg uncertainty
1
t
2
17
Windowed Fourier Transform
Window function
① Real
② Symmetric
For a window function g t
① g t g t
② It is translated by μ and modulated by the frequency
g , t e g t
i t
③ g t is normalized
g t 1 g , t
18
Windowed Fourier Transform
Windowed Fourier Transform (WFT) is defined as
S f , f , g , f t g t e i t dt
Heisenberg box?
19
Heisenberg box of WFT
Center (Mean) in time domain
g t is real and symmetric, g t is centered at zero
g , t is centered at in time domain
t g , t dt t g t
2 2 2
t
2 2
dt
independent of and
20
Heisenberg box of WFT
Center (Mean) in frequency domain
Similarly, g , t is centered at in time domain
21
Heisenberg box of WFT
22
Wavelet Transform
Classification
① Continuous Wavelet Transform (CWT)
② Discrete Wavelet Transform (DWT)
③ Fast Wavelet Transform (FWT)
23
Continuous Wavelet Transform
Wavelet function
Define
① Zero mean: t dt 0
② Normalized: t 1
s :
③ Scaling by and translating it by
1 t
,s t
s s
24
Continuous Wavelet Transform
Continuous Wavelet Transform (CWT) is defined as
1 t
W f , s f , ,s f t dt
s s
ˆ
2
Define C
0
d
25
Continuous Wavelet Transform
ˆ
2
For C
0
d
where C
ˆ 0 0
t dt 0
Zero mean
26
Continuous Wavelet Transform
Inverse Continuous Wavelet Transform (ICWT)
1 1 t ds
f t
C W f , s
0
s s s
du 2
27
Continuous Wavelet Transform
Recall the Continuous Wavelet Transform
1 t
W f , s f , ,s f t dt
s s
28
Continuous Wavelet Transform
Scaling function
Define that the scaling function is an aggregation of w
avelets at scales larger than 1.
Define
ˆ
2
2 ds
ˆ ˆ s
2
1
s
d
1
2
lim ˆ C Low pass filter
0
29
Continuous Wavelet Transform
A function can therefore decompose into a low-freque
ncy approximation and a high-frequency detail
Low-frequency approximation of f at scale s :
1 t
L f , s f , , s f t dt
s s
30
Continuous Wavelet Transform
The Inverse Continuous Wavelet Transform can be re
written as:
s0
1 ds 1
f t W f .,s ,s t 2 L f .,s0 ,s t
C 0 s Cs 0
31
Heisenberg box of Wavelet atoms
Recall the Continuous Wavelet Transform
1 t
W f , s f , , s f t dt
s s
The time-frequency resolution depends on the time-fr
equency spread of the wavelet atoms .,s
32
Heisenberg box of Wavelet atoms
Center in time domain
Suppose that is centered at zero,
which implies that ,s is centered at .
Spread in time domain
t ,s t dt s
2 2
2 2
v 2
v dv s t
2 2
t
v
s
33
Heisenberg box of Wavelet atoms
Center in frequency domain
for ̂ , it is centered at
1
ˆ
2
d
2
35
Heisenberg box of Wavelet atoms
Center in time domain:
Spread in time domain: s 2 t2
Center in frequency domain:
s
Spread in frequency domain:
2
s2
Note that they are function of s ,
but the multiplication of spread remains the same.
36
Heisenberg box of Wavelet atoms
37
Examples of continuous wavelet
Mexican hat wavelet
Morlet wavelet
Shannon wavelet
38
Mexican hat wavelet
1
t 2
t2
t e 2 2
2 1
2
3
Fig. 7 The Mexican hat wavelet[5]
39
Morlet wavelet
t 1 4 imt t 2 2
e e
ˆ U e
m
2
1 4 2
U(ω): step function
40
Shannon wavelet
t sinc t 2 cos 3 t 2
1 0.5 f 1
ˆ f
0 otherwise
41
Discrete Wavelet Transform (DWT)
Let f t f Nt
W f , s N 1 2W f N , Ns
Usually we choose N 2 j
discrete wavelet set:
j ,k x 2 j 2 2 j x k
discrete scaling set:
j ,k x 2 j 2 2 j x k
42
Discrete Wavelet Transform
Define
V j Span j ,k x
k
V j can be increased by increasing j .
43
Discrete Wavelet Transform
MRA(1/2)
① The scaling function is orthogonal to its integer transla
tes.
② The subspaces spanned by the scaling function at low r
esolutions are contained within those spanned at high
er resolutions:
V V1 V0 V1 V2 V
③ The only function that is common to all is . That is
V 0
44
Discrete Wavelet Transform
MRA(2/2)
④ Any function can be represented with arbitrary precisi
on. As the level of the expansion function approaches i
nfinity, the expansion function space V contains all the
subspaces.
V L2 R
45
Discrete Wavelet Transform
subspace V j can be expressed as a weighted sum of the
expansion functions of subspace V j 1 .
j ,k x n j 1,k x
n
x h n 2 2 x n
n
46
Discrete Wavelet Transform
Similarly,
Define
W j span j ,k x
k
The discrete wavelet set j ,k x spans the difference bet
ween any two adjacent scaling subspaces, and
Vj
V j 1 .
V j 1 V j W j
47
Discrete Wavelet Transform
48
Discrete Wavelet Transform
Any wavelet function can be expressed as a weighted s
um of shifted, double-resolution scaling functions
x h n 2 2 x n
n
49
Discrete Wavelet Transform
By applying the principle of series expansion, the DW
T coefficients of f x defined as:
are
1
W j0 , k
M
f x x
x
j0 , k
Arbitrary scale
1
W j, k
M
f x x
x
j ,k
Normalizing factor
50
Discrete Wavelet Transform
f x can be expressed as:
1 1
f x
M
W
k
j0 , k j0 ,k x
M
W j , k x
j j0 k
j ,k
51
Fast Wavelet Transform (FWT)
Consider the multiresolution refinement equation
x h n 2 2 x n
n
2 j x k h n 2 2 2 j x k n
n
h m 2k 2 2 j 1 x m
m
m 2k n
52
Fast Wavelet Transform
Similarly,
2 j x k h m 2k 2 2 j 1 x m
m
1
W j, k f x 2 h m 2k 2 2 x m
j 2 j 1
M x m
53
Fast Wavelet Transform
Rearranging the terms:
1
W j , k h m 2k f x 2
2 2 x m
j 1 2 j 1
m M x
W j0 , k with j0 j 1
54
Fast Wavelet Transform
Thus, we can write:
W j , k h m - 2k W j 1, k
m
Similarly,
W j , k h m 2k W j 1, k
m
55
Fast Wavelet Transform
56
Fast Wavelet Transform
57
2-D DWT
Two-dimensional scaling function
x, y x y
Two-dimensional wavelet functions
H x, y x y
V x, y x y
D x, y x y
58
2-D DWT
H x, y : variations along columns
59
2-D DWT
Basis
j ,m,n x, y 2 2 x m, 2 y n
j 2 j j
ij ,m,n x, y j 2 i 2 j x m, 2 j y n , i H , V , D
60
2-D DWT
The discrete wavelet transform of function f x, y of s
ize M N:
M 1 N 1
1
W j0 , m, n
MN
f x, y
x 0 y 0
j0 , m , n x, y
M 1 N 1
1
Wi j , m, n
MN
x 0 y 0
f x, y ij ,m,n x, y i H ,V , D
61
2-D DWT
Two-dimensional IDWT
1
f x, y
MN m n
W j0 , m, n j0 ,m, n x, y
1
MN i H ,V , D j j0 m n
W
i
j , m , n j , m , n x, y
i
62
2-D DWT
63
2-D FWT
64
2-D FWT
65
2-D DWT
67
Comparison of resolution
Fourier Transform
68
Comparison of resolution
Windowed Fourier Transform
69
Comparison of resolution
Discrete Wavelet Transform
70
Comparison of resolution
71
Comparison of resolution
72
Comparison of resolution
73
Comparison of complexity
74
Applications of Wavelet Transform
Image compression
Edge detection
Noise removal
Pattern recognition
Fingerprint verification
Etc.
75
Applications of Wavelet Transform
Image compression
76
Applications of Wavelet Transform
Edge detection
79
Reference
1. R. C. Gonzalez and R. E. Woods, Digital Image Processing 2/E. Upp
er Saddle River, NJ: Prentice-Hall, 2002, pp. 349-404.
2. S. Mallat, Academic press - A Wavelet Tour of Signal Processing 2/E.
San Diego, Ca: Academic Press, 1999, pp. 2-121.
3. J. J. Ding and N. C. Shen, “Sectioned Convolution for Discrete Wav
elet Transform,” June, 2008.
4. Clecom Software Ltd., “Continuous Wavelet Transform,” available i
n
http://www.clecom.co.uk/science/autosignal/help/Continuous_W
avelet_Transfor.htm
.
5. W. J. Phillips, “Time-Scale Analysis,” available in
http://www.engmath.dal.ca/courses/engm6610/notes/node4.html .
80