Professional Documents
Culture Documents
Lecture 13 (3/11/2009)
Last Time:
JPEG Compression
Subband and Wavelet based compression
Today
Continue on Subband and Wavelet based compression
ps positive significance
ns negative significance
iz isolated zero
ztr zero-tree root
Significant coefficients
Subordinate Pass
-22
-20
21
20
Cons of EZW
Poor error resilience; Difficult for selective spatial decoding
k=1
(0,1)
k=2
(1,1)
k=3
(1,2)
1
for x [0,1]
N
q- 12
1 p/2
q-1
2
for p x p
2
2
N
q- 12
1 p/2
q
2
for p x p
2
2
N
h0 ( x) h0, 0 ( x)
hk ( x) h p ,q ( x)
k = 2p + q 1
remainder
k=4
(2,1)
power of 2
(0,0)
x
1
(0,1)
(1,1)
(1,2)
(2,1)
Haar Transform
Haar transform H
Sample hk(x) at {m/N}
1
1
for m = 0, , N-1
2
2 2 2
0
0
0
0
2 2 0
0
0 0
2 2
0 0
0
0
1
8
0
2
1
1
0
0
0
2 2 2
0 0 0 0
0 0 0 0
2 2 0 0
2 2
Orthonormal Filters
Problem
Only one set of linear phase filters for real FIR orthogonal wavelets
Haar filters: (1, 1) & (1,-1)
do not give good energy compaction
Ref: review ENEE630 discussions on FIR perfect reconstruction
Qudrature Mirror Filters (QMF) for 2-channel filter banks.
Biorthogonal Wavelets
UMCP ENEE631 Slides (created by M.Wu 2001)
Biorthogonal
Basis in forward and inverse transf.
are not the same but give overall
perfect reconstruction (PR)
Advantage
Covers a much broader class of filters
From Christopoulos
(IEEE Trans. on CE
11/00)
For details
JPEG2000 Tutorial by Skrodras @ IEEE Sig. Proc Magazine 9/2001
David Taubman: High Performance Scalable Image Compression
with EBCOT, IEEE Trans. On Image Proc, vol.9(7), 7/2000.
Taubmans book on JPEG 2000 (on library reserve)
Links and tutorials @ http://www.jpeg.org/JPEG2000.htm
M. Wu: ENEE631 Digital Image Processing (Spring'09)
Examples
JPEG2K
vs.
JPEG
From Christopoulos
(IEEE Trans. on CE
11/00)
3dB improvement?
Wavelet compression was claimed to have 3dB improvement over
DCT-based compression
Comparison is done on JPEG Baseline
Bit Allocation
UMCP ENEE631 Slides (created by M.Wu 2001)
1
subject to
N
E
N 1
k 0
N 1
r
k 0
v ( k ) vq ( k )
N 1
f (r )
k 0
R bits/coeff.
Here k2: variance of k-th coeff. v(k); rk is # bits allocated for v(k)
f(-): a func. relating bit rate to distortion based on a coeffs p.d.f.
Reverse Water-filling
Try to keep same amount of error in each frequency band
Optimal
Not Optimal
D
2
min Di ( Ri ) subj. to Ri R
i 1
J ( R1 ,...RN ) Di ( Ri ) R Ri
i 1
i 1
J dDi
dDi
0 for all i
and
Ri dRi
dRi
R R
i
1 i2
dRi
d
max ln
,0
dDi dDi
2 Di
dRi
1
1
for Ri 0
dDi
2 Di
Keep the slope in R-D curve the same (not just for Gaussian r.v)
Otherwise some bits can be applied to other r.v. for better return in
reducing the overall distortion
If all r.v. are Gaussian, the same slope in R-D curves for these r.v.
correspond to an identical amount of distortion.
R(D) = [ log 2 log D ] => dR/dD = 1 / (2D)
Next lecture
Optimal transform
Sig. Proc. Magazine, Nov. 98, and Jains book Section 2.13;
Wavelets and the lifting scheme: A 5 minute tour by Wim Sweldens [Zeitschrift fr
Angewandte Mathematik und Mechanik, 76 (2), pp. 41-44, 1996]
Optimal Transform
UMCP ENEE631 Slides (created by M.Wu 2004)
Rx uk = k uk
Decorrelation
E[ y yH ]= E[ (UH x) (UH x)H ]= UH E[ x xH ] U = diag{1, 2, , N}
Basis restriction
Keep only a subset of m transform coefficients and then perform
inverse transform (1 m N)
Basis restriction error: MSE between original & new sequences
Optimality
Decorrelation and MMSE for the same# of partial transf coeff.
Data dependent
Have to estimate the 2nd-order statistics to determine the transform
Can we get data-independent transform with similar performance?
DCT
Applications
(non-universal) compression
Pattern recognition: e.g., eigen faces
Analyze the principal (dominating) components and reduce
feature dimensions
M. Wu: ENEE631 Digital Image Processing (Spring'09)
Preliminaries
The matrices R, R-1, and R-1 share the same set of eigen vectors
DCT basis vectors are eigenvectors of a symmetric tri-diagonal matrix Qc
Tradeoff!
How close are the R-D operational points to info. theory bounds?
Practical considerations: cost of memory, computation, delay, etc.
Often narrowing down to an optimization problem:
~ optimize an objective function subject to a set of constraints
Formally
Smallest convex set containing all points
For R-D problem, we concerned of the lower boundary of this set that
close to the info. theoretical bound (the upper/right end are open)
Convex set
if X1,..,Xn are in the set, then the linear combinations of them (with
non-negative combination factors) are still in the set
Intuitively
Use a rubber band to wrap the outermost points so that the band
encloses all points
Bit Allocation
1
min D
N
E v(k ) v (k )
N 1
k 0
1
subject to
N
N 1
n
k 0
N 1
k f (nk )
k 0
B bits/coeff.
i
min 12 ln
, subj. to Di D
Di
i 1
n
2
n
i
J ( D) 12 ln Di
Di
i 1
i 1
J
1 1
1 i2
min max ln
,0 , subj. to Di D
i 1
2 Di
n
Necessary condition
for choosing
2
2
0
,
if
D
,
if
i
i
i
s.t. Di D
2
i
2
2
Di 0, if Di i
i , if i
min
d
i 1
i ,q (i )
ri , q ( i )
(Fig.14)
min
d
i 1
i ,q (i )
ri , q ( i ) min d i , q ( i ) ri , q ( i )
i 1
not constrained by convex hull but has larger search space (higher
complexity)