

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Describe the steps you will use to compress the given image block to produce a compressed bit stream. Assume that the linear transform used is the DCT, (you can use the standard DCT transform matrix given in the class, or the dct2() function available in Matlab). The DC coefficients are to be coded using predictive coding and where necessary, assume the preceding quantized DC coefficient was 128. For each quantization matrix: (i) Determine the quantized coefficient values. (ii) Using the quantized coefficients, generate your own Huffman codes. Show the Huffman code propagation tree. (iii) Then code the image using the generated Huffman codes. Show the coded image in matrix form.
(iv) What is the average code length for the symbols? (v) What is the compression ratio?
(vii) What is the mean square error (MSE) resulting from the compression? (viii) What is the signal-to-noise ratio (SNR)?
From your results, comment on the effect of the quantization matrices on the compression ratio and the introduced error?
Q1BB. Repeat Q1AA but using multiresolution decompositions. For instance, you can use the REDUCE and EXPAND operators we described in class, or use the Wavelet transform ( dwt2(), available in Matlab – use ‘haar’ wavelets). Then, repeat the calculations for above. Show a table of the new results, and comment on the results obtained.
For this problem, first perform compression with only one level of decomposition.
Then repeat the procedure with two levels , and then three levels. Use the following formula for quantization of coefficients in band b :
b
b b b
−
R b b
From your results, comment on the effect of the decomposition levels on the compression ratio and the introduced error?
For the wavelet problem, you do not need to show the Huffman trees. You are advised to use available Matlab codes Huffman coding.
Q2. The coded MPEG stream is usually represented as a sequence of I P B pictures. Practically, the bit stream can be defined in terms of n - the number of frames in a group of pictures GOP, and m - the number of B frames between any two anchor frames (i.e. I or P frames). We assume that given m , n is always chosen such that we always have B frames between anchor frames. E.g. for IBPBPBI, n =6, m =1; for IBBPBBPBBI, n =9, m =2; for IBBPBBPBBPBBPBBI, n =15, m =2.
2b. In your view, how will the parameters m and n affect the quality of the reconstructed video?
Q3 Paper Critique Write a 3-page critique of the paper: M. Grangetto, E. Magli, and G. Olmo, “Multimedia selective encryption by means of randomized arithmetic coding”, IEEE Transactions on Multimedia, 8(5), 905-917, October 2006. Your critique will be a summary of the paper with information on the basic problem the paper is trying to addres s, the major contributions of the pape r, the new results produced, and the limitations/problems with the pape r. Based on the limitations/problems identified, you should suggest some improvements on the pape r, or new ways of addressing the same problem as the paper. Your critique should be more than 3 pages. Descriptions beyond the 3th page will be ignored.