Outline of Vector Quantization of Images: S.R.Subramanya 1
Outline of Vector Quantization of Images: S.R.Subramanya 1
Outline of Vector Quantization of Images: S.R.Subramanya 1
Images
S.R.Subramanya 1
VQ Coding Outline
S.R.Subramanya 2
VQ Decoding Outline
S.R.Subramanya 3
VQ Terminology
S.R.Subramanya 4
Why VQ is better than scalar
Quantization
• Scalar Quantizer :
Treats each pixel independently
Does not use correlation between neighboring pixels
• Vector Quantizer:
• Image (data) divided into vectors (blocks)
• Correlation among pixels in vectors is exploited
• Block size should be appropriate:
• Too large block : correlation is lost
• Too small block : More code vectors
• If no interpixel correlation, then no gain
S.R.Subramanya 5
VQ Bitrate
S.R.Subramanya 6
Distortion Measures
Image Codebook
V1 codevectors : V ,
i 1 i L
xk
V2
closest matching
code vector
Vk
Image vectors : Xj
VL
• Local Codebook
One codebook for each image
Codebook derived from vectors of one image
Good performance (Quality of reconstruction)
More overhead :
(1) computation
(2) Transmission of CB to decoder
S.R.Subramanya 8
Two Basic Kinds of Codebook
• Global Codebook
One codebook for a class of images
Codebook derived from vectors of all images in the class
Less overhead (compared to local codebook)
Lower performance
S.R.Subramanya 9
Major Issues in VQ
• Design of codebook
concerns structuring codebook entries to minimize
search time
S.R.Subramanya 10
Codebook Generation
S.R.Subramanya 11
LBG Algorithm Outline
S.R.Subramanya 12
Codebook Initialization
S.R.Subramanya 13
Codebook Design
S.R.Subramanya 14
Codebook Organizations
•Tree-structured codebook
• Product codebook
• Mean/Residual VQ
• Interpolative/Residual VQ
• Gain/Shape VQ
• Classified VQ
• Finite State VQ
S.R.Subramanya 15
Tree – Structured Codebook
S.R.Subramanya 16
Variations of Tree – Structured VQ
• Tapered trees:
Non – Uniform number of branches at nodes
Branches per node increases going down the tree
( Ex: 2 branches at level 1, 3 at level 2 etc.)
• Pruned Trees
Start with (full) large initial tree
Remove code vectors that do not reduce distortion
S.R.Subramanya 17
Product Codebook
S.R.Subramanya 18
Prediction/Residual Class VQ
S.R.Subramanya 19
Mean/Residual VQ
S.R.Subramanya 20
Mean/Residual VQ
• Scheme :
• Compute ‘mean’ of image vectors : M={m1,m2...,mN}
~
• Quantize M using scalar quantization : M
• (Apply DPCM before Quantization further bitrate
reduction)
• Subtract Quantized means from vector elements
Residual vectors
• Several codebooks
• Each codebook for a specific feature
ex. edges, smooth areas, etc.
• Codebooks could be of different sizes
S.R.Subramanya 23
What is the measure of performance
VQ?