Wavelets Transformation
Wavelets Transformation
Wavelets Transformation
Václav Hlaváč
Fourier transform and similar ones have a principal disadvantage: only the
use the short time Fourier transform, where the signal is divided into small
windows and treated locally as it were periodic.
The uncertainty principle provides guidance on how to select the windows to
The wavelet transform goes further than the short time Fourier transform.
Fourier transformation.
1. The used basis functions (wavelets) are more complicated than sines
and cosines applied in Fourier transform.
2. The analysis is performed at multiple scales.
Wavelets
4/33
sum of a huge number of functions will be hard because of the spike strict
locality.
Functions that are already local will be naturally suited to the task.
Mother wavelet Ψ, a wavelet function All other derived wavelets are called
daughter wavelets.
Characterizes the basic wavelet
terms of parent wavelets with the
Covers the entire domain of
help of.
interest.
the generating (basis)
Father wavelet Φ, a scaling function
function Ψs,τ (x), where
Characterizes the basic wavelet
Wavelets are generated from the single mother wavelet Ψ(t) by scaling s
The integral R f (t) Ψ∗s,τ (t) dt from the previous slide can be interpreted as
R
the scalar (inner) product of the signal f (t) and the particular wavelet (basis
function) Ψ∗s,τ (t).
This scalar product tells to what degree is the shape of the signal similar
Note:
The wavelet transform was defined generally without the need to specify a
particular mother wavelet Ψ. The user can select or design mother
wavelet Ψ according to application needs. The mother wavelet is used to
create generating (basis) functions Ψs,τ (t) used in the expansion above.
Coefficients c(s, τ ) can be interpreted as the analogy to a frequency
Z ∞
Ψ(t) d t = 0 .
−∞
Z ∞
2
|Ψ(t)| d t ≤ ∞ .
−∞
Wavelet vs. Fourier transform
14/33
Wavelets:
are not smooth, i.e. infinitely differentiable;
convolution theorem.
Dyadic (octave) grid for scale and shift (1)
15/33
It is advantageous to use special values for shift τ and scale s while defining
the wavelet basis, i.e. introducing the scale step j and the shift step k:
s = 2−j and τ = k · 2−j ; j = 1, . . .; k = 1, . . . ;
−j
1 t−τ 1 t−k2 j
j
Ψs,τ (t) = √ Ψ =√ Ψ =2 Ψ 2 t−k .
2
s s 2−j 2−j
j
j
Ψj,k (t) = 2 Ψ 2 t − k .
2
0 3 6 9 shift k
Computation of the
Discrete Wavelet Transformation 18/33
The output is a matrix of c values for all scales and Repeated for coarser scales.
shifts, so called spectrogram.
Wavelets properties from a user point of view (1)
19/33
resolution.
Sparsity of the representation – for practical signals: Many of the
coefficients c(j, k) in a wavelet representation are either zero or very small.
Linear computational time complexity – many 1D wavelet transformations
can be accomplished in O(N ) time.
Wavelets properties from a user point of view (2)
20/33
Uses discrete dyadic (octave) grid for scale parameter j and shift
X j
f (t) Ψ∗j,k (t) j
c(j, k) = , where Ψj,k (t) = 2 Ψ 2 t − k .
2
XX
f (t) = c(j, k) Ψj,k (t) .
k j
A. Haar and I. Daubechies wavelets
Pictorial example 22/33
Haar wavelet
Daubechies wavelet
Properties of Ingrid Daubechies’ wavelets
23/33
wavelets using a well known filter design method called ‘two channel sub
band coder’.
This yielded a ‘Fast Wavelet Transform’.
Fast Wavelet Transform
25/33
The first decomposition step takes the input and provides two sets of
figure.
cAj+1 cD1
low pass filter 2 s cD2
cAj
cA1 cD3
cDj+1 cA2
high pass filter 2 cA3
level j level j+1
Fast inverse Wavelet Transformation
27/33
coefficients cAj and detail coefficients cDj and inverts the decomposition
step.
The vectors are extended (up sampled) to double length by inserting zeros
cAj
2 high pass filter
reconstruction cAj-1
filter
cDj
2 low pass filter
columns
cAj+1
low pass filter col 2
rows
low pass filter row 2 h
columns
cD j+1
high pass filter col 2
cAj
v
cD j+1
columns
low pass filter
col 2
rows
high pass filter
row 2 d
columns
cD j+1
high pass filter col 2
Right side. Four quadrants. The undivided southwestern, southeastern and northeastern
quadrants correspond to detailed coefficients of level 1 at resolution 128 × 128 in vertical,
diagonal and horizontal directions, respectively. The northwestern quadrant displays the same
structure for level 2 at resolution 64 × 64. The northwestern quadrant of level 2 shows the same
structure at level 3 at resolution 32 × 32. The lighter intensity 32 × 32 image at top left
corresponds to approximation coefficients at level 3.
Example, 2D wavelet decomposition,
another view 31/33
Another view of the same data as on previous slide. It illustrates the level of
decomposition at different levels of resolution.
2D inverse discrete wavelet transform.
A reconstruction step. 32/33
columns
cAj+1
low pass filter col 2
rows
low pass filter row 2 h
columns
cD j+1
high pass filter col 2
cAj
v
cD j+1
columns
low pass filter
col 2
rows
high pass filter
row 2 d
columns
cD j+1
high pass filter col 2
The lower resolution coefficients can be calculated from the higher resolution
coefficients by a tree-structured algorithm, the filter bank.
PP
f1(t) = c(1, k) Ψ1,k (t)
k j
PP
f0(t) = c(0, k) Ψ0,k (t)
k j