Docsity

5 Questions on Image Processing -Final Exam | EECS 556, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
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).
pf3

Partial preview of the text

Download 5 Questions on Image Processing -Final Exam | EECS 556 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

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).
  1. [25] Deblurring. You recently got a job with a real estate company to take picture of all of the houses in Ann Arbor. Since you will receive the same amount of money no matter how long it takes, you decided to attach a camera to your car and take picture of homes as you drove by. Unfortunately, most of the pictures are blurred and look like finalimage2.mat. Having taken EECS 566, though, you figure that you should be able to undo this blur. First, though, you need to make some assumptions – you assume that the shutter is either fully open or fully closed and that while it is open, your car is moving at a constant velocity, v. Unfortunately, you don’t know v.. a. Describe, in 2D, the form of the blur in these images and its frequency response. b. Run the script finalpr2_template.m. This will produce two plots. Analyze this script and then describe how one might use the data in each of the plots to gather information about the blur function. Derive two estimates of the amount of movement during the exposure, W , using only information in these plots. Do not use information from the “reference image” – this is to be used to determine MSE’s below. c. Use these estimates to implement two deblurring algorithms. 1) the clipped inverse filter with γ = 3 (Lim, Eqn 9.50), and

B a

B

B

B a H x y

x y x y (^22)

2

ω ω

ω ω ω ω , with a = 0.03.

Display the resultant images using imagesc. Included with the blurred image, is a reference image of the original unblurred image. Determine the MSE for each method. d. You may notice there are substantial edge artifacts. In class, we described several methods for extending images in order to reduce edge effects. Choose a method and explain why that method was chosen. Implement deblurring methods of c. on the extended images, display the images, and determine the MSE. e. Which deblurring method has the lowest MSE? From a visual inspection, which appears to be best? f. Evaluate the sensitivity of each of the methods to model mismatch. Evaluate the change in MSE with changes in your estimate of blur, W (e.g. examine MSE for W ± dW ).

  1. [10] Vector Quantization (VQ). Consider a WSS image for which you intend to implement 2-length VQ with L^2 reconstruction levels. For which of the following joint probability distributions will VQ be advantageous, in terms of distortion, over scalar quantization with L reconstruction levels. For each, describe (qualitatively) how much the improvement from using VQ and why.

a. [( ) ( ) ( )( )]

exp 2 0. 19

f ( x 1 , x 2 ) x 1 2 x 2 2 x 1 x 2 π

b. 

2 2

2 1 1 2 2 2 exp 2

πσ σ

x x f x x

c. f ( x 1 , x 2 )= 4 x 1 x 2 for 0 ≤ x 1 , x 2 ≤ 1 d. f ( x 1 , x 2 )= x 1 + x 2 for 0 ≤ x 1 , x 2 ≤ 1 e. f ( x 1 , x 2 )=0.5*[rect( x 1 -0.5)rect( x 2 -0.5) + rect( x 1 -1.5)rect( x 2 -1.5)]