Wavelets
Wavelets
Applications
N. Malmurugan
[email protected]
Fourier analysis
F
Fourier
Transform
Frequency
Time
Case -1 Stationary signal
1 250
0.8
0.6 200
0.4
0.2 150
0
-0.2 100
-0.4
-0.6 50
-0.8
-1 0
0 0.2 0.4 0.6 0.8 1 0 20 40 60 80 100
time frequency
Fourier Transform (FT)
Time-domain Frequency-domain
Fourier transform and non-
stationary signals
0.8
0.6
0.4
0.2
-0.2
Stationary -0.4
signal -0.6
-0.8
-1
0 100 200 300 400 500 600 700 800 900 1000
Non -
stationary
signal
The obtained Fourier spectra
Case - 2 Signal varying with time
1 1.5
0.8
0.6
0.4 1
0.2
0
-0.2
-0.4 0.5
-0.6
-0.8
-1 0
0 50 100 150 200 250 300 350 400 0 50 100 150 200
time frequency
What about
instantaneous
frequency ?
Problem with FT
-j2 ft
The STFT is defined as x ( t ) w( t ) e dt
X(f, ) =
( w)
STFT
X (t , f ) = [x(t ) w * (t t ' )] e j 2ft
dt
t
Heisenburg Uncertainty Principle
Well separated in
time
Peaks correspond
to a band of
frequencies
STFT with a = 0.0001
(3rd widest window)
Time resolution is
becoming poorer
Frequency
resolution is
improving
STFT with a = 0.00001
(widest window)
Poor time
resolution
Excellent
frequency
resolution
Time-Frequency Tiles: STFT
0.1
0.08
0.06
0.04
0.02
-0.02
-0.04
-0.06
0 500 1000 1500 2000 2500
The Continuous Wavelet Transform
(CWT)
and
d < then
thenreconstruct
aasignal
reconstruct
signalwithout
without
loss of
loss of
information
information
Implication:
( ) =0 = 0 (t )dt = 0
Oscillatory
Oscillatory! !
Must
Mustbebeaawave
wave
Some Common Wavelets
Wavelet Transform
Signal Signal
Local outlook
Multi resolution analysis
Analysis between scales
Time-scale analysis
Evaluating the Continuous Wavelet Transform
signal
step -1
step -2
*
*
step - N
Each wavelet (t) is associated with a scaling function (t)
b. scaling function
other wavelet families include Daubechies, Morlet , Coiflets , Symlets , Biorthogonal wavelets
Chirped signal
and CWT
CWT Example
Non-stationary Signal
CWT Example
Poor scale
resolution at
high scales
Interpreted as:
good frequency
resolution at
lower scales
Time-frequency Tiles: CWT
Image recaps
everything we have
gone through
Areas of the boxes are
also determined by
Heisenburgs
Uncertainty Principle
Sunspot activity for 500 months
250
200
150
Activity
100
50
0
0 50 100 150 200 250 300 350 400 450 500
time
250
CWT transform
200
150
100
50
0
0 50 100 150 200 250 300 350 400 450 500
Problems with the CWT
x0 x0 + x7 x0 x7
x lowpass x + x highpass x0 x1
1 0 1
x2 x1 + x2 x1 x2
x 1 x2 + x3 1 x2 x3
X = 3 l X = Hl X = h X = Hh X =
x4 2 x3 + x4 2 x3 x4
4x + x5 4x x5
x5
x6 x5 + x6 x5 x6
x6 + x7 x6 x7
x7
Reconstruction: X = lX +hX
Downsampling
x0 + x7 x0 x7
x + x
1 1 x2 x1
X l = DH l X = 2 1 X h = DH h X =
2 x4 x3
2 x4 + x3
x + x x
6 x5
6 5
Reconstruction
Upsampling:
x0 + x7 x0 x7
0 0
x2 + x1 x2 x1
1 0 1 0
UX l = UX =
2 x4 + x3 h
2 x4 x3
0 0
x6 + x5 x6 x5
x0 + x7 x7 x0
0 0
lowpass x + x highpass x x
2 1 1 2
x2 + x1 x2 x1
1 x4 + x3 1 x3 x4
l * UX l =
2 x4 + x3
h UX h =
2 x4 x3
S = l UX l + h UX h
6x + x5
x
5 6 x
x + x x x
6 5
6 5
x0 + x7 0
x x 7
Quadrature mirror filters
Analysing filters:
1 0 0 0 1
0 0 0 1 0 0 0 0 0 0 1
1 1 0 0 0
0 0 0 1 1 0 0 0 0 0 0
0 1 1 0 0
0 0 0 0 1 1 0 0 0 0 0
1 0 0 1 1 0
0 0 0 1 0 0 1 1 0 0 0 0
Hl = Hh =
2 0 0 0 1 0
1 0 0 2 0 0 0 1 1 0 0 0
0 0 0 0 1
0 1 0 0 0 0 0 1 1 0 0
0 0 0 0 0
0 1 1 0 0 0 0 0 1 1 0
0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1
Synthesis filters:
1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0
0 1 1 0 0 0 0 0 0 1 1 0 0 0 0 0
0 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0
t 1 0 0 0 1 1 0 0 0 t 1 0 0 0 1 1 0 0 0
Hl = Hh =
2 0 0 0 0 1 1 0 0 2 0 0 0 0 1 1 0 0
0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0
0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1
1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1
The discrete wavelet transform
Often the signal will be discrete due to sampling
Will a digital filter bank do the job?
Two-scale relation:
(2 t ) = h j +1 (k ) (2 t k )
j j +1
Averaging Differencing
(37+35)/2=36, (37-35)/2=1
(28+28)/2=28, (28-28)/2=0
(58+18)/2=38, (58-18)/2=20
(21+18)/2=15 (21-18)/2=3
Haar Wavelets
30 + 2 = 32, 30 2 = 28
Haar Wavelets
Data Compression
Wavelets have good energy concentration properties.
Most DWT coefficients usually are very small.
They can be discarded without incorporating a
significant error in the reconstruction stage.
Application of Wavelets
Denoising
Donoho & Johnstone have devised the wavelet
shrinkage denoising(WSD).
Noise will show itself at finer scales.
Discarding the coefficients that falls below a
certain threshold at these scales will remove the
noise.
Application of Wavelets
Denoising
Denoising
Raw OCT image
(false color coded)
Denoising using
wavelet transform
and soft thresholding
Soft Skin on the Palm
Depth
Averaging over
One scan per position
ten scans per position
Hidden structured
low high regions are extracted !
Different Denoising Scale Levels
low high
Compression using DWT
Dr.Murali Krishna. P
[email protected]
Dr. Robi Polikar
[email protected]
Mr.Min Wang
[email protected]
That is all, folks
Thank you for your patience!
Ja
ck
ie
THANK YOU