
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

EECS 556, Imaging Processing, Douglas C. Noll 1/9/
Homework # Due Date: Jan. 16, 2002
We would like to determine what the output image would be if the input image were f ( x , y )=rect( x / 3 , 3 y )+rect( 2 x , y ) One could solve this problem using convolution, but an easier way is be to use MATLAB’s fft2 command to compute the output image g ( x , y ). Caution: you must be very careful with fftshift and your sample locations to get a correct answer. To work on this problem, you may wish to download the template file h1template.m from the web site. a. Display the real and the imaginary parts of your result as two distinct images using subplot. Display a colorbar to give the amplitude scale. b. Show F ( u , v ) using subplot and colorbar. c. Is your resulting g ( x , y )exact or approximate at the sample locations? If not, why?