Documente Academic
Documente Profesional
Documente Cultură
Reminder:approximations,details
Haar wavelet transform
Lifting scheme
Update
Higher order extensions
One Stage Filtering
Approximations and details:
The low-frequency content is the most
important part in many applications, and gives
the signal its identity.
This part is called “Approximations”
Approximations:low-frequency
components of the signal
Details: high-frequency components
LPF A
Input Signal
HPF D
Decimation
Input
Signal HPF D*
Example*:
High correlation
- small |d|, fewer bits representation.
(i.e. a=b,d=0)
The Haar Wavelet Con’t
No loss of any information
Reconstruction formula of a and b:
Sn-1 dn-1
Sn-2 dn-2
S1 d1
S0 d0
Structure of the wavelet transform: recursively split into
averages and differences
The Haar transform Con’t
We end up with:
S0 S1 S2 … Sn-1,l Sn,l
First step:
compute the difference: d=b-a
and store it in b location.
Second step:
We use a and d to compute the average: S=a+d/2
and store it in a location.
a+ = b/2 ; b -= a
Haar Transform in-place
Con’t
Inverse: run code backwards!
a- = b/2 ; b+ = a
Sn-1
detail
Example – Predict using Haar
The even sample is the prediction for the odd
sample.
The detail dn-1 is the difference between the
odd sample and its predictor:
odd sample left neighbouring even sample - predictor
dn-1=oddn - P(evenn)
The Lifting Scheme - Update
follows the predict phase.
The approximations Sn-1 (the signal for next
step) should maintain the average of the
original signal Sn.
Sn dn-2
dn-1
The Lifting Scheme
In place computation:
- (oddj-1,evenj-1): = Split(Sj)
- oddj-1- = P(evenj-1)
- evenj-1+ = U(oddj-1)
Inverse Lifting Scheme
Inverse Lifting Scheme-3 steps
Undo Update
dn,S0 given
recover even samples by subtructing the update
info:
Haar: Sn,2l+1=dn-1,l+Sn,2l
Inverse Lifting Scheme-
Merge
zipper odd and even samples
recover original signal-inverse Lazy wavelet:
Sn=Merge(evenn-1,oddn-1)
Inverse in place
Evenj-1 - = U(oddj-1)
Oddj-1 + = P(evenj-1)
Sj := Merge(oddj-1,evenj-1)
Inverse transform: reversing the order of the
operations and flipping the signs
Inverse Lifting Scheme
Even values
-
+
Odd values
The Lifting Scheme-Example
Sn = X = [ 1 2 3 4 5 6 7 8 ] 2n=8 , n=3
Split:
Xe=[2 4 6 8] Xo=[1 3 5 7]
d2 = [-1 0 0 0]
d1 = [-2.5 0]
d0 = [-5.25]
S0 = [5.375]
-
linear wavelet transform -
Update Ex.
sum of the sj-1 elements is equal to the sum
of the sj elements, divided by two:
linear wavelet transform -
Update
Signal average is not preserved
Update Sn-1,l using previously compute detail
signals dn-1,l.
Using Neighboring wavelet coefficients:
Sn-1,l=Sn,2l+A(dn-1,l-1+dn-1,l)
Update
Sn-1,l = Sn,2l+A(dn-1,l-1+dn-1,l)
A=1/4 to maintain the average
Inverse-easy to compute:
Sn,2l = Sn-1,l - 1/4(dn-1,l-1+dn-1,l)
to recover even
Sn,2l+1=dn,l+1/2(Sn,2l+Sn,2l+2)
to recover odd
samples
linear wavelet transform
Original signal
linear wavelet transform
linear wavelet transform
Extend
- build higher polynomial order predictors
- Use more (D) neighbors on left and right
Example:
- Cubic polynom interpolating 4 values
- Bilinear Interpolation: the assigned value is
an intermediate value between the 4
nearest pixels :
aweighted sum of the 4 nearest pixels
- Each weight is proportional to the distance
from each existing pixel.
effective weights: -1/16 9/16 9/16 -1/16
Higher Order Prediction
Lifting Scheme - Predict
Haar
The even sample is the
prediction for the odd sample.
dn-1= Sn,2l+1- Sn,2l
Linear
average of
neighboring samples:on
dn-1= Sn,2l+1-1/2(S2n+S2n+2)
Bilinear
intermediate value between the 4
nearest pixels
Summary
Lifting Scheme
- construction of transforms
- Haar example
- rewriting Haar in place
Three steps
- split
- Predict
- Update
Summary
Predict
- detail coefficient is failure of prediction
Update
- smooth coefficient to preserve average
- B spline C2-ensure smoothness
Higher order extensions
- increase order of prediction and update
linear wavelet transform -
Update (why A=1/4)
=1/2∑Sj[n]