Project 5 Vector Quantization

 

1), Generate a 16-dimensional codebook of size 64 for the Sena image. Construct the vector as a 4x4 block of pixels, an 8 x 2 block of pixels, and a 16x1 block of pixels.

2), Show this table:

  SNR (dB) PSNR(dB) Compression Ratio
4 x 4      
8 x 2      
16 x 1      

3), Show the reconstructed images.

4), Show your source code.

5), Repeat the whole thing for codebook size of 256.

 

Notes:

When we say a Matrix with size MxN, we refer a matrix with M rows and N columns.

You might use the program trvqsp_img to obtain the codebooks.