Image Processing Fundamentals
Image Processing Fundamentals
• Modes of operation:
(1) Sequential DCT-based encoding
(2) Progressive DCT-based encoding
(3) Lossless encoding
(4) Hierarchical encoding
JPEG Compression
(Sequential DCT-based encoding)
Entropy
encoder
Entropy
decoder
JPEG Steps
(i.e., non-centered
spectrum)
JPEG Steps
Quantization
JPEG Steps (cont’d)
DC
compress.py
Effect of “Quality” (cont’d)
Example 1: homogeneous 8 x 8 block
Example 1 (cont’d)
Quantized De-quantized
Example 1 (cont’d)
Reconstructed Error
Example 2: less homogeneous 8 x 8 block
Example 2 (cont’d)
Quantized De-quantized
Example 2 (cont’d)
Huffman
zigzag
Encoder Quantizer
Encoding
Bit-stream
Differential Huffman
Quantization Coding Encoding
Table
Huffman
De-zigzag
Decoding
Bit-stream Dequantizer
De-DC Huffman
Quantization coding Decoding
Decoder Table
B
G
Chrominance R
8X8 YVU color
Upsampling Decoded
IDCT coordinate
(4:2:2 or 4:2:0) Image
JPEG Modes
Sequential
Progressive
Progressive JPEG (cont’d)
f4
N/4 x N/4
f2
N/2 x N/2
NxN
Hierarchical JPEG (cont’d)
Hierarchical JPEG (cont’d)