1
1
6.891
Computer Vision and Applications
- Prof. Trevor. Darrell
Lecture 11: Model-based vision
- Hypothesize and test
- Interpretation Trees
- Alignment
- Pose Clustering
- Geometric Hashing
Readings: F&P Ch 18.1-18.5
2
Last time
Projective SFM – Projective spaces – Cross ratio – Factorization algorithm – Euclidean upgrade
3
Projective transformations
A projectivity is an invertible mapping h from P2 to itself such that three points x1,x2,x3 lie on the same line if and
- nly if h(x1),h(x2),h(x3) do.
Definition: A mapping h:P2→P2 is a projectivity if and only if there exist a non-singular 3x3 matrix H such that for any point in P2 reprented by a vector x it is true that h(x)=Hx Theorem: Definition: Projective transformation
=
3 2 1 33 32 31 23 22 21 13 12 11 3 2 1
' ' ' x x x h h h h h h h h h x x x x x' H =
- r
8DOF
projectivity=collineation=projective transformation=homography
[F&P, www.cs.unc.edu/~marc/mvg]
4
The value of this cross ratio is independent of the intersecting line or plane:
[F&P]
5
Two-frame reconstruction
(i) Compute F from correspondences (ii) Compute camera matrices from F (iii)Compute 3D point for each pair of corresponding points
computation of F use x‘iFxi=0 equations, linear in coeff. F 8 points (linear), 7 points (non-linear), 8+ (least-squares) (more on this next class) computation of camera matrices triangulation compute intersection of two backprojected rays Possible choice:
] e' | F ] [[e' P' 0] | [I P
×
= =
[www.cs.unc.edu/~marc/mvg]
6
Perspective factorization
All equations can be collected for all i as where, with:
PM m = = Λ Λ Λ =
m n n
P P P P m m m m ... , ...
2 1 2 2 1 1
m are known, but Λi,P and M are unknown…
Observe that PM is a product of a 3mx4 matrix and a 4xn matrix, i.e. it is a rank 4 matrix
[www.cs.unc.edu/~marc/mvg]
[ ] [ ] ( )
im i i i m im i i i
m m m λ ,..., λ , λ diag M ,..., M , M , ,..., ,
2 1 2 1 2 1
= Λ = = M m m j m i
j i ij ij
,..., 1 , ,..., 1 , M m λ = = = P