Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction

Slides:



Advertisements
Similar presentations
Epipolar Geometry.
Advertisements

More on single-view geometry
3D reconstruction.
MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling.
Self-calibration.
Jan-Michael Frahm, Enrique Dunn Spring 2012
Two-view geometry.
Epipolar Geometry class 11 Multiple View Geometry Comp Marc Pollefeys.
Camera calibration and epipolar geometry
Structure from motion.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Robot Vision SS 2008 Matthias Rüther 1 ROBOT VISION Lesson 6: Shape from Stereo Matthias Rüther Slides partial courtesy of Marc Pollefeys Department of.
Epipolar Geometry Class 7 Read notes Feature tracking run iterative L-K warp & upsample Tracking Good features Multi-scale Transl. Affine.
3D reconstruction class 11
Projective geometry- 2D Acknowledgements Marc Pollefeys: for allowing the use of his excellent slides on this topic
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
Structure from motion. Multiple-view geometry questions Scene geometry (structure): Given 2D point matches in two or more images, where are the corresponding.
Uncalibrated Geometry & Stratification Sastry and Yang
Epipolar Geometry and the Fundamental Matrix F
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
3D reconstruction of cameras and structure x i = PX i x’ i = P’X i.
Self-calibration Class 21 Multiple View Geometry Comp Marc Pollefeys.
Multiple View Geometry Comp Marc Pollefeys
CAU Kiel DAGM 2001-Tutorial on Visual-Geometric 3-D Scene Reconstruction 1 The plan for today Leftovers and from last time Camera matrix Part A) Notation,
Multiple View Geometry
Multiple View Geometry
Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction Structure comp.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
3D photography Marc Pollefeys Fall 2007
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Projective Geometry and Camera model Class 2
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
More on single-view geometry class 10 Multiple View Geometry Comp Marc Pollefeys.
May 2004Stereo1 Introduction to Computer Vision CS / ECE 181B Tuesday, May 11, 2004  Multiple view geometry and stereo  Handout #6 available (check with.
Lec 21: Fundamental Matrix
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Epipolar geometry Class 5
Epipolar geometry Class 5. Geometric Computer Vision course schedule (tentative) LectureExercise Sept 16Introduction- Sept 23Geometry & Camera modelCamera.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
Automatic Camera Calibration
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Multi-view geometry.
Projective cameras Motivation Elements of Projective Geometry Projective structure from motion Planches : –
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Structure from Motion Course web page: vision.cis.udel.edu/~cv April 25, 2003  Lecture 26.
Stereo Course web page: vision.cis.udel.edu/~cv April 11, 2003  Lecture 21.
Robot Vision SS 2007 Matthias Rüther 1 ROBOT VISION Lesson 6a: Shape from Stereo, short summary Matthias Rüther Slides partial courtesy of Marc Pollefeys.
Affine Structure from Motion
1 Camera calibration based on arbitrary parallelograms 授課教授:連震杰 學生:鄭光位.
A Flexible New Technique for Camera Calibration Zhengyou Zhang Sung Huh CSPS 643 Individual Presentation 1 February 25,
Two-view geometry. Epipolar Plane – plane containing baseline (1D family) Epipoles = intersections of baseline with image planes = projections of the.
EECS 274 Computer Vision Affine Structure from Motion.
Auto-calibration we have just calibrated using a calibration object –another calibration object is the Tsai grid of Figure 7.1 on HZ182, which can be used.
Uncalibrated reconstruction Calibration with a rig Uncalibrated epipolar geometry Ambiguities in image formation Stratified reconstruction Autocalibration.
More on single-view geometry class 10 Multiple View Geometry Comp Marc Pollefeys.
Structure from motion Multi-view geometry Affine structure from motion Projective structure from motion Planches : –
EECS 274 Computer Vision Projective Structure from Motion.
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
Epipolar geometry.
Epipolar Geometry class 11
3D Photography: Epipolar geometry
More on single-view geometry class 10
Estimating 2-view relationships
3D reconstruction class 11
Uncalibrated Geometry & Stratification
Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction
Two-view geometry.
Two-view geometry.
Presentation transcript:

Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction Structure comp.

Three questions: Correspondence geometry: Given an image point x in the first image, how does this constrain the position of the corresponding point x’ in the second image? (ii) Camera geometry (motion): Given a set of corresponding image points {xi ↔x’i}, i=1,…,n, what are the cameras P and P’ for the two views? (iii) Scene geometry (structure): Given corresponding image points xi ↔x’i and cameras P, P’, what is the position of (their pre-image) X in space?

