Professional Documents
Culture Documents
WAVELETS
Adapted from
CS474/674 – Prof. George Bebis
Department of Computer Science & Engineering
University of Nevada (UNR)
CRITICISM OF FOURIER SPECTRUM
Sinusoid Wavelet
What are Wavelets? (cont’d)
f (t ) = ∑ akψ k (t )
k
= ψ jk (t)
What are Wavelets? (cont’d)
ψ jk (t ) = 2 ψ ( 2 t − k )
j /2 j
scale/frequency j
localization
time localization
MORE ABOUT WAVELETS
normalization
shift in time
change in scale:
big s means long
wavelength
wavelet with
scale, s and time, τ
Mother wavelet
SHANNON WAVELET
Y(t) = 2 sinc(2t) – sinc(t)
mother wavelet
τ=5, s=2
time
CONTINUOUS WAVELET TRANSFORM
(CWT)
1 ⎛ t − τ ⎞ Forward
C (τ , s) = ∫ f (t )ψ ⎜
∗
⎟ dt CWT:
s t ⎝ s ⎠
1 t −τ
f (t ) = ∫τ ∫s C (τ , s)ψ ( s )dτ ds
s
double integral!
FT VS WT
weighted by F(u)
weighted by C(τ,s)
PROPERTIES OF WAVELETS
1 t −τ
f (t ) = ∫τ ∫s C (τ , s)ψ ( s )dτ ds
s
• Admissibility condition:
frequency, ω
f (t ) = ∑∑ a jkψ jk (t )
k j
(inverse DWT)
where ψ jk (t ) = 2 j /2
ψ ( t −k)
2 j
DFT VS DWT
or f (t ) = ∑ a lψ l (t )
l
f (t ) = ∑∑ a jkψ jk (t )
k j
MULTIRESOLUTION ψ jk (t )
REPRESENTATION USING
f (t )
fine
details
wider, large translations
f (t ) = ∑ ∑a ψ jk (t )
k j
jk
j
coarse
details
MULTIRESOLUTION ψ jk (t )
REPRESENTATION USING
f (t )
fine
details
f (t ) = ∑ ∑a ψ jk (t )
k j
jk
j
coarse
details
MULTIRESOLUTION ψ jk (t )
REPRESENTATION USING
f (t )
fine
details
narrower, small translations
f (t ) = ∑ ∑a ψ jk (t )
jk
k j j
coarse
details
MULTIRESOLUTION ψ jk (t )
REPRESENTATION USING
f (t ) high resolution
(more details)
fˆ1 (t )
j
fˆ2 (t )
…
low resolution
fˆs (t ) (less details)
f (t ) = ∑ ∑a ψ jk (t )
jk
k j
Mallat* Filter Scheme
n Mallatwas the first to implement this
scheme, using a well known filter design
called “two channel sub band coder”,
yielding a ‘Fast Wavelet Transform’
Approximations and Details:
n Approximations: High-scale, low-frequency
components of the signal
n Details: low-scale, high-frequency
components
LPF
Input Signal
HPF
Decimation
n The former process produces twice the data it
began with: N input samples produce N
approximations coefficients and N detail
coefficients.
n To correct this, we Down sample (or: Decimate)
the filter output by two, by simply throwing
away every second coefficient.
Decimation (cont’d)
LPF A*
Input
Signal HPF D*
Multi-level Decomposition
n Iterating
the decomposition process, breaks
the input signal into many lower-resolution
components: Wavelet decomposition tree:
Wavelet reconstruction
n Reconstruction
(or synthesis) is the process
in which we assemble all components back
Up sampling
(or interpolation) is
done by zero
inserting between
every two
coefficients
WAVELETS LIKE FILTERS
(with sub-sampling)
Efficient Representation Using “Details”
details D3
details D2
details D1
L0
(no sub-sampling)
Efficient Representation Using Details
(cont’d)
representation: L0 D1 D2 D3 (decomposition
in general: L0 D1 D2 D3…DJ or analysis)
H2=L1+D2
details D3
details D2 H1=L0+D1
details D1
L0
(no sub-sampling)
EXAMPLE - HAAR WAVELETS
L0 D1 D2 D3
(with sub-sampling)
Example - Haar Wavelets (cont’d)
¡ Start by averaging the pixels together (pairwise) to get a
new lower resolution image:
¡ To recover the original four pixels from the two averaged
pixels, store some detail coefficients.
1
Example - Haar Wavelets (cont’d)
¡ Repeating this process on the averages gives the full
decomposition:
1
Example - Haar Wavelets (cont’d)
¡ The Harr decomposition of the original four-pixel image is:
2 1 -1
Example - Haar Wavelets (cont’d)
Dj
Dj-1 How to
compute Di ?
D1
L0
MULTIRESOLUTION CONDITIONS
high
resolution
scale/frequency j
localization
low
resolution
time localization
Multiresolution Conditions (cont’d)
V j ⊆ V j +1
The factor of two scaling means that the spectra
of the wavelets divide up the frequency scale into
octaves (frequency doubling intervals)
1/ ω
8 ny ¼ωny ½ωny ωny
Ψ1 is the wavelet, now viewed as a bandpass filter.
ω
1/ ω
8 ny ¼ωny ½ωny ωny
with
ω
low-pass filter
½ωny ωny
And then repeat the processes, recursively …
CHOOSING THE LOW-PASS FILTER
The low-pass filter, f lp (w) must match wavelet filter, Ψ(ω).
A reasonable requirement is:
|f lp (ω)| 2 + |Ψ(ω)| 2 = 1
Ψ N-1-k = (-1) k f lp k
time, t
Coiflet high-pass filter
time, t
Spectrum of low pass filter
frequency, ω
SUMMARY: WAVELET EXPANSION
φ(t-k) ψ(2jt-k)
Summary: wavelet expansion (cont’d)
No se puede mostrar la imagen. Puede que su equipo no tenga suficiente memoria para abrir la imagen o que ésta esté dañada. Reinicie el equipo y, a continuación, abra el archivo de nuevo. Si sigue apareciendo la x roja, puede que tenga que borrar la imagen e
insertarla de nuevo.
φ(t) ψ(t)
width: 1/2j
Examples:
¡ Note that
No se puede mostrar la imagen. Puede
que su equipo no tenga suficiente
memoria para abrir la imagen o que
ésta esté dañada. Reinicie el equipo y,
a continuación, abra el archivo de
nuevo. Si sigue apareciendo la x roja,
puede que tenga que borrar la imagen
e insertarla de nuevo.
ϵ Vj ϵ Vj
1D Haar Wavelets (cont’d)
VJ fine details
…
V2
V1 coarse details
1D Haar Wavelets (cont’d)
EXAMPLE
Example (cont’d)
2D HAAR BASIS FOR STANDARD
DECOMPOSITION
φ0,0(x)
Example:
ψ0,0(x)
V2=V0+W0+W1
ψ0,1(x)
ψ1,1(x)
2D HAAR BASIS FOR STANDARD
DECOMPOSITION
To construct the standard 2D Haar wavelet basis, consider
all possible outer products of 1D basis functions.
φ00(x), φ00(x)
ψ00(x), φ00(x) ψ01(x), φ00(x)
ϕi j ( x) ≡ ϕ ji ( x) ψ i j ( x) ≡ ψ ji ( x)
2D HAAR BASIS OF STANDARD
DECOMPOSITION
V2 ϕi j ( x) ≡ ϕ ji ( x)
ψ i j ( x) ≡ ψ ji ( x)
WAVELETS APPLICATIONS
¡ Noise filtering
¡ Image compression
¡ Fingerprint compression
¡ Image fusion
¡ Recognition
¡ Image matching and retrieval
Original Image Compressed Image
Threshold: 3.5
Zeros: 42%
Retained energy:
99.95%