multiview geometry and stereopsis. inputs: two images of a scene (taken from 2 viewpoints). output:...

22
Multiview Geometry and Stereops

Upload: catherine-carter

Post on 03-Jan-2016

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Multiview Geometry and Stereopsis

Page 2: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Inputs: two images of a scene (taken from 2 viewpoints) . Output: Depth map.

Inputs: multiple images of a scene. Output: 3D model.

Page 3: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Stereopsis

Parallax

Wikipedia

Page 4: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Compute Correspondences

Page 5: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Compute Correspondences

Page 6: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Correspondences

Geometric Constraints (given by epipolar geometry) make this 1D search problem instead of 2D.

Page 7: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Reconstruction / Triangulation

Page 8: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Reconstruction

• Linear Method: find P such that

• Non-Linear Method: find Q minimizing

Page 9: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Geometry of Two-View

• Epipolar geometry– Essential matrix– Fundamental matrix

Page 10: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Stereopsis Define a (linear) function F(p1, p2) such that it is zero if p1 and p2 are corresponding points in two images.

Page 11: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

• Epipolar plane defined by P, O, O’, p and p’

• Epipoles e, e’

• Epipolar lines l, l’

• Baseline OO’

Epipolar geometry

p’ lies on l’ where the epipolar plane intersects with image plane π’

l’ is epipolar line associated with p and intersects baseline OO’ on e’

e’ is the projection of O observed from O’

Page 12: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

• Potential matches for p have to lie on the corresponding epipolar line l’

• Potential matches for p’ have to lie on the corresponding epipolar line l

Epipolar constraint

Page 13: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Epipolar Constraint: Calibrated Case

Essential Matrix(Longuet-Higgins, 1981)3 ×3 skew-symmetric

matrix: rank=2

O’P’ = t + R p’

Page 14: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

• E is defined by 5 parameters (scaling not relevant)

• E p’ is the epipolar line associated with p’

• E T p is the epipolar line associated with p

• Can write as l .p = 0

• The point p lies on the epipolar line associated with the vectorE p’

Properties of essential matrix

Page 15: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Properties of essential matrix

• E is defined by 5 parameters (scaling not relevant)

• E e’=0 and ETe=0 (E e’=-RT[tx]e=0 )

• E is singular• E has two equal non-zero singular values

Page 16: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Epipolar Constraint: Uncalibrated Case

Fundamental Matrix(Faugeras and Luong, 1992)are normalized image coordinate pp ˆ,ˆ

Page 17: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

• F has rank 2 and is defined by 7 parameters

• F p’ is the epipolar line associated with p’ in the 1st image

• F T p is the epipolar line associated with p in the 2nd image

• F e’=0 and F T e=0

• F is singular

Properties of fundamental matrix

Page 18: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Weak calibration

• In theory: – E can be estimated with 5 point

correspondences– F can be estimated with 7 point

correspondences– Some methods estimate E and F matrices from

a minimal number of parameters

• Estimating epipolar geometry from a redundant set of point correspondences with unknown intrinsic parameters

Page 19: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

The Eight-Point Algorithm (Longuet-Higgins, 1981)

|F | =1.

Minimize:

under the constraint2

Homogenous system, set F33=1

Page 20: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Enforcing Rank 2 Constraint

• Singular Value Decomposition of F (svd in MATLAB)

Sigma is diagonal (its (non-negative) values are called singular values of F). U, V are orthogonal.

Set the smallest singular value to zero.

Page 21: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

The Normalized Eight-Point Algorithm (Hartley, 1995)

• Estimation of transformation parameters suffer from poor numerical condition problem

• Center the image data at the origin, and scale it so themean squared distance between the origin and the data points is 2 pixels: q = T p , q’ = T’ p’

• Use the eight-point algorithm to compute F from thepoints q and q’

• Enforce the rank-2 constraint (use singular value decomposition)

• Output T F T’

T

Page 22: Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:

Weak calibration experiment

a) Linear Least Squares

b) Hartley