Dip-Unit 5
Dip-Unit 5
REDUNDANT
DATA
INFORMATION
. Temporal redundancy
Fundamentals
• Basic data redundancies:
1. Coding redundancy
2. Inter-pixel redundancy
3. Psycho-visual redundancy
Coding Redundancy
Let us assume, that a discrete random variable rk in the interval [0,1]
represent the gray level of an image:
nk
pr (rk ) = k = 0,1, 2,, L −1
n
If the number of bits used to represent each value of r kis l(r ),k then
the average number of L−1
bits required to represent each pixel:
Lavg = ∑ l(rk ) p r (rk )
k =0
The total number bits required to code an MxN image:
M .N.Lavg
Coding Redundancy
7
Lavg = ∑ l 2 (rk ) p r (rk ) n1
k =0 Compression CR =
n
= 2(0.19) + 2(0.25) + 2(0.21) + 3(0.16) + 4(0.08) ratio: 2
+ 5(0.06) + 6(0.03) + 6(0.02) Relative data 1
Rd =1−
= 2.7bits redundancy: CR
3 1
CR = = 1.11 Rd =1− = 0.099
2.7 1.11
Inter-pixel Redundancy
Histogram.
Dependencies.
Spatial Redundancy
Each pixel can be estimated
Geometric Redundancy
From its neighbors
Inter-frame Redundancy
Psycho-visual Redundancy
Elimination of psych-visual redundant data results in a loss of
quantitative information ,it is commonly referred as quantization.
Improved Gray-
Scale
Fidelity Criteria
error
M −1N−1
∑∑ fˆ (x, y) 2
x=0 y=0
Mean-square SNRms = M −1N−1
signal-to-noise ratio
∑∑ [ fˆ (x, y) − f (x, y)] 2
x=0 y=0
Fidelity Criteria
Applications:
• Archive of medical or business documents
• Satellite imaging
• Digital radiography
Huffman
coding
to Huffman (1952)
source symbol
Huffman
coding (optimal
code)
Error-Free Compression
Variable-length Coding
Huffman
coding
39 39 126 126 0 0
39 39 126 126 1 1
39 39 126 126 . .
256 -
511 -
Initial Dictionary
LZW Coding
•Is 39 in the dictionary……..Yes
39 39 126 126
39 39 126 126
39 39 126 126
•What about 39-39………….No
39 39 126 126
0 0
•And output the last recognized symbol…39
1 1
. .
255 255
3 9 -3 9
256 -
511 -
Error-Free Compression
Bit-plane coding abcdef
a
Bit-plane coding is based on b
decomposing a multilevel c
Bit-plane coding
Bit-plane
decomposition
gl = a ⊕
l a l +1 0≤l≤m−2
g m−1 = am−1
Error-Free Compression Binary Bit-planes Gray Bit-planes
Bit-plane coding
Bit-plane
decomposition
Error-Free Compression
Bit-plane coding
Average values of
black and white run
lengths
• Two-dimensional RLC
What Is JPEG?
. "Joint Photographic Expert Group". Voted as