Assigment 4
Assigment 4
0 0 0 0
0 7 7 7
1 0 1 0
0 7 7 7
2) Given the low-resolution images, calculate the inverse discrete wavelet transform
to compose the original image:
1 −1
𝐿𝐿 =
1 1
0 0
𝐿𝐻 =
0 0
0 0
𝐻𝐿 =
0 0
1 0
𝐻𝐻 =
0 −1
4) Suppose that I(m,n) is the original image and R(m,n) is the reconstructed image
after lossy compression process. Check the quality of the reconstructed image
using MSE and PSNR quality measurements:
3 2 7 3 1 6
𝐼(𝑚, 𝑛) = 4 1 0 𝑅(𝑚, 𝑛) = 3 1 1
7 3 6 5 2 7
5) In a compression system, the output of the 3X3 DCT stage is scalar quantized by
3X3 Quantization matrix. Using three quantization levels calculate PSNR of the
reconstructed image in three cases. suppose the original image I(m,n), and the
quantization levels are Q1 , Q2, and Q3.
1 2 3
𝑜𝑟𝑖𝑔𝑖𝑛𝑎𝑙 𝑖𝑚𝑎𝑔𝑒 𝐼(𝑚, 𝑛) = 3 2 2
1 2 0
1 0 0 1 1 0 1 1 0
𝑄1 = 0 0 0 𝑄2 = 1 0 0 𝑄3 = 1 1 0
0 0 0 0 0 0 0 0 0
Note: you can calculate PSNR and MSE for cases (a) and (b) to check quality of
the reconstructed images