0% found this document useful (0 votes)
23 views2 pages

Assigment 4

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

Assigment 4

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Subject: Digital Video and Audio Processing

Lecturer: Mr. Mohammed Nasser elMaisary


Assignment4
Unit: Image Transform (Discrete Wavelet Transform && Discrete Cosine Transform)
1) Given a 4x4 3-bit image, decompose the image into LL, LH, HL, and HH using
Haar wavelets.

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

3) Using the image in Q1, calculate 4x4 DCT coefficients

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

6) Group practice: Given an image <child.jpg > Write a script to decompose it


using HDWT for first, second, and three levels, then display the results.
a) Try to make LH, HL , and HH for the first level zeros and reconstruct the
image, compare it with the original and write your notes.
b) Make LH, HL, and HH for the first and second levels zeros and reconstruct
the image, compare it with the original. Write your notes.

Note: you can calculate PSNR and MSE for cases (a) and (b) to check quality of
the reconstructed images

You might also like