Title: Igert Computer Vision Lab
1Igert Computer Vision Lab
- Adapted from Serge Belongie and Josh Wills
- TAs Adam Bickett, Paul Ruvolo,
- Cynthia Taylor, Matt Tong
- Corner Detection
- Feature tracking
- Recovery of 3D structure from motion
2Corner Detection
- Sharp change in the angle of the gradient
- Corner is point of intersection of the tangents
3Corner Detection
- In real images, corners will look more like this.
- Estimate point of intersection of the tangents
4Corner Detection
Want the point x0 with min perpendicular distance
to all the tangent lines through the points x in
the 5x5 neighborhood.
Dx(x) describes the distance from x to the
tangent line lx multiplied by the gradient
magnitude.
5Least squares solution
Solve by taking derivative and setting 0.
6Least Squares Solution
X0 contains subpixel coordinates of the corner
X(1) X(2)
b
7Least Squares Solution(another way to think
about it)
M x y MTM x MTy
Linear system of equations over all x in 5x5
neighborhood. Solve using standard regression
x
A b
8A-1 only exists here
Size of the 2nd eigenvalue of A measures
cornerness
9(No Transcript)
10Feature Matching / Tracking
- Greedy Nearest Neighbor Feature Matching
- Optic Flow (Horn Schunk)
- Lucas-Kanade solution to the aperture problem
11Greedy Nearest Neighbor Feature Matching
- Run interest point operator (e.g. Corner
detector) on image pair. - Compute distance matrix containing distances
between each corner detected in image 1 and image
2. - Find closest corner Cj in image 2 to corner 1 in
image 1. Remove Cj from future comparisons and
repeat for corner 2 of image 1.
12Optic Flow
- We explain I2 fully just by moving the points in
I1 around. No brightness added or lost
(Brightness constraint).
- We get rid of the subscript and define the
brightness I as a function of time t and the
point positions x(t).
13Optic Flow
- We get a first approximation to
- using the Taylor series expansion. i.e.
start with I(t) and move in the direction of the
first derivative.
- Still using brightness constraint ( I(x(t),t)
RHS ) the fist term cancels
14Optic Flow
Velocity in x direction
Velocity in y direction
Spatial Derivative x direction
Temporal derivative
Spatial Derivative y direction
15- One equation for two unknowns
16Aperture problem
Want to estimate motion in neighborhoods
containing corners
17Aperture Problem Demo
- http//psylux.psych.tu-dresden.de/i1/kaw/diverses
20Material/www.illusionworks.com/html/barber_pole.
html
18Lucas-Kanade Neighborhood Solution
We now have NxN equations for 2 unknowns. Solve
using standard least-squares regression.
19Standard least-squares regression
u pinv(A)b
20Note
ATA is the second-moment matrix seen in the
corner detector. As with corner detection the
solution is unique only when ATA is rank 2. i.e.
only where there are corners in the neighborhood.
21Recovering 3D structure from matched points
(Structure From Motion)
22Orthographic camera model
23The General Problem
- 3 frames of at least 4 points, correspondences
known.
(xij,yij) are known. Position of point j in frame
i. Want T Translation of the image origin
from the world origin R Rotation of the image
axes S Scale of the image axes
24Translate to object centered coordinates
Center the coordinates in each frame
Now all the coordinates are wrt the centroid of
the object
25Factorize W RS
i1 --- i2 --- j1 --- j2 ---
Define
(2N x 3)
We know W and want to find RS. Factorize W into
RS using SVD.
26Factorize W RS
- Apply SVD and take the first 3 columns
i1 --- i2 --- j1 --- j2 ---
The columns of R are orthogonal, but want rows to
contain the image axes ii ji.
27Enforce Constraints on R
?
?
Find Q such that
Then
(Solve for Q using methods for quadratic system
of equations)