
EECS 556, Imaging Processing, Douglas C. Noll 2/6/2002
Homework #4
Due Date: Feb. 12, 2002
1. [10] Lim, Problem 4.6
2. [70] You will examine the ideal circularly symmetric filter and nearly circularly symmetric
variants. Create an ideal low-pass filter using the form described in class for ωc = π/2. Hand
in all plots and your Matlab code. For all plots (and filters), make the (0,0) location in the
approximate center of plot and make sure your axes are accurate.
a. Create a 64x64 filter, h(n,m).
b. Calculate the frequency response ),(
Hωω and display using imagesc.
c. Extract the central 9x9 part to make the truncated filter hT(n,m).
d. Describe symmetry properties of this filter, that is, is it circularly symmetric, 4-fold
symmetric, 8-fold symmetric?
e. Calculate the frequency response ),(
Hωω and display using imagesc.
f. Extract a 9x9 filter hT2(n,m), but keep only coefficients for which
4
22 ≤+= mnn
.
g. Calculate the frequency response ),(
Hωω and display using imagesc.
h. Plot the ωX=0 line for these three filters and compare.
i. Plot the ωX=ωY line for these three filters and compare.
3. [70] In this problem, we will investigate the creation of an approximately circularly
symmetric filter. Hand in all plots and your Matlab code. For all plots, make the (0,0)
location in the approximate center of plot.
a. Consider a 1D filter with impulse response
8
1
4
1
8
100)( −−=nh . Determine
and plot its frequency response )(
H. What kind of filter is this?
b. Create its circularly symmetric equivalent, )(
H, where 22 YXωωω += . Plot this
using Matlab’s mesh command.
c. Determine h(n,m), the 2D impulse response for the circularly symmetric filter.
d. Extract the central 7x7 part to make the truncated filter hT(n,m). Print or record these
values so that they can be graded.
e. Determine or calculate the frequency response ),(
Hωω and plot using mesh.
f. Compare H and HT using contour. Use at least 20 contour lines. Do the contours
agree? Why or why not?
g. Plot the central line through both H and HT. Do these agree?