Epipolar Geometry.

Slides:



Advertisements
Similar presentations
Lecture 11: Two-view geometry
Advertisements

3D reconstruction.
Projective Geometry- 3D
Two-View Geometry CS Sastry and Yang
Jan-Michael Frahm, Enrique Dunn Spring 2012
Two-view geometry.
Recovering metric and affine properties from images
Lecture 8: Stereo.
Epipolar Geometry class 11 Multiple View Geometry Comp Marc Pollefeys.
Camera calibration and epipolar geometry
Recovering metric and affine properties from images
Computer Vision : CISC 4/689
The 2D Projective Plane Points and Lines.
Geometry of Images Pinhole camera, projection A taste of projective geometry Two view geometry:  Homography  Epipolar geometry, the essential matrix.
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.
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.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Previously Two view geometry: epipolar geometry Stereo vision: 3D reconstruction epipolar lines Baseline O O’ epipolar plane.
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
CSE473/573 – Stereo Correspondence
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
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.
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.
Computer vision: models, learning and inference
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Multi-view geometry.
Lecture 12 Stereo Reconstruction II Lecture 12 Stereo Reconstruction II Mata kuliah: T Computer Vision Tahun: 2010.
Epipolar geometry The fundamental matrix and the tensor
Projective cameras Motivation Elements of Projective Geometry Projective structure from motion Planches : –
Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.
Lecture 04 22/11/2011 Shai Avidan הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
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.
1 Formation et Analyse d’Images Session 7 Daniela Hall 25 November 2004.
Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction
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.
EECS 274 Computer Vision Affine Structure from Motion.
stereo Outline : Remind class of 3d geometry Introduction
Feature Matching. Feature Space Outlier Rejection.
Computer vision: models, learning and inference M Ahad Multiple Cameras
Uncalibrated reconstruction Calibration with a rig Uncalibrated epipolar geometry Ambiguities in image formation Stratified reconstruction Autocalibration.
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Multiview geometry ECE 847: Digital Image Processing Stan Birchfield Clemson University.
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
Two-view geometry Computer Vision Spring 2018, Lecture 10
Epipolar geometry.
Epipolar Geometry class 11
3D Photography: Epipolar geometry
Two-view geometry.
3D reconstruction class 11
Uncalibrated Geometry & Stratification
Reconstruction.
Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction
Two-view geometry.
Two-view geometry.
Multi-view geometry.
Presentation transcript:

Epipolar Geometry

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

Three questions: Correspondence geometry: Given an image point x in the first view, 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?

The epipolar geometry (a) C,C’,x,x’ and X are coplanar

The epipolar geometry C’ C b What if only C,C’,x are known? If we know x, how is the corresponding point x’ constrained? l’ is the Epipolar line corresponding to point x Upshot: if we know C and C’ for a stereo correspondence algorithm, no need to search all over the second image, but just only over the epipolar line. C’ C b What if only C,C’,x are known?

The epipolar geometry C C’ a All points on p project on l and l’ Baseline: connects two camera centers Epipole: point of intersection of baseline with image plane Epipole: image in one view of the camera center of the other view. C C’ a All points on p project on l and l’

The epipolar geometry b Family of planes p and lines l and l’ Epipolar plane: A plane containing the baseline. There is a one parameter family , or a pencil, of epipolar planes Epipolar line is the intersection of an epipolar plane with the image plane All epipolar lines intersect at the epipole An epipolar plane intersects the left and right image planes in epipolar lines, and defines the correspondence between the lines. b Family of planes p and lines l and l’ Intersection in e and e’

The epipolar geometry epipoles e,e’ = intersection of baseline with image plane = projection of projection center in other image = vanishing point of camera motion direction an epipolar plane = plane containing baseline (1-D family) an epipolar line = intersection of epipolar plane with image (always come in corresponding pairs)

Example: converging cameras

Example: motion parallel with image plane

Fundamental Matrix F is a projective mapping x  l’ from a point x in one image to its Corresponding epipolar line in the other image l’ = Fx

The fundamental matrix F algebraic representation of epipolar geometry we will see that mapping is (singular) correlation (i.e. projective mapping from points to lines) represented by the fundamental matrix F

Skew Symmetric Matrix for a vector a [a]x is skew symmetric matrix for vector a If a = (a1 , a2 , a3 )T then, [a]x = [ 0 -a3 a2 a3 0 -a1 -a2 a1 0 ] Cross product between two vectors a and be can be written in terms of skew symmetric matrix for a: axb = [a]x b

The fundamental matrix F geometric derivation Plane π, not passing through either of the camera centers Ray through C corresponding to image point x, meets plane π in a point in 3D called X. Project X to a point x’ in the second image “Transfer via the plane π”. l’ is the epipolar line for x  x’ must like on l’ x and x’ are projectively equivalent to the planar point set Xi There is a 2D homography mapping each xi to x’i C C’ mapping from 2-D to 1-D family (rank 2)

