Title: Computer Vision: Vision and Modeling
1Computer Vision Vision and Modeling
2Computer Vision Vision and Modeling
- Lucas-Kanade Extensions
- Support Maps / Layers
- Robust Norm, Layered Motion, Background
Subtraction, Color Layers - Statistical Models (ForsythPonce Chap. 6,
DudaHartStork Chap. 1-5) - - Bayesian Decision Theory
- - Density Estimation
3A Different View of Lucas-Kanade
2
E S ( )
I (i) - I(i) v
D
i
t
i
2
I (1) - I(1) v
D
1
t
High Gradient has Higher weight
I (2) - I(2) v
D
2
t
...
D
I (n) - I(n) v
n
t
? White board
4Constrained Optimization
2
I (1) - I(1) v
D
1
t
I (2) - I(2) v
D
2
t
...
D
I (n) - I(n) v
n
t
5Constraints Subspaces
Constrain
-
V
V
E(V)
Analytically derived Affine / Twist/Exponential
Map
Learned Linear/non-linear Sub-Spaces
6Motion Constraints
- Optical Flow local constraints
- Region Layers rigid/affine constraints
- Articulated kinematic chain constraints
- Nonrigid implicit / learned constraints
7Constrained Function Minimization
Constrain
-
V
V
2
I (1) - I(1) v
D
1
t
V M( q )
E(V)
I (2) - I(2) v
D
2
t
...
D
I (n) - I(n) v
n
t
82D Translation Lucas-Kanade
2D
Constrain
-
V
V
2
I (1) - I(1) v
D
dx, dy
1
t
V
E(V)
dx, dy
I (2) - I(2) v
D
2
t
...
...
dx, dy
D
I (n) - I(n) v
n
t
92D Affine Bergen et al, Shi-Tomasi
6D
Constrain
-
V
V
2
I (1) - I(1) v
D
1
t
dx
x
v
E(V)
i
I (2) - I(2) v
D
dy
y
i
2
t
i
...
D
I (n) - I(n) v
n
t
10Affine Extension
- Affine Motion Model
- 2D Translation
- 2D Rotation
- Scale in X / Y
- Shear
Matlab demo -gt
11Affine Extension
Affine Motion Model -gt Lucas-Kanade
Matlab demo -gt
122D Affine Bergen et al, Shi-Tomasi
6D
Constrain
-
V
V
13K-DOF Models
K-DOF
Constrain
-
V
V
2
I (1) - I(1) v
D
1
t
V M( q )
E(V)
I (2) - I(2) v
D
2
t
...
D
I (n) - I(n) v
n
t
14Quadratic Error Norm (SSD) ???
Constrain
-
V
V
2
I (1) - I(1) v
D
1
t
V M( q )
E(V)
I (2) - I(2) v
D
2
t
...
D
I (n) - I(n) v
n
t
? White board (outliers?)
15Support Maps / Layers
- L2 Norm vs Robust Norm
- Dangers of least square fitting
L2
D
16Support Maps / Layers
- L2 Norm vs Robust Norm
- Dangers of least square fitting
L2
robust
D
D
17Support Maps / Layers
- Robust Norm -- good for outliers
- nonlinear optimization
robust
D
18Support Maps / Layers
Add weights to each pixel eq (white board)
19Support Maps / Layers
- how to compute weights ?
- -gt previous iteration how good does G-warp
matches F ? - -gt probabilistic distance Gaussian
20Error Norms / Optimization Techniques
SSD Lucas-Kanade (1981) Newton-Raphson SSD
Bergen-et al. (1992) Coarse-to-Fine SSD
Shi-Tomasi (1994) Good Features Robust Norm
Jepson-Black (1993) EM Robust Norm
Ayer-Sawhney (1995) EM MRF MAP
Weiss-Adelson (1996) EM MRF ML/MAP
Bregler-Malik (1998) Twists / EM ML/MAP
Irani (Ananadan) (2000) SVD
21Computer Vision Vision and Modeling
- Lucas-Kanade Extensions
- Support Maps / Layers
- Robust Norm, Layered Motion, Background
Subtraction, Color Layers - Statistical Models (ForsythPonce Chap. 6,
DudaHartStork Chap. 1-5) - - Bayesian Decision Theory
- - Density Estimation
22Support Maps / Layers
23Support Maps / Layers
- More General Layered Motion (Jepson/Black,
Weiss/Adelson, )
24Support Maps / Layers
- Special Cases of Layered Motion
- - Background substraction
- - Outlier rejection ( robust norm)
- - Simplest Case Each Layer has uniform color
25Support Maps / Layers
P(skin F(x,y))
26Computer Vision Vision and Modeling
- Lucas-Kanade Extensions
- Support Maps / Layers
- Robust Norm, Layered Motion, Background
Subtraction, Color Layers - Statistical Models (DudaHartStork Chap. 1-5)
- - Bayesian Decision Theory
- - Density Estimation
27Statistical Models / Probability Theory
- Statistical Models Represent Uncertainty and
Variability - Probability Theory Proper mechanism for
Uncertainty - Basic Facts ? White Board
28General Performance Criteria
- Optimal Bayes
- With Applications to Classification
29Bayes Decision Theory
- Example Character Recognition
- Goal Classify new character in a way as to
- minimize probability of misclassification
30Bayes Decision Theory
?
P(a)0.75 P(b)0.25
a a b a b a a b a b a a a a b a a b a a b a a a a
b b a b a b a a b a a
31Bayes Decision Theory
- 2nd Concept Conditional Probability
black pixel
black pixel
32Bayes Decision Theory
X7
33Bayes Decision Theory
X8
34Bayes Decision Theory
Well P(a)0.75 P(b)0.25
X8
35Bayes Decision Theory
P(a)0.75 P(b)0.25
X9
36Bayes Decision Theory
37Bayes Decision Theory
38Bayes Decision Theory
Likelihood x prior
Posterior
Normalization factor
39Bayes Decision Theory
40Bayes Decision Theory
41Bayes Decision Theory
Xgt8 class b
42Bayes Decision Theory
- Goal Classify new character in a way as to
- minimize probability of misclassification
- Decision boundaries
-
43Bayes Decision Theory
- Goal Classify new character in a way as to
- minimize probability of misclassification
- Decision boundaries
-
44Bayes Decision Theory
R3
R1
R2
45Bayes Decision Theory
- Goal minimize probability of misclassification
-
46Bayes Decision Theory
- Goal minimize probability of misclassification
-
47Bayes Decision Theory
- Goal minimize probability of misclassification
-
48Bayes Decision Theory
- Goal minimize probability of misclassification
-
49Bayes Decision Theory
- Discriminant functions
- class membership solely based on relative sizes
- Reformulate classification process in terms of
- discriminant functions
- x is assigned to Ck if
50Bayes Decision Theory
- Discriminant function examples
51Bayes Decision Theory
- Discriminant function examples 2-class problem
52Bayes Decision Theory
53Bayes Decision Theory
- Why is such a big
deal ? - Example 1 Speech Recognition
-
FFT melscale bank
x
y e /ah/, /eh/, .. /uh/
apple, ...,zebra
54Bayes Decision Theory
- Why is such a big
deal ? - Example 1 Speech Recognition
-
/t/
/t/
/t/
/t/
FFT melscale bank
/aal/
/aol/
/owl/
55Bayes Decision Theory
- Why is such a big
deal ? - Example 1 Speech Recognition
-
How do Humans do it?
56Bayes Decision Theory
- Why is such a big
deal ? - Example 1 Speech Recognition
-
This machine can recognize speech ??
57Bayes Decision Theory
- Why is such a big
deal ? - Example 1 Speech Recognition
-
This machine can wreck a nice beach !!
58Bayes Decision Theory
- Why is such a big
deal ? - Example 1 Speech Recognition
-
FFT melscale bank
x
y
59Bayes Decision Theory
- Why is such a big
deal ? - Example 1 Speech Recognition
-
Language Model
FFT melscale bank
x
y
P(wreck a nice beach) 0.001 P(recognize
speech) 0.02
60Bayes Decision Theory
- Why is such a big
deal ? - Example 2 Computer Vision
-
Low-Level Image Measurements
High-Level Model Knowledge
61Bayes
- Why is such a big
deal ? - Example 3 Curve Fitting
-
E bW ln p(xc) ln p(c)
62Bayes
- Why is such a big
deal ? - Example 4 Snake Tracking
-
E bW ln p(xc) ln p(c)
63Computer Vision Vision and Modeling
- Lucas-Kanade Extensions
- Support Maps / Layers
- Robust Norm, Layered Motion, Background
Subtraction, Color Layers - Statistical Models (ForsythPonce Chap. 6,
DudaHartStork Chap. 1-5) - - Bayesian Decision Theory
- - Density Estimation
64Probability Density Estimation
?
Collect Data x1,x2,x3,x4,x5,...
x
Estimate
x
65Probability Density Estimation
- Parametric Representations
- Non-Parametric Representations
- Mixture Models
66Probability Density Estimation
- Parametric Representations
- - Normal Distribution (Gaussian)
- - Maximum Likelihood
- - Bayesian Learning
67Normal Distribution
68Multivariate Normal Distribution
69Multivariate Normal Distribution
- Why Gaussian ?
- Simple analytical properties
- - linear transformations of Gaussians are
Gaussian - - marginal and conditional densities of
Gaussians are Gaussian - - any moment of Gaussian densities is an
explicit function of m,s - Good Model of Nature
- - Central Limit Theorem Mean of M random
variables is distributed - normally in the limit.
70Multivariate Normal Distribution
Discriminant functions
71Multivariate Normal Distribution
Discriminant functions
equal priors cov Mahalanobis dist.
72Multivariate Normal Distribution
How to learn it from examples
- Maximum Likelihood
- Bayesian Learning
73Maximum Likelihood
How to learn density from examples
?
x
?
x
74Maximum Likelihood
Likelihood that density model q generated data X
75Maximum Likelihood
Likelihood that density model q generated data X
76Maximum Likelihood
Learning optimizing (maximizing likelihood /
minimizing E)
77Maximum Likelihood
Maximum Likelihood for Gaussian density
Close-form solution