Data Compression 2
Data Compression 2
Coding Requirements:
data
Compressor/
source Data
coder
storage
device
data Expander/
sink Decoder
Data Compression
I---------------------------I------------------------------I
Entropy Encoding Source Encoding
Lossless compression Lossy compression
Independent of data semantics Depends on data semantics
/\
1.Vector quantization
/ \
2.Differential coding
Repetitive Sequence Statistical encoding
3.Transform based coding
Run length encoding Color Book
Zero/blank replacement Morse code
Pattern substitute
Huffman coding
Arithmetic coding
The typical sequence of operations in data
compression for still A/V data streams are:
1. Image preparation: AD conversion &
generation of appropriate digital representation
of information & image is divided to blocks of
8X8 pixels & represented by fixed number of
pixels.
2. Picture processing: First step of compression
which makes use of compression algo.
3. Quantization: It processes the result of step 2,
specifies granularity of mapping of real nos. to
integers.
4. Encoding: Last step of image compression.
UNCOMPRESSED
IMAGE
PICTURE
PROCESSING
QUANTIZATION
IMAGE
PREPARATION
COMPRESSED ENCODING
IMAGE
Encoding:
1. Entropy encoding principle
Entropy is the total information content (TIC) of
any information object
= Useful information content (entropy) +
redundant information content (RIC)
Probabilit
Statistical y Code Statistical
Analyzer Book Model
Information
Statistical Model
.
. . Entropy E( c) = - log2( Pc)
Arithmetic coding
………………
BX IVX VPX
VPX X
Expander
Code book
B0 VP3 Compander
Expander
Code book
B0 VP3 Compander