Unit-6 Image Compression
Unit-6 Image Compression
UNIT - 6
FUNDAMENTAL
Compression ratio
3 types
1. Coding redundancy
Code is system of symbols, used to represent body of
information
Each piece of information assigned sequence of code symbols
called codeword
Number of symbol in each codeword is called length
In 2D array of image
8-bit used to represents intensity that is greater than needed
bits
DATA REDUNDANCY
3 types
1. Coding redundancy
2. Interpixel redundancy
Correlated pixels are having replication of information
Like pixel depend on neighborhood pixel
DATA REDUNDANCY
3 types
1. Coding redundancy
2. Interpixel redundancy
3. Psychovisual redundancy
2D array image may contain information that is ignored by the
human eye or visual systems
IMAGE COMPRESSION
1. Encoder
Perform compression
2. Decoder
Perform decompression
IMAGE COMPRESSION
TYPES OF IMAGE COMPRESSION
Lossy Lossless
Compression Compression
Steps:
1. Image is first divided into pixel block of size 8X8 which are
processed left to right and top to bottom
2. Level shifting by subtracting 2n-1
3. 2D DCT is computed
4. Quantized
5. Zigzag pattern
JPEG : BASELINE SYSTEM
DCT
DCT
coefficient
JPEG : BASELINE SYSTEM
DCT coefficient
Qu
an
t
iza
tio
n
Quantization matrix
JPEG : BASELINE SYSTEM
−26
−3 0
−3 −2 −6
2 −4 1 −3
1 1 5 1 2
−1 1 −1 2 0 0
0 0 0 -1 -1 0 0
0 0 0 0 0 0 0 0
Read in zigzag pattern 0 0 0 0 0 0 0
as below 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0
0 0 0
0 0
0