Two-view geometry.

Slides:



Advertisements
Similar presentations
Epipolar Geometry.
Advertisements

Announcements. Structure-from-Motion Determining the 3-D structure of the world, and/or the motion of a camera using a sequence of images taken by a moving.
Lecture 11: Two-view geometry
3D reconstruction.
Jan-Michael Frahm, Enrique Dunn Spring 2012
Two-view geometry.
Lecture 8: Stereo.
Camera calibration and epipolar geometry
Camera Models A camera is a mapping between the 3D world and a 2D image The principal camera of interest is central projection.
Computer Vision : CISC 4/689
Geometry of Images Pinhole camera, projection A taste of projective geometry Two view geometry:  Homography  Epipolar geometry, the essential matrix.
Used slides/content with permission from
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
© 2003 by Davi GeigerComputer Vision October 2003 L1.1 Structure-from-EgoMotion (based on notes from David Jacobs, CS-Maryland) Determining the 3-D structure.
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.
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
COMP322/S2000/L271 Stereo Imaging Ref.V.S.Nalwa, A Guided Tour of Computer Vision, Addison Wesley, (ISBN ) Slides are adapted from CS641.
Cameras, lenses, and calibration
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.
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
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.
Epipolar geometry The fundamental matrix and the tensor
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Epipolar geometry Epipolar Plane Baseline Epipoles Epipolar Lines
Lecture 04 22/11/2011 Shai Avidan הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
CS654: Digital Image Analysis Lecture 8: Stereo Imaging.
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.
Geometric Camera Models
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.
Lecture 03 15/11/2011 Shai Avidan הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Geometry of Multiple Views
CSE 185 Introduction to Computer Vision Stereo. Taken at the same time or sequential in time stereo vision structure from motion optical flow Multiple.
Bahadir K. Gunturk1 Phase Correlation Bahadir K. Gunturk2 Phase Correlation Take cross correlation Take inverse Fourier transform  Location of the impulse.
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
1 Chapter 2: Geometric Camera Models Objective: Formulate the geometrical relationships between image and scene measurements Scene: a 3-D function, g(x,y,z)
Feature Matching. Feature Space Outlier Rejection.
Computer vision: models, learning and inference M Ahad Multiple Cameras
Stereo March 8, 2007 Suggested Reading: Horn Chapter 13.
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
Computer vision: geometric models Md. Atiqur Rahman Ahad Based on: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince.
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.
Nazar Khan PUCIT Lecture 19
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
Two-view geometry Computer Vision Spring 2018, Lecture 10
Epipolar geometry.
Study the mathematical relations between corresponding image points.
Epipolar geometry continued
Computer Graphics Recitation 12.
Geometric Camera Models
Multiple View Geometry for Robotics
Reconstruction.
Computer Vision Stereo Vision.
Two-view geometry.
Course 6 Stereo.
Two-view geometry.
Multi-view geometry.
Single-view geometry Odilon Redon, Cyclops, 1914.
The Pinhole Camera Model
Presentation transcript:

Two-view geometry

Stereo head Kinect / depth cameras

Stereo with rectified cameras Special case: cameras are parallel to each other and translated along X axis X axis Z axis

Perspective projection in rectified cameras Without loss of generality, assume origin is at pinhole of 1st camera

Perspective projection in rectified cameras Without loss of generality, assume origin is at pinhole of 1st camera X coordinate differs by tx/Z Y coordinate is the same!

Perspective projection in rectified cameras disparity = tx/Z If tx is known, disparity gives Z Otherwise, disparity gives Z in units of tx Small-baseline, near depth = large-baseline, far depth

Perspective projection in rectified cameras For rectified cameras, correspondence problem is easier Only requires searching along a particular row.

Rectifying cameras Given two images from two cameras with known relationship, can we rectify them?

Rectifying cameras Can we rotate / translate cameras? Do we need to know the 3D structure of the world to do this?

Rotating cameras Assume K is identity Assume coordinate system at camera pinhole

Rotating cameras Assume K is identity Assume coordinate system at camera pinhole

Rotating cameras What happens if the camera is rotated?

Rotating cameras What happens if the camera is rotated? No need to know the 3D structure Rotation matrix Homogenous coordinates of mapped pixel Homogenous coordinates of original pixel

Rotating cameras

Rectifying cameras

Rectifying cameras

Rectifying cameras

Rectifying cameras

Perspective projection in rectified cameras For rectified cameras, correspondence problem is easier Only requires searching along a particular row.

Perspective projection in rectified cameras What about non-rectified cameras? Is there an equivalent? For rectified cameras, correspondence problem is easier Only requires searching along a particular row.

Epipolar constraint Reduces 2D search problem to search along a particular line: epipolar line

Epipolar constraint True in general! Given pixel (x,y) in one image, corresponding pixel in the other image must lie on a line Line function of (x,y) and parameters of camera These lines are called epipolar line

Epipolar geometry

Epipolar geometry - why? For a single camera, pixel in image plane must correspond to point somewhere along a ray

Epipolar geometry When viewed in second image, this ray looks like a line: epipolar line The epipolar line must pass through image of the first camera in the second image - epipole Epipole Epipolar line

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

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

Epipolar lines

Epipolar lines

Epipolar lines Epipole

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 X C C l/ x x e e right epipolar line left epipolar line x x / e / e C C / 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 = PC/ , e/ = P/C

The epipolar pencil X e e / baseline 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 X e e / baseline 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.

Epipolar geometry - the math Assume intrinsic parameters K are identity Assume world coordinate system is centered at 1st camera pinhole with Z along viewing direction

Epipolar geometry - the math Assume intrinsic parameters K are identity Assume world coordinate system is centered at 1st camera pinhole with Z along viewing direction

Epipolar geometry - the math Assume intrinsic parameters K are identity Assume world coordinate system is centered at 1st camera pinhole with Z along viewing direction

Epipolar geometry - the math Assume intrinsic parameters K are identity Assume world coordinate system is centered at 1st camera pinhole with Z along viewing direction

Epipolar geometry - the math Assume intrinsic parameters K are identity Assume world coordinate system is centered at 1st camera pinhole with Z along viewing direction

Epipolar geometry - the math

Epipolar geometry - the math Can we write this as matrix vector operations? Cross product can be written as a matrix

Epipolar geometry - the math Can we write this as matrix vector operations? Dot product can be written as a vector-vector times

Epipolar geometry - the math Can we write this as matrix vector operations? Dot product can be written as a vector-vector times

Epipolar geometry - the math

Epipolar geometry - the math Homogenous coordinates of point in image 2 Homogenous coordinates of point in image 1 Essential matrix

Epipolar constraint and epipolar lines Consider a known, fixed pixel in the first image What constraint does this place on the corresponding pixel? where What kind of equation is this?

Epipolar constraint and epipolar lines Consider a known, fixed pixel in the first image where Line!

Epipolar constraint: putting it all together If p is a pixel in first image and q is the corresponding pixel in the second image, then: qTEp = 0 E = [t]XR For fixed p, q must satisfy: qTl = 0, where l = Ep For fixed q, p must satisfy: lTp = 0 where lT = qTE, or l = Etq These are epipolar lines! Epipolar line in 2nd image Epipolar line in 1st image

Essential matrix and epipoles E = [t]XR Ep is an epipolar line in 2nd image All epipolar lines in second image pass through c2 c2 is epipole in 2nd image

Essential matrix and epipoles E = [t]XR ETq is an epipolar line in 1st image All epipolar lines in first image pass through c1 c1 is the epipole in 1st image