Louisiana State University Department of Electrical and Computer Engineering Spring 2008

advertisement
Louisiana State University
Department of Electrical and Computer Engineering
EE 4780 – Introduction to Computer Vision
Spring 2008
Problem Set 1
Assigned: January 27, 2008
Due: February 4, 2008. Email your files to the TA, Ming Zhang [[email protected]].
Problem 1: Write a Matlab m-file that will do the following:
1) Prompt the user to write an image name.
2) Read the image and display it; let the user to crop a part of the image.
3) Apply histogram equalization to the selected part. (You may use the built-in Matlab
function.) Display the selected part and the histogram-equalized part on the same figure.
Name your file as test1.m.
Problem 2: Let x(t) and y(t) be continuous signals, defined as
x(t) = t for 0 < t ≤ 1
x(t) = 1-t for 1 < t ≤ 2
x(t) = 0 elsewhere
y(t) = t2 for 0 < t ≤ 1
y(t) = 1 for 1 < t ≤ 2
y(t) = 0 elsewhere
Use MATLAB to find the convolution of x(t) and y(t). Plot the inputs and output on the
same figure.
Name your file as test2.m.
Download