Ch06_Image Compression (1)
Ch06_Image Compression (1)
Image Compression
1
6.1 Basic Definition of Image
Compression
Data compression refers to the process of
reducing the amount of data required to
represent a given quantity of information.
Data are the means by which information is
conveyed.
Various amounts of data can be used to
represent the same amount of information
Representations that contain irrelevant or
repeated information are said to contain
redundant data.
2
…cont’d
3
…cont’d
5
Coding Redundancy
8
…cont’d
Example
12
…cont’d
13
6.3 Elements of Information
Theory
A key question in image compression is: “
what is a minimum amount of data that is
sufficient to describe an image without losing
information?”
How do we measure the information content
of an image?
Average information content of an image (the
intensity source’s entropy) is given by:
units/pixel
14
Example
17
…cont’d
18
6.4 General Mechanism of Data
Compression
An image compression system is composed
of two distinct functional components: an
encoder and a decoder.
The encoder performs compression, and the
decoder performs the complementary
operation of decompression.
A codec is a device or program that is
capable of both encoding and decoding.
19
…cont’d
20
The Encoding or Compression
Process
The encoder is designed to remove the data
redundancies through a series of three
independent operations.
In the first stage of the encoding process, a
mapper transforms f(x,y) into a format
designed to reduce spatial and temporal
redundancy. This operation generally is
reversible, and may or may not directly
reduce the amount of data required to
represent the image.
Example, Run-Length Coding 21
…cont’d
23
The Decoding or Decompression
Process
The decoder contains only two components:
a symbol decoder and an inverse mapper.
They perform, in reverse order, the inverse
operations of the encoder’s symbol encoder
and mapper.
Because quantization results in irreversible
information loss, an inverse quantizer block is
not included in the general decoder model.
24
6.5 Types of Data Compression
25
Huffman Coding
27
…cont’d
28
…cont’d
30
…cont’d
32
Arithmetic coding example
33
…cont’d
36
…cont’d
39
…cont’d
The four most significant binary and Gray-coded bit planes of the image
41
…cont’d
The four least significant binary and Gray-coded bit planes of the image
42