CH - 10 - 1 VQ Description PDF
CH - 10 - 1 VQ Description PDF
CH - 10 - 1 VQ Description PDF
10 Vector Quantization
Overview
1
Motivation
Recall in Lossless Methods:
• Block Huffman is better than single-symbol Huffman
– Blocks allow to exploit correlation between symbols (assuming source
symbols are not independent!)
• Shannon proved that “blocking taken to the limit” achieves
optimal compression… exploits correlation
n
No Need to Limit
to 2-D Vectors
Samples in
ACF of Speech
vector are highly
correlated!
1 2 3
k
3
Illustration of Gain from VQ: Real Speech Data
Equivalent VQ is
to SQ Better
than SQ
10x10
Quant.
x1 Cells x1
Only quantize
this band… two
options!
x2 x2
• 100 cells smaller than SQ
– Same Rate, Lower Distortion
• Fewer than 100 cells of same size as SQ
– Lower rate, Same Distortion
4
Going to higher dimension: vectors concentrated in smaller
% of whole space Î Improved Performance
5
Forming Vectors
For time signals… we usually form vectors from temporally-sequential samples.
But… you should let the ACF structure guide your choice…
ACF
N N
Note: Book uses upper-
case italic to indicate a
vector… I use the
k more standard lower-
x1 = [ x[0] x[ N ] x[2 N ] x[3N ]]
case bold non-italic…
7
Figure from book Vector Quantization and Signal Compression by Gersho & Gray
Structure of a VQ Fig. 10.1 in Textbook
L-Dim.
Vectors
Binary Codes
⎡log2M⎤ bits
1 code per code vector
8
x2
Example 2
-2 -1 1 2
x1
-1
-2
Encoder Decoder
Find Closest Table
Code-Vector Look-Up
Codebook Index Index Codebook
-2 -2 00 00 -2 -2
-1 -1 01 01 -1 -1
1 1 10 10 1 1
2 2 11 11 2 2
9
Encoder & Decoder Operation
Encoder: Search codebook for code vector yj that is closest to
input vector x.
Codebook {y i }i =1 = C where each y i ∈ℜ L
M
x is closest to yj if:
x − y j ≤ x − yi ∀y i ∈ C d ( x , y j ) ≤ d ( x , y i ) ∀y i ∈ C
i =1
i Norm) write Q(x) = yj
for z = [ z1 z2 " z L ]
T Note: VQ cells are defined by the
RLs & these equations rather than
explicit boundaries!!!
VQ Complexity is Asymmetrical
• May not work well for Real-Time Encoding
• But Real-Time Decoding is very easy
11
VQ Rate & Performance vs. Rate
If L-D vectors are quantized using a VQ having M
reconstruction points we need binary codewords having