

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Problem set 1 for the computer vision course (cap5415) at the university of central florida, which was assigned in the fall of 2008. The problem set includes instructions and descriptions for various image processing tasks, such as blurring images, computing the discrete fourier transform (dft), and convolution. Students are expected to write up their solutions and turn in printouts of the results.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


University of Central Florida
Problem Set 1 Fall 2008 Assigned: Thursday, September 4, 2008 Due: Tuesday, September 16, 2008
Each of the sections below constitute one problem. If the problem asks for images, you should turn in a print-out with the requested images. Ideally, your assignment should be composed in a word-processor, such as LATEXor Microsoft Word. You are welcome to write out derivations by hand. In your writeup, described the steps you completed for each problem and show the results. Readability will be part of your grade.
For this problem, turn in the necessary code to complete the following steps. Also turn in the resulting images.
(a) Load the image into your environment (b) Blur the image (c) Display the result. (d) Compute the DFT of the image (e) Display the magnitude of the DFT
One day, you’re complaining to your officemate that your current research project requires you to do convo- lution with very large kernels and that is just too slow. Your officemate smiles at you and cryptically says, “But, computing an FFT on an image is O(N 2 log N ) for an N × N image.”
You’ve taken the most beautiful picture and are editing it. You decide to see what it might look like if it were blurred slightly. Unfortunately, your graphics package crashes just after the blurring and saves over the original. What will you do? In class, we showed that convolving to signals is equivalent to multiplying their Fourier transforms. In this problem you will explore the limits of undoing a convolution. For this problem, turn in the necessary code to complete the following steps. Also turn in the resulting images.
Show that the DFT of f [n]∗h[n] is equal to F [u]H[u], if F and H are the DFTs of f and h. You can assume that circular boundary handling is implied.
In the first lecture, we discussed the median filter. It works like a local averaging filter, except instead of taking the mean of a window, the median filter uses the median value in the window. (Look up median in Wikipedia if you do not remember the difference between a mean and a median). MATLAB and Python both provide median filtering operations, medfilt2 and medfilt2d respectively. Filter the two images for this problem set with median and averaging filters of 3 different sizes. How would you describe the difference in output between the mean and median filter? How does using the median cause these differences?