Fundamental matrix (3x3 rank 2 matrix) Epipolar geometry l2 C1 m1 L1 m2 L2 M C2 C1 C2 l2 P l1 e1 e2 m1 L1 m2 L2 M C1 C2 l2 P l1 e1 e2 Underlying structure in set of matches for rigid scenes m1 m2 lT1 l2 Fundamental matrix (3x3 rank 2 matrix) Computable from corresponding points Simplifies matching Allows to detect wrong matches Related to calibration Canonical representation:

3D reconstruction of cameras and structure reconstruction problem: given xi↔x‘i , compute P,P‘ and Xi for all i without additional informastion possible up to projective ambiguity

outline of reconstruction Compute F from correspondences Compute camera matrices from F 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 use triangulation compute intersection of two backprojected rays

Reconstruction ambiguity: similarity

Reconstruction ambiguity: projective

Terminology xi↔x‘i Original scene Xi Projective, affine, similarity reconstruction = reconstruction that is identical to original up to projective, affine, similarity transformation Literature: Metric and Euclidean reconstruction = similarity reconstruction

The projective reconstruction theorem If a set of point correspondences in two views determine the fundamental matrix uniquely, then the scene and cameras may be reconstructed from these correspondences alone, and any two such reconstructions from these correspondences are projectively equivalent theorem from last class along same ray of P2, idem for P‘2 two possibilities: X2i=HX1i, or points along baseline key result: allows reconstruction from pair of uncalibrated images

Stratified reconstruction Projective reconstruction Affine reconstruction Metric reconstruction

Projective to affine remember 2-D case

Projective to affine theorem says up to projective transformation, (if D≠0) theorem says up to projective transformation, but projective with fixed p∞ is affine transformation can be sufficient depending on application, e.g. mid-point, centroid, parallellism

Translational motion points at infinity are fixed for a pure translation  reconstruction of xi↔ xi is on p∞

Scene constraints Parallel lines parallel lines intersect at infinity reconstruction of corresponding vanishing point yields point on plane at infinity 3 sets of parallel lines allow to uniquely determine p∞ remark: in presence of noise determining the intersection of parallel lines is a delicate problem remark: obtaining vanishing point in one image can be sufficient

Scene constraints

Scene constraints Distance ratios on a line known distance ratio along a line allow to determine point at infinity (same as 2D case)

The infinity homography ∞ unchanged under affine transformations affine reconstruction

One of the cameras is affine according to the definition, the principal plane of an affine camera is at infinity to obtain affine recontruction, compute H that maps third row of P to (0,0,0,1)T and apply to cameras and reconstruction e.g. if P=[I|0], swap 3rd and 4th row, i.e.

Affine to metric identify absolute conic transform so that then projective transformation relating original and reconstruction is a similarity transformation in practice, find image of W∞ image w∞ back-projects to cone that intersects p∞ in W∞ * * projection constraints note that image is independent of particular reconstruction

Affine to metric given possible transformation from affine to metric is (cholesky factorisation) proof:

vanishing points corresponding to orthogonal directions Ortogonality vanishing points corresponding to orthogonal directions vanishing line and vanishing point corresponding to plane and normal direction

known internal parameters rectangular pixels square pixels

same intrinsics  same image of the absolute conic Same camera for all images same intrinsics  same image of the absolute conic e.g. moving cameras given sufficient images there is in general only one conic that projects to the same image in all images, i.e. the absolute conic This approach is called self-calibration, see later transfer of IAC:

Direct metric reconstruction using w approach 1 calibrated reconstruction approach 2 compute projective reconstruction back-project w from both images intersection defines W∞ and its support plane p∞ (in general two solutions)

Direct reconstruction using ground truth use control points XEi with know coordinates to go from projective to metric (2 lin. eq. in H-1 per view, 3 for two views)

Objective Given two uncalibrated images compute (PM,P‘M,{XMi}) (i.e. within similarity of original scene and cameras) Algorithm Compute projective reconstruction (P,P‘,{Xi}) Compute F from xi↔x‘i Compute P,P‘ from F Triangulate Xi from xi↔x‘i Rectify reconstruction from projective to metric Direct method: compute H from control points Stratified method: Affine reconstruction: compute p∞ Metric reconstruction: compute IAC w

F F,H∞ p∞ w,w’ W∞ Image information provided View relations and projective objects 3-space objects reconstruction ambiguity point correspondences F projective point correspondences including vanishing points F,H∞ p∞ affine Points correspondences and internal camera calibration w,w’ W∞ metric