CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of...

30
CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME, Johns Hopkins University http://www.eecs.berkeley.edu/~rvidal Adapted for use in CS 294-6 by Sastry and Yang Lecture 13. October 11 th , 2006

Transcript of CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of...

Page 1: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Geometry and Algebra of Multiple Views

Geometry and Algebra of Multiple Views

René VidalCenter for Imaging Science

BME, Johns Hopkins Universityhttp://www.eecs.berkeley.edu/~rvidal

Adapted for use in CS 294-6 by Sastry and YangLecture 13. October 11th, 2006

Page 2: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Two View GeometryTwo View Geometry

• From two views– Can recover motion: 8-point algorithm– Can recover structure: triangulation

• Why multiple views?– Get more robust estimate of structure: more data– No direct improvement for motion: more data & unknowns

Page 3: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Why Multiple Views?Why Multiple Views?

• Cases that cannot be solved with two views– Uncalibrated case: need at least three views– Line features: need at least three views

• Some practical problems with using two views– Small baseline: good tracking, poor motion estimates– Wide baseline: good motion estimates, poor

correspondences

• With multiple views one can– Track at high frame rate: tracking is easier– Estimate motion at low frame rate: throw away data

Page 4: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Problem FormulationProblem FormulationInput: Corresponding images (of “features”) in multiple images.Output: Camera motion, camera calibration, object structure.

measurements

unknowns

Page 5: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Multiframe SFM as an Optimization ProblemMultiframe SFM as an Optimization Problem

• Can we minimize the re-projection error?

– Number of unknowns = 3n + 6 (m-1) – 1– Number of equations = 2nm

• Very likely to converge to a local minima• Need to have a good initial estimate

measurements

unknowns

Page 6: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Using Geometry to Tackle the Optimization ProblemUsing Geometry to Tackle the Optimization Problem

• What are the basic relations among multiple images of a point/line?– Geometry and algebra

• How can I use all the images to reconstruct camera pose and scene structure?– Algorithm

• Examples– Synthetic data– Vision based landing of unmanned aerial vehicles

Page 7: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Multiple View Matrix for Point FeaturesMultiple View Matrix for Point Features

• WLOG choose frame 1 as reference

• Rank deficiency of Multiple View Matrix

(degenerate)

(generic)

Page 8: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Geometric Interpretation of Multiple View MatrixGeometric Interpretation of Multiple View Matrix

• Entries of Mp are normals to epipolar planes

• Rank constraint says normals must be parallel

Page 9: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Rank Conditions vs. Multifocal TensorsRank Conditions vs. Multifocal Tensors

• Other relationships among four or more views, e.g. quadrilinear constraints, are algebraically dependent!

Two views: epipolar constraint

Three views: trilinear constraints

Page 10: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Reconstruction Algorithm for Point FeaturesReconstruction Algorithm for Point Features

Given m images of n (>6) points

For the jth pointSVD

IterationFor the ith image

SVD

Page 11: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Reconstruction Algorithm for Point FeaturesReconstruction Algorithm for Point Features

1. Initialization– Set k=0– Compute using the 8-point algorithm– Compute and normalize so that

2. Compute as the null space of

3. Compute new as the null space of Normalize so that

4. If stop, else k=k+1 and goto 2.

Page 12: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Reconstruction Algorithm for Point FeaturesReconstruction Algorithm for Point Features

90.840

89.820

Page 13: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Reconstruction Algorithm for Point FeaturesReconstruction Algorithm for Point Features

Page 14: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Multiple View Matrix for Line FeaturesMultiple View Matrix for Line FeaturesHomogeneous representation of a 3-D line

Homogeneous representation of its 2-D image

Projection of a 3-D line to an image plane

Page 15: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Multiple View Matrix for Line FeaturesMultiple View Matrix for Line Features

• Point Features • Line Features

M encodes exactly the 3-D information missing in one image.

Page 16: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Multiple View Matrix for Line FeaturesMultiple View Matrix for Line Features

each is an image of a (different) line in 3-D:

..

.

..

..

..

Rank =3any lines

Rank =2intersecting lines

Rank =1same line

Page 17: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Multiple View Matrix for Line FeaturesMultiple View Matrix for Line Features

Page 18: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Reconstruction Algorithm for Line FeaturesReconstruction Algorithm for Line Features

1. Initialization– Use linear algorithm from 3 views to obtain initial

estimate for and

2. Given motion parameters compute the structure (equation of each line in 3-D)

3. Given structure compute motion

4. Stop if error is small stop, else goto 2.

Page 19: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Universal Rank ConstraintUniversal Rank Constraint

• What if I have both point and line features?– Traditionally points and lines are treated separately– Therefore, joint incidence relations not exploited

• Can we express joint incidence relations for– Points passing through lines?– Families of intersecting lines?

Page 20: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Universal Rank ConstraintUniversal Rank Constraint

• The Universal Rank Condition for images of a point on a line

-Multi-nonlinear constraints among 3, 4-wise images.

-Multi-linear constraints among 2, 3-wise images.

Page 21: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Universal Rank Constraint: points and linesUniversal Rank Constraint: points and lines

Page 22: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Universal Rank Constraint: multiple images of a cube Universal Rank Constraint: multiple images of a cube

. . .

Three edges intersect at each vertex.

Page 23: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Universal Rank Constraint: multiple images of a cubeUniversal Rank Constraint: multiple images of a cube

Page 24: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Universal Rank Constraint: multiple images of a cubeUniversal Rank Constraint: multiple images of a cube

Page 25: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Universal Rank Constraint: multiple images of a cubeUniversal Rank Constraint: multiple images of a cube

Page 26: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Multiple View Matrix for Coplanar Point FeaturesMultiple View Matrix for Coplanar Point Features

Homogeneous representation of a 3-D plane

Rank conditions on the new extended remain exactly the same!

Corollary [Coplanar Features]

Page 27: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Example: Vision-based Landing of a HelicopterExample: Vision-based Landing of a Helicopter

Page 28: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Example: Vision-based Landing of a HelicopterExample: Vision-based Landing of a Helicopter

Tracking two meter

waves

Landing on the ground

Page 29: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

Example: Vision-based Landing of a HelicopterExample: Vision-based Landing of a Helicopter

Page 30: CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13 Geometry and Algebra of Multiple Views René Vidal Center for Imaging Science BME,

CS 294-6 : Multiple-View Geometry for Image-Based Modeling. Lecture 13

SummarySummarySummarySummary

• Incidence relations rank conditions

• Rank conditions multiple-view factorization

• Rank conditions imply all multi-focal constraints

• Rank conditions for points, lines, planes, and (symmetric) structures.

• Incidence relations rank conditions

• Rank conditions multiple-view factorization

• Rank conditions imply all multi-focal constraints

• Rank conditions for points, lines, planes, and (symmetric) structures.