The fundamental matrix F P+ is pseudo inverse of P algebraic derivation Line l’ joints two points: can be written as cross product of those two points: First point is P’C which is e’ Second point is projection P’ of P+x onto second image plane l’ = e’ cross product with ( P’ P+ x ) C’ C (note: doesn’t work for C=C’  F=0)

The fundamental matrix F correspondence condition The fundamental matrix satisfies the condition that for any pair of corresponding points x↔x’ in the two images l’ = Fx Combine these two: Upshot: A way of characterizing fundamental matrix without reference to camera matrices, i.e. only in terms of corresponding image points How many correspondences are needed find F? at least 7.

The fundamental matrix F F is the unique 3x3 rank 2 matrix that satisfies x’TFx=0 for all x↔x’ Transpose: if F is fundamental matrix for (P,P’), then FT is fundamental matrix for (P’,P) Epipolar lines: for any point x in the first image, the corresponding epipolar line is l’ = Fx ; same with converse: l = FT x’ represents the epipolar line corresponding to x’ in the second image Epipoles: for any point x, the epipolar line l’ = Fx contains the epipole e’. Thus e’TFx=0, x e’TF=0; similarly Fe=0 e’ is the left null vector of F; e is the right null vector of F F has 7 d.o.f. , i.e. 3x3-1(homogeneous)-1(rank2) F is a correlation, projective mapping from a point x to a line l’=Fx (not a proper correlation, i.e. not invertible) If l and l’ are corresponding epipolar lines, then any point x on l is mapped to the same line l’  no inverse mapping F not proper correlation

Epipolar Line Homography Set of epipolar lines in each of the images forms a pencil of lines passing through the epipole Such a pencil of lines is a 1D projective space Epipolar lines are perspectively related There is a homography between epipolar lines centered at e in the first view and the pencil centered at e’ in the second . A homography between such 1D projective spaces as 3 degrees of freedom Count degrees of freedom of fundamental matrix: 2 for e, 2 for e’, 3 for 1D homography  total of 7

Epipolar Line Homography The epipolar line homography l,l’ epipolar lines, k line not through e  l’=F[k]xl and symmetrically l=FT[k’]xl’ (pick k=e, since eTe≠0) Epipolar Line Homography

Pure Translation camera motion Pure translation = no rotation; no change in internal parameters Pure translation of camera is equivalent to camera is stationary and the world undergoes a translation –t; Points in 3 space move on straight lines parallet to t

Fundamental matrix for pure translation Forward motion B c

pure translation: F only 2 d.o.f., xT[e]xx=0  auto-epipolar Fundamental matrix for pure translation P = K [ I | 0] ; P’ = K [ I | t] example: Camera translation parallel to x axis Z = depth of point X = distance of X from the camera center measured along the principal axis of the first camera Motion starts at x and moves towards e; extent of motion depends on magnitude of t and Inversely proportional to Z; points closer to camera appear to move faster than those further away faster depending on Z looking out of the train window pure translation: F only 2 d.o.f., xT[e]xx=0  auto-epipolar

General motion P = K [I | 0] ; P’ = K’ [R | t]; Rotate the first camera so that it is aligned with the 2nd camera  projective transformation Further correction to the first image to account for differences in calibration matrices Result of these two corrections is projective transformation H of the first image: H = K’ R K-1 Then the effective relation between 2 images is pure translation First term depends on image position, x, but not point’s depth Z, and takes into account camera rotation R and change of internal parameters Second term depends on depth, but not image position x, and takes account of translation

Geometric representation of F Fs: Steiner conic, 5 d.o.f. Fa=[xa]x: pole of line ee’ w.r.t. Fs, 2 d.o.f.

Pure planar motion Steiner conic Fs is degenerate (two lines)

Projective transformation and invariance F invariant to transformations of projective 3-space Consequence; F does not depend on the choice of world frame unique not unique canonical form for a pair of camera matrices for a given F: Choose first Camera as P = [I | 0 ]

Projective ambiguity of cameras given F previous slide: at least projective ambiguity this slide: no more than projective ambiguity! Show that if F is same for (P,P’) and (P,P’), there exists a projective transformation H so that P=HP and P’=HP’ ~ ~ ~ Upshot: a given fundamental matrix determines the pair of camera matrices up to a right multiplication by a projective transformation. P and P’ each have 11 dof ( 3 x 4 – 1 = 11). Total of 22 dof for both; Projective world frame H has ( 4 x 4 – 1= 15 ) dof; Remove dof of world frame from the two cameras: 22 – 15 = 7 = dof of Fundamental matrix.

Canonical cameras given F F matrix corresponds to P,P’ iff P’TFP is skew-symmetric Possible choice: S = [e’]x

Relation between E and F The essential matrix ~fundamental matrix for calibrated cameras; remove K to get Essential matrix P = K [ R | t]; x = PX; known K  = K-1 x = [ R | t ] X is the image point expressed in normalized coordinates; image of point X w.r.t. camera [R | t] having identity I as calibration matrix Definition: Relation between E and F 5 d.o.f. (3 for R; 2 for t up to scale)

(only one solution where points is in front of both cameras) Four possible reconstructions from E (only one solution where points is in front of both cameras)