Lec - 14 Image Compression and Coding v4.0
Lec - 14 Image Compression and Coding v4.0
jaj
Denoising, Coding and
Electronics & Communication Dept. Other Transforms
1
2 Nikesh Bajaj
Overview
Ba Motivation
Huffman codes Compression??
Run Length coding Why?
sh
JPEG Coding Types
ITU T.81 Algos
By
Nik
esh
Baj
5 By: Nikesh Bajaj aj6
1
12/3/2013
jaj
Message M = ABABDBABEC
7 Nikesh Bajaj 8 Nikesh Bajaj
0 0 0 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 0 0 1 1 1 Spectral Correlation
Temporal Correlation
(7) (0) (3) (1) (6) (0) (0)
Or
11111111111111100000000000000000001111
ke
2
12/3/2013
Transform Coding
Aim of Transforming
To create a representation for the data in which
there is less correlation among the coefficient
value
To have a representation in which it is possible
to quantize different coordinates with different
precision
jaj
By: Nikesh Bajaj 13
14 By: Nikesh Bajaj
Transform Coding
Ba What transform should have??
Properties of Transform
sh
Fourier Transform??
Spectral correlation but time?
STFT or
Wavelet Transform by Best Basis Selection process
ke
3
12/3/2013
jaj
JPEG: Image Partitioning
Ba
JPEG: Quantization Table
sh
ke
Ni
4
12/3/2013
jaj
By: Nikesh Bajaj 25 By: Nikesh Bajaj 26
JPEG: Example Ba
JPEG: Example
sh
ke
Ni
JPEG: Example
JPEG: Example
The DC coefficient is DPCM coded (difference
between the DC coefficient of the previous block
and current block)
The AC coefficients are mapped to run-length
pairs: (run,value)
(0,5),(0, -3),(0, -1),(0,- 2),(0, -3),(0,1),
(0,1),(0, -1),(0, -1),(2,1),(0,2),(0,3),(0, -2),
(0,1),(0,1),(6,1),(0,1),(1,1), EOB
These are then Huffman coded (codes are
specified in the JPEG scheme)
5
12/3/2013
jaj
JPEG: Original Vs reconstructed
Image
Ba JPEG: Example
sh
ke
Ni
6
12/3/2013
Quantization Quantization
jaj
37 Nikesh Bajaj 38 By: Nikesh Bajaj
Uniform Quantizer
Ba Uniform & Nonuniform Q
Subband Uniform quantization
Uniform Dead zone quantization
sh
ke
7
12/3/2013
A-Law
-Law
jaj
43 Nikesh Bajaj 44 By: Nikesh Bajaj
Computation
Ba EZW Coding
Step size Progressive Encoding
Quantization noise Qnois = 2 /12 Embedded Encoding
Number of levels L = 2n = (Amx-Amn)/ Any bit rate
sh
Lossy
Number of bits per sample n = log2L Lossless
EZW
1. Natural Images
Each Pass
45 Nikesh Bajaj 46 By: Nikesh Bajaj
Ni
P +ve Significant
N ve Significant
T zerotree
Z isolated tree
8
12/3/2013
jaj
49 By: Nikesh Bajaj 50 By: Nikesh Bajaj
Ba
sh
ke