Computer Vision Assignment 4: Optical Flow, Spline Interpolation, Pairwise Clustering - Pr, Assignments of Computer Science

Assignment 4 for the computer vision course (cse252) taught by prof. Serge belongie at ucsd. The assignment covers three topics: optical flow using the lucas-kanade algorithm, spline interpolation, and pairwise clustering. Students are required to implement the lucas-kanade algorithm, prove constraints for cubic spline functions, reproduce interpolated grid points from bookstein's paper, and apply normalized cuts for clustering.

Typology: Assignments

Pre 2010

Uploaded on 03/28/2010

koofers-user-yzt
koofers-user-yzt 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSE252 Computer Vision Assignment #4
Instructor: Prof. Serge Belongie.
http://www-cse.ucsd.edu/classes/sp03/cse252
Target Due Date: Tue. May 27, 2003.
1. Optical Flow.
(a) Implement the Lucas-Kanade optical flow algorithm. Demonstrate it on the translating
square sequence in frames.mat.
Matlab hints: quiver.
(b) Use the eigenvalues of ATAto identify the regions with reliable optical flow.
2. Spline Interpolation.
(a) Let U(x) = |x|3denote the cubic spline, which is the 1D counterpart to the thin plate
spline (TPS). Prove that in order for the function
f(x) = a+bx +
n
X
i=1
wiU(xxi)
to have a square integrable second derivative, the following constraints must be satisfied:
n
X
i=1
wi= 0 and
n
X
i=1
wixi= 0.
(b) Reproduce Fig. 4 in Bookstein’s 1989 PAMI paper. You do not need to reproduce the
principal warps part (i.e. the signed segments or the little table), but you do need to show
the interpolated grid points and compute the integral bending norm.
(c) Repeat the previous step using regularization, i.e. replace Kby K+λI , and demonstrate
the effect of varying λ.
3. Pairwise Clustering.
(a) Run the script make_pointset.m to produce the p ointset shown in class consisting of
an annulus and an off-center clump. Calculate and display the affinity matrix using the
Gaussian weighted Euclidean distance wij =e(dij)2.
(b) Implement the Normalized Cuts algorithm to partition this pointset into two clusters.
Run your algorithm with several choices of αand discuss the resulting partitions.
1

Partial preview of the text

Download Computer Vision Assignment 4: Optical Flow, Spline Interpolation, Pairwise Clustering - Pr and more Assignments Computer Science in PDF only on Docsity!

CSE252 – Computer Vision – Assignment # Instructor: Prof. Serge Belongie. http://www-cse.ucsd.edu/classes/sp03/cse Target Due Date: Tue. May 27, 2003.

  1. Optical Flow.

(a) Implement the Lucas-Kanade optical flow algorithm. Demonstrate it on the translating square sequence in frames.mat. Matlab hints: quiver. (b) Use the eigenvalues of AT^ A to identify the regions with reliable optical flow.

  1. Spline Interpolation.

(a) Let U (x) = |x|^3 denote the cubic spline, which is the 1D counterpart to the thin plate spline (TPS). Prove that in order for the function

f (x) = a + bx +

∑^ n

i=

wiU (x − xi)

to have a square integrable second derivative, the following constraints must be satisfied:

∑^ n

i=

wi = 0 and

∑^ n

i=

wixi = 0.

(b) Reproduce Fig. 4 in Bookstein’s 1989 PAMI paper. You do not need to reproduce the principal warps part (i.e. the signed segments or the little table), but you do need to show the interpolated grid points and compute the integral bending norm. (c) Repeat the previous step using regularization, i.e. replace K by K + λI, and demonstrate the effect of varying λ.

  1. Pairwise Clustering.

(a) Run the script make_pointset.m to produce the pointset shown in class consisting of an annulus and an off-center clump. Calculate and display the affinity matrix using the Gaussian weighted Euclidean distance wij = e−(dij^ /α)

2 . (b) Implement the Normalized Cuts algorithm to partition this pointset into two clusters. Run your algorithm with several choices of α and discuss the resulting partitions.