Image Compression
Image Compression
PROCESSING
IMAGE
COMPRESSION
Introduction
Image Compression: It is the Art & Science of reducing
the amount of data required to represent an image.
Data
Vs
Inform
ation
Data and Information are not the same thing; data are
the means by which information is conveyed.
• R = 1 – (1/C);
where, C commonly called the compression ratio,
is defined as
• C = b / b’
3) Irrelevant Information:
= M-1 N-1
ΣΣ *f’(x, y) – f(x,
y)]2
x=0 y = 0
Fidelity Criteria
Subjective fidelity criteria:
• A Decompressed image is presented to a cross section
of viewers and averaging their evaluations.
•
Image Compression Models
• Input image f(x,…..) is fed into the encoder, which creates
a compressed representation of input.
• It is stored for future for later use or transmitted for
storage and use at a remote location.
• When the compressed image is given to decoder,
a reconstructed output image f’(x,…..) is
generated.
• In still image applications, the encoded input and
decoder
output are f(x, y) & f’(x, y) resp.
• In video applications, they are f(x, y, t) & f’(x, y, t) where
t is time.
• If both functions are equal then the system is called
Image Compression Models
Symb
Mapper Quantizer
ol
coder
Symbol Inverse
Decode Mappe
r r
Image Compression Models
Encoding or Compression process:
Encoder is used to remove the redundancies through a series
of 3 independent operations.
• It is reversible.
• It is uniquely decodable.
• Coz any string of code symbols can be decoded by
examining individual symbols of string from left to right.
Ex. 010100111100
Some Basic Compression Methods
Huffman Coding:
• It is instantaneous.
• Coz each code word in a string of code symbols ca
be decoded without referencing succeeding
symbols.
• It is uniquely decodable.
• Coz any string of code symbols can be decoded by
examining individual symbols of string from left to right.
a a a a a
3 3 3 3 3
a a a a a
2 2 2 2 2
a a a a a
0 1 0 1 0.0 1 0.05 1 0.062 1
4 6 4
Some Basic Compression Methods
Arithmetic coding:
a1 a2 a3 a3
a4
1 0.2 0.08 0.072
0.0688 a
a4 a4 a4 a4 4
a a a a a
3 3 3 3 3
a a a a a
2 2 2 2 2
a a a a a
0 1 0 1 0.0 1 0.05 1 0.0624 1
4 6
Some Basic Compression Methods
Arithmetic coding:
a1 a2 a3 a3
a4
1 0.2 0.08 0.072
0.0688 a
a4 a4 a4 a4 4
a a a a a
3 3 3 3 3
a a a a a
2 2 2 2 2
a a a a a
0 1 0 1 0.0 1 0.05 1 0.0624 1
4 6
Some Basic Compression Methods
Arithmetic coding:
a1 a2 a3 a3
a4
1 0.2 0.08 0.072
0.0688 a
a4 a4 a4 a4 4
a a a a a
3 3 3 3 3
a a a a a
2 2 2 2 2
a a a a a
0 1 0 1 0.0 1 0.05 1 0.062 1
4 6 4
Some Basic Compression Methods
Arithmetic coding:
a1 a2 a3 a3
a4
1 0.2 0.08 0.072
0.0688 a
a4 a4 a4 a4 4
a a a a a
3 3 3 3 3
a a a a a
2 2 2 2 2
a a a a a
0 1 0 1 0.0 1 0.05 1 0.062 1
4 6 4
Some Basic Compression Methods
Arithmetic coding: Encoding Sequence
a1 a2 a3 a3
a4
1 0.2 0.08 0.072
0.0688 a
a4 a4 a4 a4 4
a a a a a
3 3 3 3 3
a a a a a
2 2 2 2 2
a a a a a
0 1 0 1 0.0 1 0.05 1 0.062 1
4 6 4
Some Basic Compression Methods
The final message symbol narrows to [0.06752, 0.0688).
0
1 -
.
1 -
.
Some
Currently
Basic Compression
Pixel Being Encoded Dictionary
Methods
Dictionary
Recogniz Processed Output Location Entry
ed
Sequence
39
39 39 39 256 39-39
39 126 39 257 39-126
126 126 126 258 126-126
126 39 126 259 126-39
39 39
39-39 126 256 260 39-39-126
126 126
126-126 39 258 261 126-126-39
39 39
39-39 126
39-39-126 126 260 262 39-39-126-126
126 39
126-39 39 259 263 126-39-39
39 126
39-126 126 257 264 39-126-126
126 126
Some Basic Compression Methods
Unique feature of LZW coding:
Disadvantage: