Camera Models CMPUT 498/613 Richard Hartley and Andrew Zisserman, Multiple View Geometry, Cambridge University Publishers, 2000 Readings: HZ Ch 6, 7.

Slides:



Advertisements
Similar presentations
3D reconstruction.
Advertisements

Robot Vision SS 2005 Matthias Rüther 1 ROBOT VISION Lesson 3: Projective Geometry Matthias Rüther Slides courtesy of Marc Pollefeys Department of Computer.
Study the mathematical relations between corresponding image points.
3D Reconstruction – Factorization Method Seong-Wook Joo KG-VISA 3/10/2004.
Two-View Geometry CS Sastry and Yang
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.
Structure from motion.
1 Basic geometric concepts to understand Affine, Euclidean geometries (inhomogeneous coordinates) projective geometry (homogeneous coordinates) plane at.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
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
Projective geometry- 2D Acknowledgements Marc Pollefeys: for allowing the use of his excellent slides on this topic
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
Computer Vision : CISC4/689
CS485/685 Computer Vision Prof. George Bebis
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,
Camera model Relation between pixels and rays in space ?
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
3D photography Marc Pollefeys Fall 2007
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Projective Geometry and Camera model Class 2
Cameras and Projections Dan Witzner Hansen Course web page:
CMPUT 412 3D Computer Vision Presented by Azad Shademan Feb , 2007.
Camera Models class 8 Multiple View Geometry Comp Marc Pollefeys.
Previously Two view geometry: epipolar geometry Stereo vision: 3D reconstruction epipolar lines Baseline O O’ epipolar plane.
The Pinhole Camera Model
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Camera Calibration class 9 Multiple View Geometry Comp Marc Pollefeys.
Two-views geometry Outline Background: Camera, Projection Necessary tools: A taste of projective geometry Two view geometry:  Homography  Epipolar geometry,
Instance-level recognition I. - Camera geometry and image alignment Josef Sivic INRIA, WILLOW, ENS/INRIA/CNRS UMR 8548 Laboratoire.
Projective Geometry and Camera Models
Epipolar geometry The fundamental matrix and the tensor
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.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Computer Vision The 2D projective plane and it’s applications HZ Ch 2. In particular: Ch 2.1-4, 2.7, Szelisky: Ch 2.1.1, Estimation:HZ: Ch ,
Geometric Models & Camera Calibration
Projective Geometry. Projection Vanishing lines m and n.
Camera Model & Camera Calibration
Stereo Course web page: vision.cis.udel.edu/~cv April 11, 2003  Lecture 21.
Geometric Camera Models
Vision Review: Image Formation Course web page: September 10, 2002.
Parameter estimation. 2D homography Given a set of (x i,x i ’), compute H (x i ’=Hx i ) 3D to 2D camera projection Given a set of (X i,x i ), compute.
Computer Vision : CISC 4/689 Going Back a little Cameras.ppt.
Multi-linear Systems and Invariant Theory in the Context of Computer Vision and Graphics CS329 Amnon Shashua.
Affine Structure from Motion
Single-view geometry Odilon Redon, Cyclops, 1914.
Camera diagram Computing K from 1 image HZ8.8 IAC and K HZ8.5 Camera matrix from F HZ9.5 IAC HZ , 8.5 Extracting camera parameters HZ6.2 Camera matrix.
EECS 274 Computer Vision Affine Structure from Motion.
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)
ROBOT VISION Lesson 4: Camera Models and Calibration Matthias Rüther Slides partial courtesy of Marc Pollefeys Department of Computer Science University.
Camera Model Calibration
Single-view geometry Odilon Redon, Cyclops, 1914.
Uncalibrated reconstruction Calibration with a rig Uncalibrated epipolar geometry Ambiguities in image formation Stratified reconstruction Autocalibration.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Camera Models class 8 Multiple View Geometry Comp Marc Pollefeys.
Parameter estimation class 5 Multiple View Geometry CPSC 689 Slides modified from Marc Pollefeys’ Comp
Camera Calibration Course web page: vision.cis.udel.edu/cv March 24, 2003  Lecture 17.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Nazar Khan PUCIT Lecture 19
Homogeneous Coordinates (Projective Space)
Parameter estimation class 5
Epipolar geometry.
CS Visual Recognition Projective Geometry Projective Geometry is a mathematical framework describing image formation by perspective camera. Under.
Study the mathematical relations between corresponding image points.
Multiple View Geometry Comp Marc Pollefeys
Uncalibrated Geometry & Stratification
The Pinhole Camera Model
Presentation transcript:

Camera Models CMPUT 498/613 Richard Hartley and Andrew Zisserman, Multiple View Geometry, Cambridge University Publishers, 2000 Readings: HZ Ch 6, 7

Hierarchy of cameras Camera center Image plane Object plane X 0 (origin) x persp Perspective: x parap Para-perspective: First order approximation of perspective x orth Orthographic: Weak perspective: x wp

Examples of camera projections perspectiveOrthographic (parallel)

Animal eye: a looonnng time ago. Pinhole perspective projection: Brunelleschi, XV th Century. Camera obscura: XVI th Century. Photographic camera: Niepce, 1816.

Pinhole camera model

Principal point offset principal point

Principal point offset calibration matrix

Camera rotation and translation

CCD camera

Finite projective camera non-singular 11 dof (5+3+3) decompose P in K,R,C? {finite cameras}={P 4x3 | det M≠0} If rank P=3, but rank M<3, then cam at infinity

