Data Compression 2
Data Compression 2
Hai Tao
Department of Computer Engineering
University of California at Santa Cruz
n n
f (n) 156,157,158,158,156,156,154,154,155 f (n) 156,1,1,0, 1,0, 1,0,1
DPCM decoding
f ( n ) f ( n ) f ( n )
Image Compression
DCT Example
u
Department of Computer Engineering
University of California at Santa Cruz
DCT Compression
We need to
• Quantize the DCT coefficients
• Encode the position of the large coefficients
• Compress the value of the coefficients