

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!


ECE547 Image Processing Aug 28, 2008
Lecturer: Prof. Thomas Huang Due: Sept 11, 2008
For this machine problem, you will learn the MATLAB functions for computing 2D DFT and inverse 2D DFT, and become familiar with basic matrix operations. You will also examine effects occurred to each image as a result of applying different operations in the frequency domain.
You are asked to write a MATLAB program to perform the following tasks for the given test images. (Hint: You may want to consider the following MATLAB functions: imread, imwrite, fft2, ifft2, fftshift, abs, and angle.)
For the following tasks, please run them on the following two images:
When saving your output, replace xxx with lena and beckman as appropriate. For example, the output of task 1 with beckman.jpg should be beckman1-mag.png and beckman1-ang.png^1.
processing results as png or other lossless formats to preserve fidelity.
H(x; y) =
1 |x| < Cx and |y| < Cy, 0 otherwise
where Cx and Cy are the normalized cut-off frequencies for x and y respectively. The nor- malization is such that the “whole image” ranges from −1 to 1. Start with Cx = Cy = 0.3. Save the result as xxx5a.png. Then try another low-pass filter and save that result as xxx5b.png. You may try a different Cx and Cy or use another filter entirely.
Use frequency domain methods (Hint: use a band-pass filter) to remove the black bars in lena-bar.png. This image may be found at http://courses.ece.uiuc.edu/ece547/mp/lena-bar.png. Save the result as lena-bar-clean.png.
Please create an archive of your work named netid.zip or netid.tar.gz, where netid is your NetID. In this archive, include:
(a) Your name. (b) Your observations on the results of tasks 2–4. (c) Your choice of a low-pass filter for task 5 and a comparison between the two low-pass filter results. (d) A brief description of how you cleaned up lena-bar.png
Email a copy of the archive to [email protected]
MathWorks Inc. provides an excellent documentation on how to use MATLAB. You may learn more about MATLAB from their website at: http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.shtml