Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.

Slides:



Advertisements
Similar presentations
Epipolar Geometry.
Advertisements

Lecture 11: Two-view geometry
3D reconstruction.
Two-View Geometry CS Sastry and Yang
Jan-Michael Frahm, Enrique Dunn Spring 2012
Two-view geometry.
View Morphing (Seitz & Dyer, SIGGRAPH 96)
Camera calibration and epipolar geometry
Computer Vision : CISC 4/689
Lecture 11: Structure from motion, part 2 CS6670: Computer Vision Noah Snavely.
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
Uncalibrated Geometry & Stratification Sastry and Yang
Epipolar Geometry and the Fundamental Matrix F
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.
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
CSE473/573 – Stereo Correspondence
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.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
9 – Stereo Reconstruction
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
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.
Final Exam Review CS485/685 Computer Vision Prof. Bebis.
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
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.
1 Formation et Analyse d’Images Session 7 Daniela Hall 25 November 2004.
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.
stereo Outline : Remind class of 3d geometry Introduction
Feature Matching. Feature Space Outlier Rejection.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
Computer vision: models, learning and inference M Ahad Multiple Cameras
Reconstruction from Two Calibrated Views Two-View Geometry
Stereo March 8, 2007 Suggested Reading: Horn Chapter 13.
EECS 274 Computer Vision Projective Structure from Motion.
Multiple View Geometry and Stereo. Overview Single camera geometry – Recap of Homogenous coordinates – Perspective projection model – Camera calibration.
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 continued
Two-view geometry.
Computer Graphics Recitation 12.
Reconstruction.
Two-view geometry.
Two-view geometry.
Multi-view geometry.
Single-view geometry Odilon Redon, Cyclops, 1914.
Presentation transcript:

Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala

Readings Welcome back ….. to winter Szeliski, Chapter 7.2

Back to stereo

The objective Given two images of a scene acquired by known cameras compute the 3D position of the scene (structure recovery) Basic principle: triangulate from corresponding image points Determine 3D point at intersection of two back-projected rays

Corresponding points are images of the same scene point C C / The back-projected points generate rays which intersect at the 3D scene point Triangulation

An algorithm for stereo reconstruction 1.For each point in the first image determine the corresponding point in the second image (this is a search problem) 2.For each pair of matched points determine the 3D point by triangulation (this is an estimation problem)

Triangulation

Vector solution C C / Compute the mid-point of the shortest line between the 2 rays Problems: multiple cameras, one camera closer than other

Minimizing reprojection error x x / X C C / The two cameras are P and P /, and a 3D point X is imaged as for equations involving homogeneous quantities ‘=’ means ‘equal up to scale’ P P/P/ Remember

Minimizing a geometric/statistical error

The correspondence problem Given a point x in one image find the corresponding point in the other image This appears to be a 2D search problem, but it is reduced to a 1D search by the epipolar constraint

Epipolar geometry

Given an image point in one view, where is the corresponding point in the other view? epipolar line ? baseline A point in one view “generates” an epipolar line in the other view The corresponding point lies on this line epipole C / C

Epipolar line Epipolar constraint Reduces correspondence problem to 1D search along an epipolar line

Epipolar geometry continued Epipolar geometry is a consequence of the coplanarity of the camera centres and scene point x x / X C C / The camera centres, corresponding points and scene point lie in a single plane, known as the epipolar plane

Nomenclature The epipolar line l / is the image of the ray through x The epipole e is the point of intersection of the line joining the camera centres with the image plane this line is the baseline for a stereo rig, and the translation vector for a moving camera The epipole is the image of the centre of the other camera: e = P C /, e / = P / C x x / X C C / e left epipolar line right epipolar line e / l/l/

The epipolar pencil e e / baseline X As the position of the 3D point X varies, the epipolar planes “rotate” about the baseline. This family of planes is known as an epipolar pencil (a pencil is a one parameter family). All epipolar lines intersect at the epipole.

The epipolar pencil e e / baseline X As the position of the 3D point X varies, the epipolar planes “rotate” about the baseline. This family of planes is known as an epipolar pencil (a pencil is a one parameter family). All epipolar lines intersect at the epipole.

Two-view geometry Two-view geometry represented by fundamental matrix epipolar plane epipolar line 0 3d point lies somewhere along r (projection of r) Image 1Image 2

Fundamental matrix Epipolar geometry of two views is described by a very special 3x3 matrix, called the fundamental matrix maps (homogeneous) points in image 1 to lines in image 2! The epipolar line (in image 2) of point p is: Epipolar constraint on corresponding points: epipolar plane epipolar line 0 (projection of ray) Image 1Image 2

Fundamental matrix Two special points: e 1 and e 2 (the epipoles): projection of one camera into the other All of the epipolar lines in an image pass through the epipole 0

Fundamental matrix Why does F exist? Let’s derive it… 0

Fundamental matrix 0 : intrinsics of camera 1 : intrinsics of camera 2 : rotation of image 2 w.r.t. camera 1 : ray through p in camera 1’s (and world) coordinate system : ray through q in camera 2’s coordinate system

Fundamental matrix,, and are coplanar epipolar plane can be represented as 0

Fundamental matrix 0

Cross-product as linear operator Useful fact: Cross product with a vector t can be represented as multiplication with a (skew-symmetric) 3x3 matrix

Fundamental matrix 0

0 { the Essential matrix

Fundamental matrix 0 the Fundamental matrix

Fundamental matrix 0 the Fundamental matrix : intrinsics of camera 1 : intrinsics of camera 2 : rotation of image 2 w.r.t. camera 1

Fundamental matrix result

Properties of the Fundamental Matrix is the epipolar line associated with 32 T 0

Properties of the Fundamental Matrix is the epipolar line associated with and All epipolar lines contain epipole T 0

Properties of the Fundamental Matrix is the epipolar line associated with and is rank 2 34 T 0

Why Rank 2 Useful fact: Cross product with a vector t can be represented as multiplication with a (skew-symmetric) 3x3 matrix

Fundamental matrix song

Questions?

Alternative Formulation

Homogeneous notation for lines

The line l through the two points p and q is l = p x q Proof The intersection of two lines l and m is the point x = l x m

Algebraic representation of epipolar geometry x l / point in first image epipolar line in second image

P Derivation of the algebraic expression Outline Step 1: for a point x in the first image back project a ray with camera P Step 2: choose two points on the ray and project into the second image with camera P / Step 3: compute the line through the two image points using the relation l / = p x q P/P/

choose camera matrices internal calibration rotationtranslation from world to camera coordinate frame first camera world coordinate frame aligned with first camera second camera

Step 1: for a point x in the first image back project a ray with camera P A point x back projects to a ray where Z is the point’s depth, since satisfies

Step 2: choose two points on the ray and project into the second image with camera P / P/P/ Consider two points on the ray Z = 0 is the camera centre Z = is the point at infinity Project these two points into the second view

Using the identity Compute the line through the points F F is the fundamental matrix Step 3: compute the line through the two image points using the relation l / = p x q