Image Compression Standards PDF
Image Compression Standards PDF
Chapter 9
Image Compression Standards
1 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
2 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
3 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
4 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
YIQ or YUV
8×8
Quantiz.
Coding Tables
Tables
Header
Tables DC
DPCM
Entropy Zig
Coding Zag
Data
RLC
AC
5 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
• Quantization.
• Entropy coding.
6 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
7 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
Quantization
F (u, v)
F̂ (u, v) = round (9.1)
Q(u, v)
8 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
9 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
200 202 189 188 189 175 175 175 515 65 -12 4 1 2 -8 5
200 203 198 188 189 182 178 175 -16 3 2 0 0 -11 -2 3
203 200 200 195 200 187 185 175 -12 6 11 -1 3 0 1 -2
200 200 200 200 197 187 187 187 -8 3 -4 2 -2 -3 -5 -2
200 205 200 200 195 188 187 175 0 -2 7 -5 4 0 -1 -4
200 200 200 200 200 190 187 175 0 -3 -1 0 4 1 -1 0
205 200 199 200 191 187 187 175 3 -2 -3 3 3 -1 -1 3
210 200 200 200 188 185 187 186 -2 5 -2 4 -2 2 -3 0
f (i, j) F (u, v)
10 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
32 6 -1 0 0 0 0 0 512 66 -10 0 0 0 0 0
-1 0 0 0 0 0 0 0 -12 0 0 0 0 0 0 0
-1 0 1 0 0 0 0 0 -14 0 16 0 0 0 0 0
-1 0 0 0 0 0 0 0 -14 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
F̂ (u, v) F̃ (u, v)
11 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
12 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
13 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
DPCM on DC coefficients
15 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
Entropy Coding
16 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
SIZE AMPLITUDE
1 -1, 1
2 -3, -2, 2, 3
3 -7..-4, 4..7
4 -15..-8, 8..15
. .
. .
. .
10 -1023..-512, 512..1023
17 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
• Progressive Mode.
• Hierarchical Mode.
18 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
Progressive Mode
Scan k: Encode the last few ACs, e.g., AC61, AC62, AC63.
19 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
...
20 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
Hierarchical Mode
21 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
f4 F4
4 Encode Decode f˜4
Decode
f˜4
2
2
d2 = f2 − E(f˜4 ) d˜2
f2 − D2 f˜2 =
2 + Encode Decode +
+ E(f˜4 ) + d˜2
Decode
+ f˜2 2
2
d1 = f − E(f˜2 )
− D1 d˜1 f˜ =
f + Encode Decode +
+ E(f˜2 ) + d˜1
22 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
23 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
24 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
25 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
• Design Goals:
26 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
27 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
28 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
29 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
31 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
1. Bitplane coding.
32 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
1. Bitplane Coding
1
2δ
0 δ x
-3 -2 -1 0 1 2 3
-1
-2
Fig. 9.8: Dead zone quantizer. The length of the dead zone is 2δ. Values
inside the dead zone are quantized to 0.
33 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
34 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
35 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
36 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
37 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
38 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
39 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
p
• Magnitude refinement: Code the value of νi [k] given that
νi [k] ≥ 2p+1.
p
– vi [k] is coded with context 0 if σ̃[k] = hi[k] = vi[k] = 0,
with context 1 if σ̃i [k] = 0 and hi[k] + vi[k] 6= 0, and with
context 2 if σ̃i[k] = 1.
40 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
41 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
42 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
p
• This pass is identical to P1 except that it proceeds in the
reverse order. The neighborhood requirement is relaxed to
include samples that have at least one significant neighbor
in any direction.
43 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
44 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
• Goal:
45 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
X n
R= Ri i ≤ Rmax (9.5)
i
i } that minimizes
• For some λ, any set of truncation point {nλ
!
X nλ nλ
(D(λ) + λR(λ)) = D i
i + λR i
i (9.6)
i
46 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
j
j ∆Di k
Si k = j
(9.7)
∆Ri k
is strictly decreasing.
n o
λ jk
ni = max jk ∈ Ni|Si > λ (9.8)
47 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
n1
• The quality layer Q1 contains the initial Ri i bytes of each
code block Bi and the other layers Qq contain the incremental
q q−1
q ni ni
contribution Li = Ri − R ≥ 0 from code block Bi .
48 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
Empty Empty
Empty
B0 B1 B2 B3 B4 B5 B6 B7
49 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
• Goal:
50 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
(a) (b)
(c) (d)
51 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
52 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
53 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
54 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
(a)
55 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
(b)
(c)
Fig. 9.13 (Cont’d): Comparison of JPEG and JPEG2000. (b) JPEG (left)
and JPEG2000 (right) images compressed at 0.75 bpp. (c) JPEG (left) and
JPEG2000 (right) images compressed at 0.25 bpp.
56 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
57 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
c a d
b x
58 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
59 Li & Drew
c Prentice Hall 2003
Fundamentals of Multimedia, Chapter 9
• Text books:
60 Li & Drew
c Prentice Hall 2003