Tracking CS 4495 Computer Vision – A. Bobick
Aaron Bobick School of Interactive Computing
CS 4495 Computer Vision Tracking 1- Kalman,Gaussian Aaron Bobick - - PowerPoint PPT Presentation
Tracking CS 4495 Computer Vision A. Bobick CS 4495 Computer Vision Tracking 1- Kalman,Gaussian Aaron Bobick School of Interactive Computing Tracking CS 4495 Computer Vision A. Bobick Administrivia PS5 will be out this Thurs
Tracking CS 4495 Computer Vision – A. Bobick
Aaron Bobick School of Interactive Computing
Tracking CS 4495 Computer Vision – A. Bobick
Tracking CS 4495 Computer Vision – A. Bobick
but mostly from Svetlana Lazebnik
Tracking CS 4495 Computer Vision – A. Bobick
http://www.youtube.com/watch?v=InqV34BcheM
Tracking CS 4495 Computer Vision – A. Bobick
a pair of images
reconstruct its path by simply “following the arrows”
Tracking CS 4495 Computer Vision – A. Bobick
Tracking CS 4495 Computer Vision – A. Bobick
area in next image – just like stereo matching!
Kanade to get sub-pixel estimate (think of the template as the coarse level of the pyramid).
Tracking CS 4495 Computer Vision – A. Bobick
in the first frame where it’s visible
hoc rules tailored to the context.
Tracking CS 4495 Computer Vision – A. Bobick
matrix – you’ve seen this now twice!
reliably
translation model
smaller neighborhoods
first observed instance of the feature
Tracking CS 4495 Computer Vision – A. Bobick
Tracking CS 4495 Computer Vision – A. Bobick
where objects will occur in next frame, even before seeing the image
trajectory smoothness
Tracking CS 4495 Computer Vision – A. Bobick
about, denoted X.
from the underlying state, denoted Y.
get a new observation Yt.
Tracking CS 4495 Computer Vision – A. Bobick
measurement Belief: prediction Corrected prediction Belief: prediction
Time t Time t+1
Tracking CS 4495 Computer Vision – A. Bobick
measurements?
1 1
− − =
t t t
Tracking CS 4495 Computer Vision – A. Bobick
measurements?
from prediction and measurements
1 1
− − =
t t t
t t t t t
− −
1 1
Tracking CS 4495 Computer Vision – A. Bobick
measurements?
from prediction and measurements (posterior)
posterior distribution of state given measurements across time
1 1
− − =
t t t
t t t t t
− −
1 1
Tracking CS 4495 Computer Vision – A. Bobick
1 1
− −
t t t t
dynamics model
Tracking CS 4495 Computer Vision – A. Bobick
t t t t t t
− −
1 1
1 1
− −
t t t t
dynamics model
Tracking CS 4495 Computer Vision – A. Bobick
t t t t t t
− −
1 1
1 1
− −
t t t t
dynamics model
X1 X2 Y1 Y2 Xt Yt
Hmmm….
Tracking CS 4495 Computer Vision – A. Bobick
evidence: P(X0)
Tracking CS 4495 Computer Vision – A. Bobick
evidence: P(X0)
) ( ) | ( ) ( ) ( ) | ( ) | ( X P X y P y P X P X y P y Y X P ∝ = =
Tracking CS 4495 Computer Vision – A. Bobick
given
1
− t t
1 1
− − t t
Tracking CS 4495 Computer Vision – A. Bobick
given
1
− t t
1 1
− − t t
1 1 1 1 1 1 1 1 1 1 1 1
− − − − − − − − − − − −
t t t t t t t t t t t t t t t
1
− t t
Tracking CS 4495 Computer Vision – A. Bobick
given
1
− t t
1 1
− − t t
1 1 1 1 1 1 1 1 1 1 1 1
− − − − − − − − − − − −
t t t t t t t t t t t t t t t
1
− t t
Tracking CS 4495 Computer Vision – A. Bobick
given
1
− t t
1 1
− − t t
1 1 1 1 1 1 1 1 1 1 1 1
− − − − − − − − − − − −
t t t t t t t t t t t t t t t
1
− t t
Tracking CS 4495 Computer Vision – A. Bobick
given predicted value and
t t
0
1
− t t
t
Tracking CS 4495 Computer Vision – A. Bobick
given predicted value and
1
− t t
t t
0
− − − − − − −
t t t t t t t t t t t t t t t t t t t t t t
1 1 1 1 1 1 1
t t
0
t
Tracking CS 4495 Computer Vision – A. Bobick
given predicted value and
t t
0
− − − − − − −
t t t t t t t t t t t t t t t t t t t t t t
1 1 1 1 1 1 1
1
− t t
t t
0
t
Tracking CS 4495 Computer Vision – A. Bobick
given predicted value and
t t
0
− − − − − − −
t t t t t t t t t t t t t t t t t t t t t t
1 1 1 1 1 1 1
1
− t t
t t
0
t
Really a normalization
Tracking CS 4495 Computer Vision – A. Bobick
1 1 1 1 1
− − − − −
t t t t t t t
dynamics model corrected estimate from previous step
Tracking CS 4495 Computer Vision – A. Bobick
1 1 1 1 1
− − − − −
t t t t t t t
− −
t t t t t t t t t t t
1 1
dynamics model corrected estimate from previous step
model predicted estimate
Tracking CS 4495 Computer Vision – A. Bobick
plus Gaussian noise
state plus Gaussian noise
t
t
Tracking CS 4495 Computer Vision – A. Bobick
− − − 1 1 1
t t t t t
t t t
t t t t t
− − − 1 1 1
(greek letters denote noise terms)
t t t t
Tracking CS 4495 Computer Vision – A. Bobick
t t t t t
ζ ξ ε + = + ∆ + = + ∆ + =
− − − − − 1 1 1 1 1
) ( ) (
t t t t t t t t
a a a t v v v t p p
=
t t t t
a v p x
noise a v p t t noise x D x
t t t t t t
+ ∆ ∆ = + =
− − − − 1 1 1 1
1 1 1
(greek letters denote noise terms)
Tracking CS 4495 Computer Vision – A. Bobick
noise
form)
Tracking CS 4495 Computer Vision – A. Bobick
Tracking CS 4495 Computer Vision – A. Bobick
1
− t t
t t
0
Predict Correct
Given corrected state from previous time step and all the measurements up to the current one, predict the distribution over the current step Given prediction of state and current measurement, update prediction of state
Time advances (from t–1 to t)
− − t t σ
Mean and std. dev.
+ + t t σ
Mean and std. dev.
Make measurement
Tracking CS 4495 Computer Vision – A. Bobick
with noise
2 1,
d t t
−
1 1 1 1 1
− − − − −
t t t t t t t
Tracking CS 4495 Computer Vision – A. Bobick
with noise
+ − − = 1 t t
2 1
− − −
t t t t
2 1 2 2
+ − −
t d t
2 1,
d t t
−
Tracking CS 4495 Computer Vision – A. Bobick
2
m t t
2 1
− − −
t t t t
− −
t t t t t t t t t t t
1 1
Tracking CS 4495 Computer Vision – A. Bobick
2
m t t
2 1
− − −
t t t t
2 0,
t t t t
+ +
Tracking CS 4495 Computer Vision – A. Bobick
2
m t t
2 1
− − −
t t t t
2
+ +
t t t t
2 2 2 2 2
− − − +
t m t t m t t
2 2 2 2 2 2
− − +
t m t m t
Tracking CS 4495 Computer Vision – A. Bobick
From:
based on variances!
2 2 2 2 2
− − − +
t m t t m t t
2 2 2 2 2 2
t m t t t m t
− − + −
Measurement guess of x Variance of x computed from the measurement Prediction of x Variance of prediction
Tracking CS 4495 Computer Vision – A. Bobick
− + = t t
2 = + t
2 2 2 2 2
− − − +
t m t t m t t
2 2 2 2 2 2
− − +
t m t m t
m
− t
t = +
2 = + t
Tracking CS 4495 Computer Vision – A. Bobick
State is 2d: position + velocity Measurement is 1d: position measurement s state time position
Tracking CS 4495 Computer Vision – A. Bobick
Kalman filter processing time
x measurement * predicted mean estimate + corrected mean estimate bars: variance estimates before and after measurements
position
Tracking CS 4495 Computer Vision – A. Bobick
Kalman filter processing time
x measurement * predicted mean estimate + corrected mean estimate bars: variance estimates before and after measurements
position
Tracking CS 4495 Computer Vision – A. Bobick
Kalman filter processing time
x measurement * predicted mean estimate + corrected mean estimate bars: variance estimates before and after measurements
position
Tracking CS 4495 Computer Vision – A. Bobick
Kalman filter processing time
x measurement * predicted mean estimate + corrected mean estimate bars: variance estimates before and after measurements
position
Tracking CS 4495 Computer Vision – A. Bobick
PREDICT CORRECT
+ − − = 1 t t t
x D x
t
d T t t t t
D D Σ + Σ = Σ
+ − − 1
− − +
t t t t t t
− +
t t t t
1 − − −
t
m T t t t T t t t
What if state vectors have more than one dimension? More weight on residual when measurement error covariance approaches 0.
Tracking CS 4495 Computer Vision – A. Bobick
Tracking CS 4495 Computer Vision – A. Bobick