Lossy compression achieves higher compression ratios by approximating original data.
Distortion Measures
Mean Square Error (MSE):σ2=N1Σ<em>n=1N(x</em>n−y<em>n)2 where x</em>n is input, yn is reconstructed data, and N is data length.
Signal to Noise Ratio (SNR):SNR=10log<em>10σ<em>d2σ</em>x2 in dB, where σ</em>x2 is the average square value of the original data sequence and σd2 is the MSE.
Peak Signal to Noise Ratio (PSNR):PSNR=10log<em>10σd2x</em>peak2
Rate-Distortion Theory
Framework for studying tradeoffs between rate and distortion.
R(D) represents the Rate Distortion Function.
Quantization
Reduces distinct output values, causing loss in compression.
Forms:
Uniform: Midrise and midtread quantizers.
Nonuniform: Companded quantizer.
Vector Quantization.
Uniform Scalar Quantization
Divides input values into equally spaced intervals (step size ∆).
Midrise: Even output levels.
Midtread: Odd output levels, including zero.
Equations for ∆ = 1:
Midrise: Qmidrise(x)=[x−0.5]
Midtread: Qmidtread(x)=[x+0.5]
Rate: R=[log2M] for M levels.
Quantization Error of Uniformly Distributed Source
Granular distortion: Quantization error for bounded input.
Companded Quantization
Nonlinear quantization using compressor (G), uniform quantizer, and expander (G−1).
Common companders: µ-law and A-law.
Vector Quantization (VQ)
Operates on vectors of samples.
Uses code vectors; a collection of these code vectors form the codebook.
Transform Coding
Transforms input vector X to Y for efficient coding by decorrelating components.
Can coarsely quantize or set to zero the components with little signal distortion.
Focus on Discrete Cosine Transform (DCT) and Karhunen-Loève Transform (KLT).
Spatial Frequency and DCT
Spatial frequency: Pixel value changes across an image block.
DCT decomposes a signal into DC and AC components; IDCT reconstructs the signal.