10b ImageCompression PDF
10b ImageCompression PDF
IMAGE COMPRESSION
Introduction
Twenty seven 8.5GB dual layer DVDs are needed to store it.
Data
Vs
Information
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)2
SNRrms = x=0 y = 0
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.
Symbol
Mapper Quantizer
coder
Symbol Inverse
Decoder Mapper
Image Compression Models
Encoding or Compression process:
Encoder is used to remove the redundancies through a series of
3 independent operations.
• The visual quality of the output can vary from frame to frame
as a function of image content.
Image Compression Models
Symbol Encoder: Generates a fixed or variable length code to
represent the quantizer output and maps the output in
accordance with the code.
• It is reversible.
• Upon its completion, the input image has been processed for
the removal of all 3 redundancies.
Image Compression Models
Decoding or Decompression process:
• 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.
a3 a3 a3 a3 a3
a2 a2 a2 a2 a2
a1 a1 a1 a1 a1
0 0 0.04 0.056 0.0624
Some Basic Compression Methods
Arithmetic coding:
a1 a2 a3 a3 a4
a3 a3 a3 a3 a3
a2 a2 a2 a2 a2
a1 a1 a1 a1 a1
0 0 0.04 0.056 0.0624
Some Basic Compression Methods
Arithmetic coding:
a1 a2 a3 a3 a4
a3 a3 a3 a3 a3
a2 a2 a2 a2 a2
a1 a1 a1 a1 a1
0 0 0.04 0.056 0.0624
Some Basic Compression Methods
Arithmetic coding:
a1 a2 a3 a3 a4
a3 a3 a3 a3 a3
a2 a2 a2 a2 a2
a1 a1 a1 a1 a1
0 0 0.04 0.056 0.0624
Some Basic Compression Methods
Arithmetic coding:
a1 a2 a3 a3 a4
a3 a3 a3 a3 a3
a2 a2 a2 a2 a2
a1 a1 a1 a1 a1
0 0 0.04 0.056 0.0624
Some Basic Compression Methods
Arithmetic coding: Encoding Sequence
a1 a2 a3 a3 a4
a3 a3 a3 a3 a3
a2 a2 a2 a2 a2
a1 a1 a1 a1 a1
0 0 0.04 0.056 0.0624
Some Basic Compression Methods
The final message symbol narrows to [0.06752, 0.0688).
255 255
256 -
. .
511 -
Some Basic Compression Methods
Currently Pixel Being Encoded Dictionary Dictionary
Recognized Processed Output Location Entry
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:
am-12m-1+am-22m-2+……..+a121+a020 ………(1)
Some Basic Compression Methods
A simple method of decomposing the image into a collection
of binary image is to separate the m coefficients of the
polynomial into m-1 bit planes.
Disadvantage:
Small changes in gray level are less likely to affect all m bit
planes.
Ex. 127 (11000000) & 128 (01000000).
Some Basic Compression Methods
Run-Length Coding: