

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 2 for the cmsc 426 course, focusing on 1d signal processing and edge detection using gaussian filters. Students are required to write functions for producing gaussian kernels, convolving signals with kernels, and creating 1d edge detectors. They will also analyze edge detection in images and explore the effects of different parameters.
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Due: Tuesday, March 4, 2003, 11:00, at the start of class. Email all Matlab code to the TA before 11:00 also.
Readings: Forsyth & Ponce: Chapters 7 and 8.
with A>0.)
b) 10 points Write a function to convolve a signal with a kernel in 1D. Test it by convolving a Gaussian with itself 2 and 3 times. Plot both. Turn in the plots.
c) 20 points Write a 1D edge detector. This should take 2 parameters, the amount of smoothing and a threshold on the strength of the edge. Test it by finding the edges in the following 1D image. I = [zeros(1,50), .9ones(1,10), zeros(1,10), .6ones(1,40), zeros(1,50)].
d) 20 points Use a very low threshold, which should work since there’s no noise. For sigma = .5, 1, 1.5, 2, 2.5, 3, … 25 determine the location of the edges in image I (from part 2c). Plot them in a 2D picture, where each row shows the edges detected for a different sigma. Turn in the plot.
e) 20 points Form and turn in the same plot, this time adding Gaussian noise to the image with a standard deviation of 1 (see function randn ).
For each image, turn in the image, the edges found using default parameters, and edges with the best hand-chosen parameters with points labeled. List the parameters you used. Also turn in your explanation for why any failures occurred.
, sin 2
sin 2 , cos 2
cos 2 , sin
sin , cos
cos
θ
θ
θ
θ
θ
θ
θ
θ
Hint: you are free to place k anywhere in the interval 0 to 2pi. Put it somewhere that will make your life easier.