ACCESS IC LAB
Graduate Institute of Electronics Engineering, NTU
Image Compression Image Compression Fundamentals Fundamentals - - PowerPoint PPT Presentation
Graduate Institute of Electronics Engineering, NTU Image Compression Image Compression Fundamentals Fundamentals Advisor: Prof. Andy Wu 2004/12/9 Thursday ACCESS IC LAB ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU
Graduate Institute of Electronics Engineering, NTU
Graduate Institute of Electronics Engineering, NTU
P2
Graduate Institute of Electronics Engineering, NTU
P3
Graduate Institute of Electronics Engineering, NTU
P4
Graduate Institute of Electronics Engineering, NTU
P5
Graduate Institute of Electronics Engineering, NTU
P6
Graduate Institute of Electronics Engineering, NTU
P7
Graduate Institute of Electronics Engineering, NTU
P8
Graduate Institute of Electronics Engineering, NTU
P9
Graduate Institute of Electronics Engineering, NTU
P10
RGB to YUV Y = 0.299R + 0.587G + 0.114B U =-0.147R - 0.289G + 0.436B V = 0.615R - 0.515G - 0.100B YUV to RGB R = Y + V/0.877 G = Y - 0.299*(Y + V/0.877) -0.114*(Y + U/0.492) ) / 0.587 B = Y + U/0.492 RGB to YIQ Y = 0.299G + 0.587G + 0.114B I = 0.596R - 0.274g - 0.322B Q = 0.211R - 0.523G + 0.311B YIQ to RGB R = 1.0Y + 0.956I + 0.621Q G = 1.0Y – 0.272I - 0.649Q B = 1.0Y – 1.106I + 1.703Q
Graduate Institute of Electronics Engineering, NTU
P11
Down-sample chrominance to reduce data size 4:4:4 –Same resolution on luminance and chrominance 4:2:2 –Horizontal down-sample chrominance resolution 4:2:0 –Horizontal and Vertical down-sample chrominance resolution
Graduate Institute of Electronics Engineering, NTU
P12
Graduate Institute of Electronics Engineering, NTU
P13
Graduate Institute of Electronics Engineering, NTU
P14
Graduate Institute of Electronics Engineering, NTU
P15
Graduate Institute of Electronics Engineering, NTU
P16
− = − =
1 1
N x N y
− = − =
1 1
N u N v
Inverse 2D DCT Forward 2D DCT
Graduate Institute of Electronics Engineering, NTU
P17
− =
+ =
1
) 2 ) 1 2 ( cos( ) ( ) ( ) (
N x
N x u x f u c u F π
N i N i c , / 2 , / 1 ) ( = =
− =
+ =
1
) 2 ) 1 2 ( cos( ) ( ) ( ) (
N u
N x u u F u c x f π
Inverse 1D DCT Forward 1D DCT
Graduate Institute of Electronics Engineering, NTU
P18
Graduate Institute of Electronics Engineering, NTU
P19
Graduate Institute of Electronics Engineering, NTU
P20
Any analog quantity that is to be processed by a digital system must be converted to an discrete-valued number proportional to its amplitude. The conversion process between analog samples and discrete-valued samples is called quantization. Quantization will lose some information from original signal, and its
Graduate Institute of Electronics Engineering, NTU
P21
Graduate Institute of Electronics Engineering, NTU
P22
− = ∧ ∧
+
1 2 2 2
1
J j d d j a a
j j U L
∧
E : mean-square quantization error f : amplitude of real scalar signal sample : quantized value J : J quantization levels rj : jth reconstruction level dj : jth decision level
j
The optimum placing of the reconstruction level rj within the range dj-1 to dj can be determined by minimization of E with respect to rj . If J is large and the distribution is uniform, the probability density p(f) between dj+1 and dj may be represented as p(rj) and simply yielding:
1 j j j
+
Graduate Institute of Electronics Engineering, NTU
P23
Graduate Institute of Electronics Engineering, NTU
P24
Graduate Institute of Electronics Engineering, NTU
P25
Graduate Institute of Electronics Engineering, NTU
P26
Graduate Institute of Electronics Engineering, NTU
P27
Graduate Institute of Electronics Engineering, NTU
P28
Graduate Institute of Electronics Engineering, NTU
P29
Graduate Institute of Electronics Engineering, NTU
P30
Graduate Institute of Electronics Engineering, NTU
P31
Graduate Institute of Electronics Engineering, NTU
P32
Graduate Institute of Electronics Engineering, NTU
P33
Graduate Institute of Electronics Engineering, NTU
P34
Graduate Institute of Electronics Engineering, NTU
P35
Graduate Institute of Electronics Engineering, NTU
P36
Graduate Institute of Electronics Engineering, NTU
P37
Graduate Institute of Electronics Engineering, NTU
P38
Graduate Institute of Electronics Engineering, NTU
P39
Graduate Institute of Electronics Engineering, NTU
P40
Run-Length coding efficiency Block size
Huffman table for Differential DC term
Graduate Institute of Electronics Engineering, NTU
P41