
EECS 556, 2002 Final Exam 1
Take-Home Final Exam
• You may have 72 hours to work on this exam. You must enter your name and sign-out and
sign-in times on the log sheet in BIRB 1089. There is a 1 hour grace period.
• You may use your books, your own notes, web resources, computers and calculators.
• You may not seek assistance, share or borrow notes from any current and former students or
any other individual (instructors’ notes available on the web are OK).
• This exam is governed by the Engineering Honor Code, which requires that you do not seek
assistance on this exam and that you report any violations of the Honor Code. (For more info
see http://www.engin.umich.edu/org/ehc/index.html).
• On the first page of your solutions, write “I have neither given nor received aid on this
exam,” and sign your name below it.
• Show your work and hand in all Matlab code.
• If parts of the exam are not clear and you cannot find the instructor to ask for clarification,
please write your assumptions and proceed with the question. If you cannot solve a part that
is needed later in the solution, define a parameter to represent the answer of that part and
continue.
• Write legibly.
• Please remember to put your name on your exam solutions.
• Good luck!
1. [25] Transforms and transform coding. You plan to build and test a transform coder using a
Fourier basis set. The problem, of course, is that the complex numbers from the Fourier
basis are result in an increase in the number of coefficients for coding of real images.
Fortunately, you are aware that there may be some symmetries in the Fourier data that will
allow you to reduce the number of coefficient that must be quantized and stored.
a. We start by solving the 1D case for a length 8 real-valued data vector, x(n), which
transforms to real-valued transform coefficients, X(k), also of length 8. Determine the 8
coefficients to be saved and derive the transformation matrix, A. Make whatever
modifications are necessary to insure that your transformation is energy preserving.
Describe the rows of A (formulas – not numbers) and order them so that the transform
coefficients, X(k), will be ordered approximately from largest variance to smallest
variance for typical images.
b. Derive and describe the inverse transformation matrix B.
c. We now solve the 2D case for an 8x8 real-valued subimage, x(n,m), that transforms to an
8x8 block of real-valued coefficients, X(k,l). Derive and describe this transformation
(you do not have to explicitly describe a matrix A). Again, please insure that the
transformation is energy preserving.
d. Derive and describe the inverse transformation.
e. Write a Matlab script to test your solutions to c. and d. The test image will be:
im = [1:8]’*[5:12];
To insure that the coefficients are real-valued, include the following line:
coeffs = real(coeffs);
Verify that the transform is energy preserving and invertable. You may use fft, fft2,
ifft or ifft2 in your solution (but you don’t have to).