Title: Advanced Digital Signal Processing
1 DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF
JOENSUU JOENSUU, FINLAND
- Advanced Digital Signal Processing
- Lecture 16
- Wavelet Transform
- Alexander Kolesnikov
- (16.11.2005)
2Short-term Fourier Transform
3Two test signals again
a)
?1 10? ?2 20? ?3 40? ?4100?
x(t)cos(?1 t)cos(?2t)cos(?3)cos(?4t)
b)
x1(t)cos(?1t) x2(t)cos(?2t) x3(t)cos(?3t) x4(t)
cos(?4t)
x1(t) x2(t) x3(t) x4(t)
4Spectrums of the test signals
Signals are different, spectrums are similar
Why?
5What is wrong with the Fourier Transform?
Two basis functions sin(?t) and ?(t)
Support region In time In frequency
sin(?t) ? 0
?(t) 0 ? The basis function sin(?t) is
not localized in time, The ?(t) (sample) is not
localized in frequency.
Fourier Transform is good for stationary
signals, but real signals are non-stationary
ones. Another problem signals with
discontinuties.
6Short-term Fourier Transform (STFT)
signal x(t)
window h(t-?)
signal in window
7Short-term Fourier Transform (STFT)
Introduce basis functions which are compact
in time and frequency domains. In other words,
let us divide the input signal into
time sub-intervals, and perform DFT for every
sub-interval
8STFT Time-frequency plane
Equidistant frequencies
??
?t
9Problems with STFT
Uncertainty Principle
We cannot localize events in time and frequency
simultaneously!
Improved time resolution?Degraded frequency
resolution Improved frequency resolution
?Degraded time resolution
Problem the same ?? and ?t throught the entire
plane!
10Wavelet Transform
11The main idea
Keep the relative accuracy in the frequency
domain
Use wider time window for lower frequencies!
12Time-frequency plane
13Scale Illustration
Coast line
- Coarse scale
- flying in a jet at 5 km
- Medium scale
- bird flight at 100 m
14Wavelet transform wavelet mother function
Two properties of mother wavelet function
mother wavelet
baby wavelets
15Wavelet transform wavelet mother function
How to obtain a set of wavelet functions?
Translation (?) and dilation (scaling, s)
16Scaling (stretching or compressing)
s1
s0.5
s0.25
17Translation (shift)
18Translation and stretching
s2-7
s2-6
s2-6
s2-6
s2-5
s2-4
s2-3
s2-3
19Localization in time
Baby wavelets Mother wavelet
...
...
k0,1,...,
20Examples of mother wavelets
21Haar wavelets
Scaling function
22Discrete wavelet transform
j1
j
k
23Hierarchical calculation of DWT
24Haar wavelet transform
25Haar DWT Example
Input data Xx1,x2,x3,, x16 Haar wavelet
transform (a,b)?(s,d) where 1) scaling
function s(ab)/2 (smooth, LPF) 2) Haar
wavelet d(a-b) (details, HPF)
X10,13, 11,14, 12,15, 12,14, 12,13, 11,13,
10,11 11.5,12.5, 13.5,13, 12.5,12, 10.5
-3, -3, -3, -2, -1,-2,-1 12, 13.25,
12.25, 10.5 -2,0.5,-0.5 -3, -3, -3, -2,
-1,-2,-1 12.625, 11.375 -1.25, 1.75
-2,0.5,-0.5 -3, -3, -3, -2, -1,-2,-1
121.25 -1.25, 1.75 -2,0.5,-0.5 -3, -3,
-3, -2, -1,-2,-1
26Inverse Haar DWT Example
Inverse Haar wavelet transform (s,d)? (a,b)
1) asd/2 2) bs?d/2
X10,13, 11,14, 12,15, 12,14, 12,13, 11,13,
10,11? 11.5,12.5, 13.5,13, 12.5,12, 10.5
-3, -3, -3, -2, -1,-2,-1 12, 13.25,
12.25, 10.5 -2,0.5,-0.5 -3, -3, -3, -2,
-1,-2,-1 12.625, 11.375 -1.25, 1.75
-2,0.5,-0.5 -3, -3, -3, -2, -1,-2,-1
121.25 -1.25, 1.75 -2,0.5,-0.5 -3, -3,
-3, -2, -1,-2,-1
Y 121.25 -1.25, 1.75 -2,0.5,-0.5 -3,
-3, -3, -2, -1,-2,-1 12.625,11.375
-1.25, 1.75 -2,0.5,-0.5 -3, -3, -3, -2,
-1,-2,-1 12, 13.25, 12.25, 10.5
-2,0.5,-0.5 -3, -3, -3, -2, -1,-2,-1
11.5,12.5, 13.5,13, 12.5,12, 10.5 -3, -3,
-3, -2, -1,-2,-1 10,13, 11,14, 12,15,
12,14, 12,13, 11,13, 10,11
272-D Wavelet transform
282-D wavelet transform
Transform Coeff. 4123, -12.4, -96.7, 4.5,
Original 128, 129, 125, 64, 65,
29Wavelet transform as Subband Transform
30Wavelet Transform and Filter Banks
31Wavelet Transform and Filter Banks
h0(n) is scaling function, low pass filter
(LPF) h1(n) is wavelet function, high pass filter
(HPF)
is subsampling (decimation)
325/3 filter for lossless encoding (JPEG2000)
339/7 filter for lossy encoding (JPEG2000)
345-tab low pass filter (LPF)
2
Filtration
Subsampling
353-tab high pass filter (HPF)
2
Subsampling
Filtration
36Filtration with 5/3-filters
Input x
Input x
LPF s
HPF d
37Inverse wavelet transform
is up-sampling (zeroes inserting)
Synthesis filters g0(n)?(-1)nh1(n)
g1(n)?(-1)nh0(n)
38Complexity of discrete wavelet transform
Without scaling-function property
39Scaling function and Wavelets
Scaling function
Wavelet function
where
This is very important property of the
wavelets. To obtain WT coefficients for level j
we can process WT coefficients for level j1.
? DWT Complexity O(N)
40Haar Scaling function and Wavelets
41Daubechies wavelets of order 2
?(t)
?(t)
Scaling function Wavelet
function
42Multiresolution discrete wavelet analysis
Low-resolution approximation
Wavelets details
43Applications
1. Image compression (JPEG200) 2. Signal
filtering (denoising) 3. Signal analysis 4. etc.