CS 4501: Computer Vision
|
Matlab is available from ITC for computers connected to the UVa network (look here for details). You should also be able to run it remotely from any Unix workstation (you may find the -nodesktop option useful).
Read through any or all of the following for a basic introduction to Matlab
Work through the following tasks using an image of your choice. You do not need to submit any results, but make sure you are comfortable doing the following:
Note: if your version of Matlab doesn't have the rgb2gray function, download rgb2gray.m. Place this in your working directory, and it should be auto-loaded by Matlab.
matrix2 = matrix1(row_min:row_max,col_min:col_max);Indices in Matlab are 1-based (not 0-based as in C).
[var1, var2] = func(x)Hint #3: In Matlab, the number of rows is the first dimension and the number of columns is the second.
If you get stuck on any of these, please ask for help, either by contacting the instructor or by asking a colleague.
Test your alogrithm on images of your choosing, experimenting with
different values of the parameters sigma (the width of the Gaussian used
for smoothing), T_h (the "high" threshold), and T_l (the "low" threshold).
Also run your algorithm on the following images:
Test your algorithm on the building image above, and on
checker.jpg. (This is a picture of a
target used for camera calibration. Note the barrel distortion in
this lens.) Explore the effects of changing sigma (the width of the
Gaussian), the size of the neighborhood, and the threshold.
Experiment with heuristics for automatically determining the
thresholds to be used for each image. Some of these are mentioned in
Trucco and Verri, but feel free to be creative and come up with your
own.
This assignment is due Monday, February 14, 2011 at 11:55 PM EST.
Please see the general
notes on submitting your assignments, as well as the
late policy and the
collaboration policy.
Please submit:
Note that programming in Matlab is not an excuse to write unreadable code.
You are expected to use good programming style, including meaningful variable
names, a comment or three describing what the code is doing, etc. Also, all
images you submit should have been saved with the "imwrite" function - do
not submit screen captures of the image window.
2. Corner detector (35%)
Implement the variance-based corner detection algorithm, as described in
class and in Section 4.3 of Trucco and Verri. This consists of three
phases:
Hint: "help eig"
Hint: "help sortrows"
3. Extra credit
Submitting