Camera anatomy Camera center Column points Principal plane Axis plane Principal point Principal ray

Column vectors Image points corresponding to X,Y,Z directions and origin

Row vectors note: p 1,p 2 dependent on image reparametrization Camera center null-space camera projection matrix, (3 plane intersection)

The principal point principal point

Action of projective camera on point Forward projection Back-projection (pseudo-inverse)

Camera matrix decomposition Finding the camera center (use SVD to find null-space) Finding the camera orientation and internal parameters (use RQ decomposition ~QR) Q R =( ) -1 = Q R (if only QR, invert)

When is skew non-zero? 1  arctan(1/s) for CCD/CMOS, almost always s=0 Image from image, s≠0 possible (non coinciding principal axis) resulting camera:

Euclidean vs. projective general projective interpretation Meaningfull decomposition in K,R,t requires Euclidean image and space Camera center is still valid in projective space Principal plane requires affine image and space Principal ray requires affine image and Euclidean space

Cameras at infinity Camera center at infinity Affine and non-affine cameras Definition: affine camera has P 3T =(0,0,0,1)

Affine cameras

modifying p 34 corresponds to moving along principal ray

Affine cameras now adjust zoom to compensate

Error in employing affine cameras point on plane parallel with principal plane and through origin, then general points

Affine imaging conditions Approximation should only cause small error  much smaller than d 0 2.Points close to principal point (i.e. small field of view)

Decomposition of P ∞ absorb d 0 in K 2x2 alternatives, because 8dof (3+3+2), not more

Summary parallel projection canonical representation calibration matrix principal point is not defined

A hierarchy of affine cameras Orthographic projection Scaled orthographic projection (5dof) (6dof)

A hierarchy of affine cameras Weak perspective projection (useful infinite appr. of unknown CCD camera) (7dof)

1.Affine camera=camera with principal plane coinciding with  ∞ 2.Affine camera maps parallel lines to parallel lines 3.No center of projection, but direction of projection P A D=0 (point on  ∞ ) A hierarchy of affine cameras Affine camera (8dof)

Hierarchy of cameras Camera center Image plane Object plane X 0 (origin) x persp Perspective: x parap Para-perspective: First order approximation of perspective x orth Orthographic: Weak perspective: x wp

Other Cameras Pushbroom cameras Straight lines are not mapped to straight lines! (otherwise it would be a projective camera) (11dof) Line cameras (5dof) Null-space PC=0 yields camera center Also decomposition

Projection equationProjection equation x i =P i X x i =P i X Resection:Resection: –x i,X P i A 3D Vision Problem: Multi-view geometry - resection Given image points and 3D points calculate camera projection matrix.

Estimating camera matrix P Given a number of correspondences between 3- D points and their 2-D image projections X i  x i, we would like to determine the camera projection matrix P such that x i = PX i for all iGiven a number of correspondences between 3- D points and their 2-D image projections X i  x i, we would like to determine the camera projection matrix P such that x i = PX i for all i

A Calibration Target courtesy of B. Wilburn XZ Y XiXi xixi

Estimating P : The Direct Linear Transformation (DLT) Algorithm x i = PX i is an equation involving homogeneous vectors, so PX i and x i need only be in the same direction, not strictly equalx i = PX i is an equation involving homogeneous vectors, so PX i and x i need only be in the same direction, not strictly equal We can specify “same directionality” by using a cross product formulation:We can specify “same directionality” by using a cross product formulation:

DLT Camera Matrix Estimation: Preliminaries Let the image point x i = (x i, y i, w i ) T (remember that X i has 4 elements)Let the image point x i = (x i, y i, w i ) T (remember that X i has 4 elements) Denoting the j th row of P by p jT (a 4-element row vector), we have:Denoting the j th row of P by p jT (a 4-element row vector), we have:

DLT Camera Matrix Estimation: Step 1 Then by the definition of the cross product,Then by the definition of the cross product, x i  PX i is: x i  PX i is:

DLT Camera Matrix Estimation: Step 2 The dot product commutes, so p jT X i = X T i p j, and we can rewrite the preceding as:The dot product commutes, so p jT X i = X T i p j, and we can rewrite the preceding as:

DLT Camera Matrix Estimation: Step 3 Collecting terms, this can be rewritten as a matrix product:Collecting terms, this can be rewritten as a matrix product: where 0 T = (0, 0, 0, 0). This is a 3 x 12 matrix times a 12-element column vector p = (p 1T, p 2T, p 3T ) T

What We Just Did

DLT Camera Matrix Estimation: Step 4 There are only two linearly independent rows hereThere are only two linearly independent rows here –The third row is obtained by adding x i times the first row to y i times the second and scaling the sum by -1/w i

DLT Camera Matrix Estimation: Step 4 So we can eliminate one row to obtain the following linear matrix equation for the i th pair of corresponding points:So we can eliminate one row to obtain the following linear matrix equation for the i th pair of corresponding points: Write this as A i p = 0Write this as A i p = 0

DLT Camera Matrix Estimation: Step 5 Remember that there are 11 unknowns which generate the 3 x 4 homogeneous matrix P (represented in vector form by p )Remember that there are 11 unknowns which generate the 3 x 4 homogeneous matrix P (represented in vector form by p ) Each point correspondence yields 2 equations (the two row of A i )Each point correspondence yields 2 equations (the two row of A i )  We need at least 5 ½ point correspondences to solve for p Stack A i to get homogeneous linear system A p = 0Stack A i to get homogeneous linear system A p = 0

Experiment: