Jan-Michael Frahm, Enrique Dunn Spring 2012

Slides:



Advertisements
Similar presentations
Single-view geometry Odilon Redon, Cyclops, 1914.
Advertisements

Epipolar Geometry.
Lecture 11: Two-view geometry
3D reconstruction.
Two-view geometry.
Lecture 8: Stereo.
Camera calibration and epipolar geometry
Structure from motion.
Epipolar Geometry Class 7 Read notes Feature tracking run iterative L-K warp & upsample Tracking Good features Multi-scale Transl. Affine.
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
Lecture 21: Multiple-view geometry and structure from motion
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
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 Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Lecture 20: Two-view geometry CS6670: Computer Vision Noah Snavely.
Single-view geometry Odilon Redon, Cyclops, 1914.
3D Computer Vision and Video Computing 3D Vision Lecture 14 Stereo Vision (I) CSC 59866CD Fall 2004 Zhigang Zhu, NAC 8/203A
Projected image of a cube. Classical Calibration.
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
Multiple View Geometry
Multiple View Geometry. THE GEOMETRY OF MULTIPLE VIEWS Reading: Chapter 10. Epipolar Geometry The Essential Matrix The Fundamental Matrix The Trifocal.
Structure Computation. How to compute the position of a point in 3- space given its image in two views and the camera matrices of those two views Use.
CS 558 C OMPUTER V ISION Lecture IX: Dimensionality Reduction.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Epipolar geometry Class 5. Geometric Computer Vision course schedule (tentative) LectureExercise Sept 16Introduction- Sept 23Geometry & Camera modelCamera.
Epipolar Geometry and Stereo Vision Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 04/12/11 Many slides adapted from Lana Lazebnik,
CSE 6367 Computer Vision Stereo Reconstruction Camera Coordinate Transformations “Everything should be made as simple as possible, but not simpler.” Albert.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Automatic Camera Calibration
Epipolar Geometry and Stereo Vision Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/05/15 Many slides adapted from Lana Lazebnik,
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Epipolar Geometry and Stereo Vision Computer Vision ECE 5554 Virginia Tech Devi Parikh 10/15/13 These slides have been borrowed from Derek Hoiem and Kristen.
Multi-view geometry.
Epipolar geometry The fundamental matrix and the tensor
1 Preview At least two views are required to access the depth of a scene point and in turn to reconstruct scene structure Multiple views can be obtained.
Projective cameras Motivation Elements of Projective Geometry Projective structure from motion Planches : –
Lecture 04 22/11/2011 Shai Avidan הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:
Stereo Course web page: vision.cis.udel.edu/~cv April 11, 2003  Lecture 21.
Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction
Announcements Project 3 due Thursday by 11:59pm Demos on Friday; signup on CMS Prelim to be distributed in class Friday, due Wednesday by the beginning.
Geometry of Multiple Views
Multi-linear Systems and Invariant Theory in the Context of Computer Vision and Graphics CS329 Amnon Shashua.
Single-view geometry Odilon Redon, Cyclops, 1914.
Two-view geometry. Epipolar Plane – plane containing baseline (1D family) Epipoles = intersections of baseline with image planes = projections of the.
776 Computer Vision Jan-Michael Frahm & Enrique Dunn Spring 2013.
Single-view geometry Odilon Redon, Cyclops, 1914.
Structure from motion Multi-view geometry Affine structure from motion Projective structure from motion Planches : –
EECS 274 Computer Vision Projective Structure from Motion.
Camera Calibration Course web page: vision.cis.udel.edu/cv March 24, 2003  Lecture 17.
Multiple View Geometry and Stereo. Overview Single camera geometry – Recap of Homogenous coordinates – Perspective projection model – Camera calibration.
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
Epipolar Geometry and Stereo Vision
Undergrad HTAs / TAs Help me make the course better!
Two-view geometry Computer Vision Spring 2018, Lecture 10
Epipolar geometry.
3D Photography: Epipolar geometry
Epipolar geometry continued
Computer Graphics Recitation 12.
Reconstruction.
Two-view geometry.
Two-view geometry.
Multi-view geometry.
Single-view geometry Odilon Redon, Cyclops, 1914.
Presentation transcript:

Jan-Michael Frahm, Enrique Dunn Spring 2012 776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2012

Pinhole camera model

Camera calibration Given n points with known 3D coordinates Xi and known image projections xi, estimate the camera parameters Xi xi slide: S. Lazebnik

Camera estimation: Linear method P has 11 degrees of freedom (12 parameters, but scale is arbitrary) One 2D/3D correspondence gives us two linearly independent equations Homogeneous least squares 6 correspondences needed for a minimal solution slide: S. Lazebnik

Two-view geometry

Epipolar geometry Baseline – line connecting the two camera centers X x x’ Baseline – line connecting the two camera centers Epipolar Plane – plane containing baseline (1D family) Epipoles = intersections of baseline with image planes = projections of the other camera center slide: S. Lazebnik

Epipolar geometry Baseline – line connecting the two camera centers X x x’ Baseline – line connecting the two camera centers Epipolar Plane – plane containing baseline (1D family) Epipoles = intersections of baseline with image planes = projections of the other camera center Epipolar Lines - intersections of epipolar plane with image planes (always come in corresponding pairs) slide: S. Lazebnik

Representations in P2 Homogeneous coordinates w/o Zero vector Equivalence classes (u,v,w)T ~ s(u,v,w)T ~ (u/w, v/w, 1)T Allows for common representation of points and lines L = ( a, b, c) T => ax + by + c = 0 Ideal points correspond to points at “infinity” Two points can define a line L = p1 x p2 = [p1]x p2 Two intersecting lines define a point p = L1 x L2 = [L1]x L2 Point-Line inclusion test L.p = 0

Representations in P3 Homogeneous coordinates w/o Zero vector Equivalence classes (X,Y,Z,w)T ~ s(X,Y,Z,w)T ~ (X/w,Y/w,Z/w, 1)T Allows for common representation of points and planes π = ( a, b, c, d) T => ax + by + cz + d = 0 Plane normal n= (a, b, c) T d is distance from origin Ideal points correspond to points at “infinity” Plane at infinity πinf=(0,0,0,1) contains all ideal points Three points can define a plane π = [(X1 –X3) x (X2-X3) , -X3 T (X1 x X2) ]’ Where X1,X2,X3 are the normlaized non-homogenous 3-vectors Three intersecting planes define a point X = null([π1T, π2T, π3T]) Point-Plane inclusion test πX=0

Homographies in P2 Linear transformation (non singular 3x3 matrix) Homogenous Transformation (8 dof)

Plane Induced Homographies Given Two cameras P=[I |0] and P’ = [A | a] A plane π=(vT,1) T The homography is given by x’=Hx H = A - avT

Plane Homography for Calibrated Cameras In the calibrated case Two cameras P=K[I |0] and P’ = K’[R | t] A plane π=(nT,d) T The homography is given by x’=Hx H = K’(R – tnT/d)K-1

Plane Homography for Calibrated Cameras In the calibrated case Two cameras P=K[I |0] and P’ = K’[R | t] A plane π=(nT,d) T The homography is given by x’=Hx H = K’(R – tnT/d)K-1 For the plane at infinity H = K’RK-1

2-view geometry: The uncalibrated F-Matrix Projection onto two views: Epipolar line Z P0 Y P1 O X C1

The Fundamental Matrix F F = [e]xH = Fundamental Matrix P0 L m0 M M l1 Epipole e1 m1 Hm0 P1

The Fundamental Matrix F The projective points e1 and (Hm0) define a plane in camera 1 (epipolar plane Πe) the epipolar plane intersects the image plane 1 in a line (epipolar line ue) the corresponding point m1 lies on line ue: m1Tue= 0 If the points (e1),(m1),(Hm0) are all collinear, then the colinearity theorem applies: m1T (e1 x Hm0) = 0. Fundamental Matrix F Epipolar constraint

Estimation of F from image correspondences Given a set of corresponding points, solve linearily for the 9 elements of F in projective coordinates since the epipolar constraint is homogeneous up to scale, only eight elements are independent since the operator [e]x and hence F have rank 2, F has only 7 independent parameters (all epipolar lines intersect at e) each correspondence gives 1 collinearity constraint => solve F with minimum of 7 correspondences for N>7 correspondences minimize distance point-line:

The eight-point algorithm x = (u, v, 1)T, x’ = (u’, v’, 1)T Minimize: under the constraint F33 = 1

Problem with eight-point algorithm Poor numerical conditioning Can be fixed by rescaling the data slide: S. Lazebnik

Linear Estimation of F with 8-Point-Algorithm solve F linearily with 8 correspondences using the normalized 8-point algorithm (Hartley 1995): normalize image coordinates of 8 correspondences for numerical conditioning solve the rank 8 equation Af = 0 for the elements fk of matrix F. apply the rank-2 constraint det(F)=0 as additional condition to fix epipole denormalize F.

The normalized eight-point algorithm (Hartley, 1995) Center the image data at the origin, and scale it so the mean squared distance between the origin and the data points is 2 pixels Use the eight-point algorithm to compute F from the normalized points Enforce the rank-2 constraint (for example, take SVD of F and throw out the smallest singular value) Transform fundamental matrix back to original units: if T and T’ are the normalizing transformations in the two images, than the fundamental matrix in original coordinates is TT F T’ slide: S. Lazebnik

Comparison of estimation algorithms 8-point Normalized 8-point Nonlinear least squares Av. Dist. 1 2.33 pixels 0.92 pixel 0.86 pixel Av. Dist. 2 2.18 pixels 0.85 pixel 0.80 pixel

Example: Converging cameras slide: S. Lazebnik

Example: Motion parallel to image plane

Example: Motion perpendicular to image plane slide: S. Lazebnik

Example: Motion perpendicular to image plane slide: S. Lazebnik

Example: Motion perpendicular to image plane Epipole has same coordinates in both images. Points move along lines radiating from e: “Focus of expansion” slide: S. Lazebnik

Epipolar constraint example slide: S. Lazebnik

Epipolar constraint: Calibrated case X x x’ Assume that the intrinsic and extrinsic parameters of the cameras are known We can multiply the projection matrix of each camera (and the image points) by the inverse of the calibration matrix to get normalized image coordinates We can also set the global coordinate system to the coordinate system of the first camera. Then the projection matrix of the first camera is [I | 0]. slide: S. Lazebnik

Epipolar constraint: Calibrated case X = RX’ + t x x’ t R X’ is X in the second camera’s coordinate system We can identify the non-homogeneous 3D vectors X and X’ with the homogeneous coordinate vectors x and x’ of the projections of the two points into the two respective images The vectors x, t, and Rx’ are coplanar slide: S. Lazebnik

Epipolar constraint: Calibrated case X x x’ Cubic constraint Essential Matrix The vectors x, t, and Rx’ are coplanar slide: S. Lazebnik

The Essential Matrix E E holds the relative orientation of a calibrated camera pair. It has 5 degrees of freedom: 3 from rotation matrix Rik, 2 from direction of translation e, the epipole. E has a cubic constraint that restricts E to 5 dof (Nister 2004)

Relative Pose P from E E holds the relative orientation between 2 calibrated cameras P0 and P1: Given P0 as coordinate frame, the relative orientation of P1 is determined directly from E up to a 4-fold rotation ambiguity (P1a - P1d). The ambiguity is resolved by correspondence triangulation: The 3D point M of a corresponding 2D image point pair must be in front of both cameras. The epipolar vector e has norm 1. Relative Pose from E and correspondence: Case c is correct relative pose in this case