Docsity

Exam 1 for Image Processing - 2003 | EECS 556, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
EECS 556, Noll, 2003 Exam #1 1
Take-Home Exam #1
• You may have up to 48 hours to work on this exam – please enter your name and sign-out and
sign-in times on the log sheet.
• 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.
• Please read questions carefully and answer all parts.
• Show your work (it’s hard to give partial credit without it).
• Include all Matlab scripts with your solutions.
• 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 (yes I know I don’t, but…)
• Please remember to put your name on your exam solutions.
• Good luck!
1. 2D systems (10 pts). For the following 2D continuous domain systems, determine if the system is
linear and/or shift invariant. If the system is linear, give its impulse response.
a.
[]
∫∫
+
+
−
==
Ly
y
Lx
Lx
dydxyxfyxfSyxg
2'')','(),(),(
b. ∫∫
∞
∞−
∞
∞−
−−= '')','()','(),( dydxyayxaxhyxfyxg
c. ∫∫
∞
∞−
∞
∞−
+−= ''))''(2exp()','(),( dydxyyxxiyxfyxg
π
d. ),(**),(),( yxhyxfyxg =
e.
{}
{
}
),(),(),( 2
2
1
2vuHyxfFFyxg
D
D⋅= −
2. Sampling (10 pts). Consider an image, f, with a band-limited spectrum that lies completely in the
first quadrant of the continuous Fourier domain (u,v), that is F is non-zero only for m
uu <≤0 and
m
vv <≤0 . Now, suppose f is sampled at two rates: )2,2(),(),(
1yvxucombyxfyxf mms = and
),(),(),(
2yvxucombyxfyxf mms = and the discrete domain images ),(
1mnfd and ),(
2mnfd,
respectively, are extracted.
a. Sketch the Fourier domain for 1s
f and 2s
f, identifying where spectrum is non-zero.
b. Can the original image be reconstructed from 2d
f? If so, describe the relationship between the
discrete samples, ),(
2mnfd, and ).,( yxf
c. Completely specify ),(
2yxd
F
ωω
in terms of ),(
1yxd
F
ωω
.
pf2

Partial preview of the text

Download Exam 1 for Image Processing - 2003 | EECS 556 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

EECS 556, Noll, 2003 Exam #1 1

Take-Home Exam #

  • You may have up to 48 hours to work on this exam – please enter your name and sign-out and sign-in times on the log sheet.
  • 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.
  • Please read questions carefully and answer all parts.
  • Show your work (it’s hard to give partial credit without it).
  • Include all Matlab scripts with your solutions.
  • 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 (yes I know I don’t, but…)
  • Please remember to put your name on your exam solutions.
  • Good luck!
    1. 2D systems (10 pts). For the following 2D continuous domain systems, determine if the system is linear and/or shift invariant. If the system is linear, give its impulse response.

a. [ ] ∫ ∫

+^ +

−

y L

y

x L

x L

g x y S f x y f x y dxdy

2 ( , ) ( , ) ( ', ') ' '

b. ∫ ∫

∞

−∞

∞

−∞

g ( x , y )= f ( x ', y ') h ( ax − x ', ay − y ') dx ' dy '

c. ∫ ∫

∞

−∞

∞

−∞

g ( x , y )= f ( x ', y ')exp(− i 2 π( x ' x + y ' y )) dx ' dy '

d. g ( x , y )= f ( x , y )** h ( x , y )

e. g ( x , y )= F 2 − D^1 { F 2 D { f ( x , y )}⋅ H^2 ( u , v )}

  1. Sampling (10 pts). Consider an image, f , with a band-limited spectrum that lies completely in the first quadrant of the continuous Fourier domain ( u , v ), that is F is non-zero only for 0 ≤ u < um and 0 ≤ v < v m. Now, suppose f is sampled at two rates: f (^) s 1 ( x , y )= f ( x , y ) comb ( 2 umx , 2 vmy )and f (^) s 2 ( x , y )= f ( x , y ) comb ( umx , vmy ) and the discrete domain images f (^) d 1 ( n , m )and f (^) d 2 ( n , m ), respectively, are extracted. a. Sketch the Fourier domain for f (^) s 1 and f (^) s 2 , identifying where spectrum is non-zero. b. Can the original image be reconstructed from f (^) d 2? If so, describe the relationship between the discrete samples, f (^) d 2 ( n , m ), and f ( x , y ).

c. Completely specify Fd 2 (ω x , ω y )in terms of Fd 1 (ω x , ω y ).

EECS 556, Noll, 2003 Exam #1 2

  1. Filters (40 pts). In this problem you will design 4 different 7x7 zero-phase, high-pass filters using the methods described below and implement them in Matlab. The desired spatial frequency response is 0 for zero spatial frequency and the 1 for high frequencies. For each filter (a.-d.), calculate the 2D DSFT, H ( ω x , ω y ), for at least a 64x64 array and display the real part of H using imagesc. Include a colorbar and please make sure your axes are labeled and correct. a. Starting with a 1-D high-pass filter h 1 ( n )= [−. 0141 −. 1111 −. 2319 0. 7143 −. 2319 −. 1111 −. 0141 ] construct a 7x7 separable high-pass filter. b. Convert h 1 ( n ) into its corresponding low-pass filter equivalent and construct a 7x7 separable low-pass filter, h lp ( n,m ). Now convert h lp ( n,m ) into its corresponding high-pass equivalent. c. Create a 7x7 high pass filter using the 2-D frequency sampling method. Use this definition for the 2D DSFT domain:

2 2 2

7 7 1 3 / 7

H ( ) ω ω x ω y

ω π^ π = +

(Hint: carefully read description of functions fftshift and ifftshift). d. Design an “ideal” (jinc-like) 7x7 filter low pass filter for a cut-off frequency 7

ω =^2 π

c. You should use some form of circularly symmetric windowing function. Use this filter as the basis of a high-pass filter. e. Comment on differences that you see in these different designs. Which filters are closed to the ideal spectrum (inverse of the ideal low pass in d.)? Are some methods particularly poor and why? Which methods have the narrowest transition band and which have the largest passband ripple? What symmetries exist? Are some computationally better than others?

  1. Convolution (40 pts). We wish to filter with the following 5x5 convolution kernel, h ( n , m ) = 0 -1 -1 -1 0 -1 -1 -1 -1 - 3 5 5 5 3 -1 -1 -1 -1 - 0 -1 -1 -1 0 where the underlined “5” at the center of the matrix is the (0,0) pixel. You will apply this filter to the 58x58 object in the variable rsqr produced by e1_p1_template.m. Assume that rsqr(30,30) (in Matlab) is the center pixel of the input image. For parts a., b., d., and e., do the following: i) Display the filtered image using imagesc and include a colorbar, ii) specify the output image size, and iii) specify the Matlab coordinate of the center pixel of the output image. a. Implement 2D convolution using conv2. b. Implement 2D linear convolution using 2D FFT’s. c. Convert rsqr into a 1D vector: r 1 d ( p )= r 1 d ( n + mN )= rsqr ( n , m )(column-wise stacking in Matlab). Show that a 2D convolution can be implemented by using a 1D convolution of r1d with h1d , a similar 1D stacking of zero-padded version of h. What modifications to the above procedure are necessary to insure a linear convolution result? What is the minimum length of h1d that yields the linear convolution of part a? d. Implement 2D linear convolution using the 1D convolution function conv, specicially please implement the ideas of part c. e. Implement 2D linear convolution using 1D FFT’s. Here, you will implement the 1D convolution of part d. using FFT’s.