Lec 21: Fundamental Matrix

Slides:



Advertisements
Similar presentations
Image Rectification for Stereo Vision
Advertisements

Epipolar Geometry.
Lecture 11: Two-view geometry
3D reconstruction.
Two-View Geometry CS Sastry and Yang
Jan-Michael Frahm, Enrique Dunn Spring 2012
Two-view geometry.
Lecture 8: Stereo.
Dr. Hassan Foroosh Dept. of Computer Science UCF
View Morphing (Seitz & Dyer, SIGGRAPH 96)
Camera calibration and epipolar geometry
Computer Vision : CISC 4/689
Stanford CS223B Computer Vision, Winter 2005 Lecture 5: Stereo I Sebastian Thrun, Stanford Rick Szeliski, Microsoft Hendrik Dahlkamp and Dan Morris, Stanford.
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2005 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
Lecture 11: Structure from motion, part 2 CS6670: Computer Vision Noah Snavely.
Stanford CS223B Computer Vision, Winter 2006 Lecture 5 Stereo I
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
Epipolar Geometry and the Fundamental Matrix F
Lecture 21: Multiple-view geometry and structure from motion
Lecture 20: Two-view geometry CS6670: Computer Vision Noah Snavely.
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.
CSE473/573 – Stereo Correspondence
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 and Stereo Vision Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 04/12/11 Many slides adapted from Lana Lazebnik,
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
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.
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30am – 11:50am Lecture #15.
Stereo Readings Trucco & Verri, Chapter 7 –Read through 7.1, 7.2.1, 7.2.2, 7.3.1, 7.3.2, and 7.4, –The rest is optional. Single image stereogram,
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,
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.
Recap from Monday Image Warping – Coordinate transforms – Linear transforms expressed in matrix form – Inverse transforms useful when synthesizing images.
Epipolar geometry Epipolar Plane Baseline Epipoles Epipolar Lines
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.
Computer Vision, Robert Pless
Lec 22: Stereo CS4670 / 5670: Computer Vision Kavita Bala.
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.
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.
Solving for Stereo Correspondence Many slides drawn from Lana Lazebnik, UIUC.
Computer vision: models, learning and inference M Ahad Multiple Cameras
Rectification of Stereo Images Милош Миловановић Урош Поповић.
Reconstruction from Two Calibrated Views Two-View Geometry
Stereo March 8, 2007 Suggested Reading: Horn Chapter 13.
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
CSE 185 Introduction to Computer Vision Stereo 2.
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
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
Two-view geometry Computer Vision Spring 2018, Lecture 10
Epipolar geometry.
Epipolar geometry continued
Two-view geometry.
Computer Graphics Recitation 12.
Multiple View Geometry for Robotics
Reconstruction.
Two-view geometry.
Two-view geometry.
Multi-view geometry.
Presentation transcript:

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

Readings Szeliski, Chapter 7.2 “Fundamental matrix song”

3d point lies somewhere along r Two-view geometry Where do epipolar lines come from? 3d point lies somewhere along r epipolar plane epipolar line epipolar line (projection of r) Image 1 Image 2

Fundamental matrix epipolar plane epipolar line epipolar line (projection of ray) Image 1 Image 2 This 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:

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

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

Fundamental matrix : intrinsics of camera 2 : intrinsics of camera 1 : intrinsics of camera 1 : intrinsics of camera 2 [x y w] = Projection K_1 [X Y Z 1] = [Xf Yf Z] Consider a ray through p. It goes through p and the point at infinity along that ray. : 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 , , and are coplanar epipolar plane can be represented as X^T l = 0 for a point on the line. Use that in the equation

Fundamental matrix

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

Fundamental matrix { the Essential matrix

Fundamental matrix the Fundamental matrix

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

Fundamental matrix result

Properties of the Fundamental Matrix is the epipolar line associated with T 5 parameters

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

Properties of the Fundamental Matrix is the epipolar line associated with and is rank 2 T Prove that F is rank 2. F

Rectified case Prove that this results in the right: y1 = y2

Stereo image rectification reproject image planes onto a common plane parallel to the line between optical centers pixel motion is horizontal after this transformation two homographies (3x3 transform), one for each input image reprojection C. Loop and Z. Zhang. Computing Rectifying Homographies for Stereo Vision. IEEE Conf. Computer Vision and Pattern Recognition, 1999.

Original stereo pair After rectification

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 We know that the epipolar geometry defines a mapping x l/ point in first image epipolar line in second image

Derivation of the algebraic expression Outline Step 1: for a point x in the first image back project a ray with camera P 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

from world to camera coordinate frame choose camera matrices internal calibration rotation translation 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 A point x back projects to a ray where Z is the point’s depth, since satisfies

P/ Step 2: choose two points on the ray and project into the second image with camera 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

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