M-5 Wavelets and Multi-resolution image processing
M-5 Wavelets and Multi-resolution image processing
FT
time domain frequency domain
FT
space domain wavenumber domain
Waves and Uncertainty
x(t)
h(t-)
y()
Filter
Filter, ,convolution
convolutionand
andTransform
Transform
x(t)
h(t-)
y()
Filter
Filter, ,convolution
convolutionand
andTransform
Transform
x(t)
h(t-)
y()
Filter
Filter, ,convolution
convolutionand
andTransform
Transform
f(t)
h(t-b)
t
ejt
w(t-b)
t
Time
TimeFrequency
FrequencyLocalization
Localization
t
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
(t )
t
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
(t 4)
t
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
(t )
t
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
(t 4)
t
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
t 4
2
t
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
t b
a
1. shifted by b units.
a a e
ˆ b ˆ a
a b 0
L et
ˆ *
a a
ˆ *
ˆ is the F o urier Tra nsfo rm o f t
Frequency window
Time window
x(t)
Poor Good
h t
t
h
2
t
h
4 Good Poor
• Flexibility.
The Continuous Wavelet Transform (CWT)
A mathematical representation of the
Fourier transform:
F ( w ) f (t ) e iwt
dt
Meaning: the sum over all time of the
signal f(t) multiplied by a complex
exponential, and the result is the Fourier
coefficients F() .
Wavelet Transform (Cont’d)
Those coefficients, when multiplied by a
sinusoid of appropriate frequency , yield
the constituent sinusoidal component of
the original signal:
Wavelet Transform
And the result of the CWT are Wavelet
coefficients .
Multiplying each coefficient by the
appropriately scaled and shifted wavelet
yields the constituent wavelet of the original
signal:
Wavelet Transform
Example:
scale
ψ(t)
translate
Basis Construction - Mother Wavelet
(dyadic/octave grid)
jk (t )
scale =1/2j
(1/frequency)
j
k
Continuous Wavelet Transform (CWT)
Forward 1 t
C ( , s ) f t
dt
CWT: s t s
mother wavelet
normalization (i.e., window
constant function)
Illustrating CWT
1. Take a wavelet and compare it to a section at the
start of the original signal.
2. Calculate a number, C, that represents how
closely correlated the wavelet is with this section
of the signal. The higher C is, the more the
similarity.
1 t
C ( , s ) f t dt
s t s
Illustrating CWT (cont’d)
1 t
f t
C ( , s) dt
s t s
Illustrating CWT (cont’d)
1 t
C ( , s) f t dt
st s
1 t
C ( , s) f t dt
st s
Continuous Wavelet Transform
(cont’d)
1 t
Forward CWT: C ( , s ) f t
dt
s t s
1 t
Inverse CWT: f (t )
s
s
C ( , s ) (
s
)d ds
1 t
f (t )
s
s
C ( , s ) (
s
) d ds
Properties of Wavelets
• Simultaneous localization in time and scale
- The location of the wavelet allows to explicitly
represent the location of events in time.
- The shape of the wavelet allows to represent
different detail or resolution.
Properties of Wavelets (cont’d)
1 t
f (t )
s
s
C ( , s ) (
s
)d ds
compression
Denoising Signals
tracking
L-21
WAVELET BASES
AND
MULTI-RESOLUTION ANALYSIS
Wavelets vs. Fourier Transform
• Fourier transform (FT) represent a signal in terms of
sinusoids
• FT provides a signal which is localized only in the frequency
domain
• No any information of the signal in the time domain
• Basis functions of the wavelet transform (WT) are small
waves located in different times
• Obtained using scaling and translation of a scaling function
and wavelet function
• Therefore, the WT is localized in both time and frequency.
• In addition, the WT provides a multiresolution system
useful in several applications .e.g. image communications
and image data base
57
Wavelets vs. Fourier Transform
• If a signal has a discontinuity, FT produces many coefficients with large
magnitude (significant coefficients)
• But WT generates a few significant coefficients around the discontinuity
• Nonlinear approximation is a method to benchmark the approximation power of
a transform.
• In nonlinear approximation we keep only a few significant coefficients of a
signal and set the rest to zero
• Then we reconstruct the signal using the significant coefficients
• WT produces a few significant coefficients for the signals with discontinuities
• Thus, better results for WT nonlinear approximation when compared with the
FT
• Most natural signals are smooth with a few discontinuities (are piece-wise
smooth)
• Speech and natural images are such signals
• Hence, WT has better capability for representing these signal when compared
with the FT
58
Consider a waveform scaled by ‘s’ and shifted by ‘’
t
s t s
0.5
s
The larger the value of s, the more the waveform is compressed.
t t ks
2 j
2 t k jk
s s
The family has two groups, one generated from a mother and the other
from a father wavelets.
An arbitrary can be transformed into the space formed by members of a
wavelet family
t
W f , s s
0.5
f t dt t dt 0
s
1 0.5 t dsd
f t
C
W f , s s s s 2
ˆ
2
C : d
Haar Basis
Haar expansion is a two-point avarage
and difference operation
The basis functions are given as
1 2 , n 2k
2 k [n] 1 2 , n 2k , 2k 1
2 k 1[n] 1 2 , n 2k 1
0, otherwise 0, otherwise
It follows that
2 k [n] 0 [n 2k ], 2 k 1[n] 1[n 2k ]
61
Haar Basis
The transform is
1
X [2k ] 2 k , x x[2k ] x[2k 1],
2
1
X [2k 1] 2 k 1 , x x[2k ] x[2k 1]
2
The reconstruction is obtained from
x[n] X [k ]k [n]
k Z
62
The Harr father wavelet function is a unit step of length 1. It generates a
family of scaling functions as shown below:
j= k=0 k=1
1
j= k=0 k=1
1
f0(t)
f(t)
0 1 2
0 1 2 f1(t)
f j t c j k jk t c j k 2 j / 2 2 j t k
k k
Pure use of scaling function to approximate a waveform is viable but not
efficient. Very often the scale has to be very fine to capture all the
details, resulting in many coefficients.
f j t S j
The wavelet functions are like a set of high pass filter which captures the
difference between two resolutions (i.e. two values of j). Let Sj represent
the space corresponding to scale ‘j’,
f j t c j k jk t d k t
j jk
k k
c j k 2 j/2
2 t k
j
j
d k 2 j/2
2 j
t k
k k
In another words, a high resolution subspace at level ‘j’ can be formed
by combining a lower resolution subspaces at ‘j-1’, i.e.,
S j S j 1 W j 1 S j 2 W j 2 W j 1
S 0 W 0 W1 ...W j 1
We have
M 1
f M t c0 k 0 k t d k t
j jk
k j 0 k
M 1
c0 k 2 j/2
2 t k
j
j
d k 2 j/2
2 j
t k
k j 0 k
An important feature of scaling functions: Each can be derived from
translation of double-frequency copies of itself, as
t 2 h0 k 2 t k
k
Similarly,
2 t 2 h0 k 4 t k
k
t 2 h1 k 2 t k
k
It means that a scaling function can be derived from the father wavelet!
t t 2 h0 k 2 t k
1 k
2 t
1 2 h 0 0 2 t 2 h 0 1 2 t k
t
0.5 1
2 t 1 By inspection,
1
1
h0 0 h0 1
t
2
0.5 1
t
1
1
t t 2 h1 k 2 t k
k
-1
2 t 2 h1 0 2 t 2 h1 1 2 t k
1
t By inspection,
0.5 1
2 t 1
1 1
h1 0 , h1 1
1 2 2
t
0.5 1
c j k c m h m 2 k
j 1 0
m
d j k c m h m 2 k
j 1 1
m
c j 1 k c m h k 2 m d m h k 2 m
j 0 j 1
m m
LP 2 c j k
LP h0 k
c j 1 k
HP h1 k
HP 2 d j k
c j k 2 LP
LP h0 k
c j 1 k HP h1 k
d j k 2 HP
c j 2 k
LP 2
c j 1 k
LP 2
c j k
LP 2 HP 2
c j 1 k
HP 2
d j 2 k
HP 2 d j 1 k
d j k
The signal samples, scaled down by 2j/2, is always used as the first
set of coefficients cj[k].
The above decomposition only contains relations between the terms
‘c’ and ‘d’, so where is the signal f(t)?
N N N N
rows
N
2 2 cols N
2
horizontal 2 HP
cols rows
N N
rows + 2 LP
2 2 cols
Low pass 2 LP
N N
rows cols
2 2
diagonal 2 HP
cols rows
N N
rows cols + 2 HP
2 2
vertical 2 LP
N N N N
N
2 2 rows cols N
2
horizontal 2 HP
cols rows
N N
rows cols + 2 LP
2 2
Low pass 2 LP
cols rows
N N
N HP 2 Diagonal HH
rows cols 2 2
N
2
HP 2
cols rows
N N
LP 2 Vertical HL
2 2
N N
cols
rows
N N
N HP 2 Horizontal LH
2 2
rows cols N
2
LP 2
cols
rows
N N
Low pass LL
LP 2
2 2
L-22