Tracking Feature Windows
COMPSCI 527 — Computer Vision
COMPSCI 527 — Computer Vision Tracking Feature Windows 1 / 19Tracking Feature Windows COMPSCI 527 Computer Vision COMPSCI 527 - - PowerPoint PPT Presentation
Tracking Feature Windows COMPSCI 527 Computer Vision COMPSCI 527 Computer Vision Tracking Feature Windows 1 / 19 Outline 1 Local Motion Estimation 2 Window Tracking 3 The Lucas-Kanade Tracker 4 Good Features to Track COMPSCI 527
Tracking Feature Windows
COMPSCI 527 — Computer Vision
COMPSCI 527 — Computer Vision Tracking Feature Windows 1 / 19Outline
1 Local Motion Estimation 2 Window Tracking 3 The Lucas-Kanade Tracker 4 Good Features to Track
COMPSCI 527 — Computer Vision Tracking Feature Windows 2 / 19Motion Estimation
same scene
corresponding points are small (more on this later)
scalar equation in the two unknowns in d(x)
vectors d simultaneously, under an additional constraint that relates them
COMPSCI 527 — Computer Vision Tracking Feature Windows 3 / 19Local Estimation Methods
space
x is assumed to be constant (extreme local smoothness)
in the window
equations as much as possible (in the LSE sense)
methods
COMPSCI 527 — Computer Vision Tracking Feature Windows 4 / 19Key Questions
tracking method works well”
Window Tracking
square window W(xf) of side-length 2h + 1 centered at xf, what are the coordinates xg = xf + d∗(xf) of the corresponding window’s center in image g?
f
General Window Tracking Strategy
window in g with the loss L(xf, d) = X
x
[g(x + d) f(x)]2 w(x xf)
d∗(xf) = arg mind∈R L(xf, d)
s
m
Obvious Failure Points
(Less dramatic cases arise as well)
(We’ll come back to this later)
COMPSCI 527 — Computer Vision Tracking Feature Windows 8 / 1970
A Softer Window
w(x) / ( e
1 2( kxk σ ) 2if |x1| h and |x2| h
x[g(x + d) f(x)]2 w(x xf)
depends more on what’s around the window center
O
How to Minimize L(xf, d)?
How to Minimize L(xf, d)?
method for faster convergence
L(d) = P
x[g(x + d) f(x)]2 w(x xf)
(omitted xf from arguments of L for simplicity)
and computing a Hessian would require computing second-order derivatives of an image, which is available
sa
The Lucas-Kanade Tracker, 1981
L(d) = P
x[g(x + d) f(x)]2 w(x xf),
linearize g(x + d) ⇡ g(x) + [rg(x)]Td
closed form
since d appears linearly
is called the Newton-Raphson method
COMPSCI 527 — Computer Vision Tracking Feature Windows 12 / 19Lucas-Kanade Derivation
minimizing the following over s (with d0 = 0): L(dt + s) = P
x[g(x + dt + s) f(x)]2 w(x xf)
def
= g(x + dt + s) so that gt(x + s) ⇡ gt(x) + [rgt(x)]Ts (linearization) and L(dt + s) = X
x
[gt(x + s) f(x)]2 w(x xf) ⇡ X
x
[gt(x) + [rgt(x)]Ts f(x)]2 w(x xf) , a quadratic function of s
COMPSCI 527 — Computer Vision Tracking Feature Windows 13 / 19do
f
d
AT 5
O
O
Lucas-Kanade Derivation, Cont’d
L(dt + s) ⇡ P
x[gt(x) + [rgt(x)]Ts f(x)]2 w(x xf) is
rL(dt+s) ⇡ 2 P
x rgt(x){gt(x)+[rgt(x)]Tsf(x)} w(xxf)
q0geE IfE
gtc
w E xf
b
The Core System of Lucas-Kanade
Linear, 2 ⇥ 2 system As = b where A = X
x
rgt(x)[rgt(x)]T w(x xf) and b = X
x
rgt(x)[f(x) gt(x)] w(x xf) .
t st
COMPSCI 527 — Computer Vision Tracking Feature Windows 15 / 19GRAM MATRIX
A is 2 2
b is 2 1
2772
gtEHgftdi.is
O O
s A 5
Good Features to Track
A = P
x rgt(x)[rgt(x)]T w(x xf)
def
= g(x + dt + s)
Af(xf)
def
= P
x rf(x)[rf(x)]T w(x xf)
f
g
Examples of Degenerate Af(xf)
rf(x) = g1(x)
rf(x)[rf(x)]T = γ11(x)
x rf(x)[rf(x)]T w(x xf) =
a11(xf)
Feature Selection Algorithm
(eigenvalues of 2 ⇥ 2 matrix can be computed in closed form)
x with highest λmin
x
(video) COMPSCI 527 — Computer Vision Tracking Feature Windows 18 / 19What if Motion is Large?
COMPSCI 527 — Computer Vision Tracking Feature Windows 19 / 19