Lecture 6
Lecture 6
Image Compression
Background
Principal objective:
To minimize the number of bits required to represent an image.
Applications
Transmission:
Broadcast TV via satellite, military communications via aircraft,
teleconferencing, computer communications etc.
Storage:
Educational and business documents, medical images (CT, MRI and
digital radiology), motion pictures, satellite images, weather maps,
geological surveys, ...
2
Overview
Image data compression methods fall into two common
categories:
3
4
Data vs. information
6
Data Redundancy
7
Data Redundancy
Three basic data redundancies
Coding Redundancy
Interpixel Redundancy
Psychovisual Redundancy
8
Coding Redundancy
Basic concept:
Utilize the probability of occurrence of each gray level
(histogram) to determine length of code representing that
particular gray level: variable-length coding.
Assign shorter code words to the gray levels that occur most
frequently or vice versa.
9
Interpixel Redundancy
Caused by High Interpixel Correlations within an image, i.e.,
gray level of any given pixel can be reasonably predicted from
the value of its neighbors (information carried by individual
pixels is relatively small) spatial redundancy, geometric
redundancy, interframe redundancy (in general, interpixel
redundancy )
To reduce the interpixel redundancy, mapping is used. The
mapping scheme can be selected according to the properties of
redundancy.
An example of mapping can be to map pixels of an image:
f(x,y) to a sequence of pairs: (g1,r1), (g2,r2), ..., (gi,ri), ..
gi: ith gray level ri: run length of the ith run
10
Psychovisual Redundancy
The eye does not respond with equal sensitivity to all visual
information.
Certain information has less relative importance than other
information in normal visual processing psychovisually
redundant (which can be eliminated without significantly
impairing the quality of image perception).
The elimination of psychovisually redundant data results in a
loss of quantitative information lossy data compression method.
Image compression methods based on the elimination of
psychovisually redundant data (usually called quantization) are
usually applied to commercial broadcast TV and similar
applications for human visualization.
11
Psychovisual Redundancy
12
Psychovisual Redundancy
13
Psychovisual Redundancy
14
Image Compression Models
15
Source Encoder and Decoder
16
Error-Free Compression
17
Variable-length Coding Methods: Huffman Coding
18
19
Mapping
20
21
Bit-Plane Decomposition (Example)
Binary Image Compression
Binary Image Compression: 1-D Run-Length Coding
(1D RLC):
Lossy Compression
Most
Important
Semi-
Important
Least
Important
JPEG COMPRESSION
The example image 8*8 matrix
before DCT transformation.
JPEG COMPRESSION
Gray-Scale Example:
Value Range 0 (black) --- 255
(white)
63 33 36 28 63 81 86 98
27 18 17 11 22 48 104 108
72 52 28 15 17 16 47 77
132 100 56 19 10 9 21 55
187 186 166 88 13 34 43 51
184 203 199 177 82 44 97 73
211 214 208 198 134 52 78 83
211 210 203 191 133 79 74 86
JPEG COMPRESSION
2D-DCT of matrix
Value Range 0 (Gray) --- -355
(Black)
Original Compressed
Results…
Some Common Image Formats
Some Common Image Formats