Docsity

4 Sample Problems on Image Processing - Final Examination | EECS 556, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
EECS 556, 2003 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 1088.
• 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] Weiner denoising, deblurring. Use the template finalp1_template.m, and add:
vv = conv2(vv,ones([3 1]),'same'); % color the noise
blurff = conv2(ff,ones([1 3]),'same'); % the blurred signal
gg = blurff + vv; % the measurement
g1 = gg(:); % make image a vector
You will find the MMSE estimate of ff from gg by two different methods.
a. Use the statistical resoration methods with column stacked data g1. We must first
determine the blur matrix, H. Show, based on the superposition principle, that the
elements of H are h(n,m;k,l). Specifically, argue that unstacking (reshaping) of the
(kN+l)th column of H corresponds to the image h(n,m;k,l), e.g. the blurring system output
for a delta function at location (k,l).
b. Calculate H in Matlab.
c. Determine the covariance matrices Kv and Kf. If you are having difficulty building Kv
and wish to continue with this problem, you may delete the matlab line that “colors the
noise” (3 pt deduction).
d. Determine the MMSE estimate of ff from gg using the results of parts b and c. Display
the results using imagesc and determine the MSE before and after filtering.
e. Determine the blur spectrum ),(yx
Bωω .
f. Determine the power spectra ),(yxv
Pωω and ),(yxf
Pωω .
g. Determine the MMSE estimate of ff from gg using the results of parts e and f. Display the
results using imagesc and determine the MSE after filtering. How does this result
compare with part d?
h. Alter the variable nsd from 1.0 to 0.1 and redo the MMSE estimates (recalculate what
ever parameters are necessary to yield the proper estimate). Compare the two MMSE
estimate and explain any differences.
pf3

Partial preview of the text

Download 4 Sample Problems on Image Processing - Final Examination | 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 1088.
  • 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] Weiner denoising, deblurring. Use the template finalp1_template.m, and add: vv = conv2(vv,ones([3 1]),'same'); % color the noise blurff = conv2(ff,ones([1 3]),'same'); % the blurred signal gg = blurff + vv; % the measurement g1 = gg(:); % make image a vector You will find the MMSE estimate of ff from gg by two different methods. a. Use the statistical resoration methods with column stacked data g1. We must first determine the blur matrix, H. Show, based on the superposition principle, that the elements of H are h ( n , m ; k , l ). Specifically, argue that unstacking (reshaping) of the ( kN + l )th^ column of H corresponds to the image h ( n , m ; k , l ), e.g. the blurring system output for a delta function at location ( k , l ). b. Calculate H in Matlab. c. Determine the covariance matrices Kv and Kf. If you are having difficulty building Kv and wish to continue with this problem, you may delete the matlab line that “colors the noise” (3 pt deduction). d. Determine the MMSE estimate of ff from gg using the results of parts b and c. Display the results using imagesc and determine the MSE before and after filtering. e. Determine the blur spectrum B ( ω (^) x , ωy ). f. Determine the power spectra Pv ( ω (^) x , ωy )and Pf ( ω (^) x , ωy ). g. Determine the MMSE estimate of ff from gg using the results of parts e and f. Display the results using imagesc and determine the MSE after filtering. How does this result compare with part d? h. Alter the variable nsd from 1.0 to 0.1 and redo the MMSE estimates (recalculate what ever parameters are necessary to yield the proper estimate). Compare the two MMSE estimate and explain any differences.
  1. [40] Pyramid coding, interpolation, codewords, etc. Use the template finalp2_template.m, in which two stages of pyramid coding decomposition is implemented. In this template, f 0 is the quantity we wish to code and e 0 , e 1 , and f 2 are the quantities to be coded and quantized. In our particular example, we will assign zero bits for coding of e 1. a. Interpolate (e.g. upsample) f 2 to become f^ ˆ (^) 0 , l using linear interpolation. b. Determine the error image, e 0 , required to make f^ ˆ (^) 0 , l equal to f 0. [If you are unable to solve part a., let e 0 = ( f 0 – f 0 ,l ) so that you can do the following parts.] c. We will now quantize and code f 2 and e 0. Suppose we want an average of 1.5 bits/pixel for coding f 0. We choose to use scalar quantization with 8 reconstruction levels in f 2 and 5 levels in e 0. Is this a reasonable scheme? Will we come close to our target bit rate? d. Perform an 8 level uniform scalar quantization on f 2 between min( f 2 ) and max( f 2 ). e. Determine the frequency of each reconstruction level and derive an optimal variable length code for these 8 reconstruction levels. What is the average bit rate for the quantized version of f 2 : f^ ˆ (^) 2? f. Estimate the entropy of the image variable resulting from the quantization in d. How close to the bit rate for our code compare to the entropy? Is the variable length code here substantially better than a fixed length code? g. Perform parts a. and b. using f^ ˆ (^) 2. [If you are unable to solve part a., find e 0 based on the uniformly quantized f 0 ,l so that you can do the following parts.] h. Perform a 5 level uniform scalar quantization on the e 0 from part g. between –max(abs( e 0 )) and +max(abs( e 0 )). i. Determine the frequency of each reconstruction level and derive an optimal variable length code for these 5 reconstruction levels. What is the average bit rate for the quantized version of e 0 : e ˆ 0?

j. Deterimine the final coded image using f^ ˆ (^) 2 and e ˆ 0. What is (^)  

= ^ −^2

D E f^ ˆ 0 f 0? What

is the overall bit rate? Do we achieve our target bit rate of 1.5 bits/pixel? How does this method compare to VQ and PCM methods of HW#8?

k. Compare [ ]

2 MSE 0 (^) = Ee ˆ 0 − e 0 with D. Comment on the relationship between

= ^ −^2

2 2 2 MSE E f ˆ^ f and D. Comment on ways we might change the scheme in part c.

to further reduce distortion. Does the usual bit allocatoin scheme (based on variance) make sense here?

  1. [15] Let f ( x , y ) = f ( x ), where

y

x x and let x T x x

sin cos

cos sin ' ( , , ) b

a a b θ θ

θ θ θ be a

coordinate tranformation. Let g ( x )= f ( T ( θ , a , b ) x ). a. Determine G ( u , v ) in terms of F ( u , v ). b. Argue that f ( x ) be written in this form: f ( x ) = g ( T ( θ ', a ', b ') x ). Determine θ’ , a’ , b’ for θ = 45 degrees, a = 0.2, and b = -0.3. Does θ’ = - θ, a’ = - a , b’ = - b? Why or why not?