Image Compression_Unit 4
Image Compression_Unit 4
Unit IV
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Image Compression
• Image compression:
Reduce the number of bytes required to represent a digital image
– Redundant data reduction
– Remove patterns
– Uncorrelated data confirms redundant data elimination
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Image Compression
• Compressions is used in
– FAX
– RPV
– Teleconference
– REMOTE DEMO
– Etc
• Types of compression
– Lossless, lossy
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Image Compression
• Compressions is used in
– FAX
– RPV
– Teleconference
– REMOTE DEMO
– Etc
• Types of compression
– Lossless, lossy
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Image Compression
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Image Compression
The term data compression refers to the process of reducing the amount of data
required to represent a given quantity of information.
Because 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.
If we let b and b′ denote the number of bits (or information carrying units) in two
representations of the same information, the relative data redundancy, R, of the
representation with b bits is
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Types of data redundancy
• Coding redundancy
• Inter pixel redundancy (Spatial and temporal redundancy)
• Psychovisual redundancy
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Coding redundancy
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Coding redundancy
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Inter pixel redundancy
1. All 256 intensities are equally probable. As Fig. 8.2 shows, the histogram of the image is uniform.
2. Because the intensity of each line was selected randomly, its pixels are independent of one another in
the vertical direction.
3. Because the pixels along each line are identical, they are maximally correlated (completely dependent
on one another) in the horizontal direction.
• spatial redundancy that can be eliminated by representing the image as a sequence of run-length
pairs, where each run-length pair specifies the start of a new intensity and the number of consecutive
pixels that have that intensity.
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Inter pixel redundancy
Run Length Coding:
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Psychovisual redundancy
• Some visual characteristics are less important than others.
• In general observers seeks out certain characteristics – edges, textures, etc – and the
mentally combine them to recognize the scene.
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Psychovisual redundancy
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Psychovisual redundancy
FIDELITY CRITERIA
It was noted earlier that the removal of “irrelevant visual” information
involves a loss of real or quantitative image information. Because
information is lost, a means of quantifying the nature of the loss is needed.
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Psychovisual redundancy
objective fidelity criteria:
When information loss can be expressed as a mathematical function of the
input and output of a compression process, it is said to be based on an objective
fidelity criterion.
An example is the root-mean-squared (rms) error between two images.
Let f (x, y) be an input image, and fˆ(x, y) be an approximation of f (x, y) that
results from compressing and subsequently decompressing the input. For any
value of x and y, the error e(x, y) between f (x, y) and fˆ(x, y) is
Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Thursday, November 7, 2024
Psychovisual redundancy
objective
fidelity
criteria:
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Image Compression Models
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Huffman Coding
One of the most popular techniques for removing coding redundancy is due to Huffman
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Golomb Coding
the coding of nonnegative integer inputs with exponentially decaying probability distributions. Inputs of this
type can be optimally encoded (in the sense of Shannon’s first theorem) using a family of codes that are
computationally simpler than Huffman codes.
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
arithmetic Coding
Unlike the variable-length codes of the previous two sections, arithmetic coding generates nonblock codes.
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Discuss the need for image compression. Perform Huffman
algorithm for the following intensity distribution, for a 64 X 64
image. Obtain the coding efficiency and compare with that of
uniform length code.
rk 0 1 2 3 4 5 6 7
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
LZW Coding
An error-free compression approach that also addresses spatial redundancies in an image. The technique, called
Lempel-Ziv-Welch (LZW) coding, assigns fixed-length code words to variable length sequences of source symbols.
If a pixel of intensity 127 (01111111) is adjacent to a pixel of intensity 128 (10000000), for instance, every
bit plane will contain a corresponding 0 to 1 (or 1 to 0) transition.
An alternative decomposition approach (which reduces the effect of small intensity variations) is to first
represent the image by an m-bit Gray code. The m-bit Gray code gm−1 … g2g1g0 that corresponds to the
polynomial in Eq. (8-19) can be computed
from
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
block transform Coding
Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Thursday, November 7, 2024
lossless predictive Coding
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
lossless predictive Coding
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
lossless predictive Coding
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
lossy predictive Coding
Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Thursday, November 7, 2024
lossy predictive Coding
Delta modulation (DM) is a simple but well-known form of lossy predictive coding in which the predictor and quantizer
are defined as
Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Thursday, November 7, 2024
lossy predictive Coding
Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE
Thursday, November 7, 2024
Thank You
Thursday, November 7, 2024 Digital Image Processing (Chapter 4) Dr. N.Radha, Associate Professor, Dept. of ECE