Projective Geometry and Camera Models

Slides:



Advertisements
Similar presentations
3D reconstruction.
Advertisements

Primitives Behaviour at infinity HZ 2.2 Projective DLT alg Invariants
Recovery of affine and metric properties from images in 2D Projective space Ko Dae-Won.
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.
Projective Geometry- 3D
Jan-Michael Frahm, Enrique Dunn Spring 2012
Recovering metric and affine properties from images
Camera Models CMPUT 498/613 Richard Hartley and Andrew Zisserman, Multiple View Geometry, Cambridge University Publishers, 2000 Readings: HZ Ch 6, 7.
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.
Multiple View Geometry Projective Geometry & Transformations of 2D Vladimir Nedović Intelligent Systems Lab Amsterdam (ISLA) Informatics Institute,
1 Basic geometric concepts to understand Affine, Euclidean geometries (inhomogeneous coordinates) projective geometry (homogeneous coordinates) plane at.
The 2D Projective Plane Points and Lines.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Projective 2D & 3D geometry course 2
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
Projective 2D geometry Appunti basati sulla parte iniziale del testo
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
3D photography Marc Pollefeys Fall 2007
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.
Single-view geometry Odilon Redon, Cyclops, 1914.
The Pinhole Camera Model
The Image Formation Pipeline
3D photography Marc Pollefeys Fall 2004 / Comp Tue & Thu 9:30-10:45
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Project Geometry Jiecai He (Jake)
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Projective Geometry and Geometric Invariance in Computer Vision Babak N. Araabi Electrical and Computer Eng. Dept. University of Tehran Workshop on image.
Robot Vision SS 2008 Matthias Rüther 1 ROBOT VISION Lesson 2: Projective Geometry Matthias Rüther Slides courtesy of Marc Pollefeys Department of Computer.
Camera Geometry and Calibration Thanks to Martial Hebert.
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.
Geometric Models & Camera Calibration
Projective Geometry. Projection Vanishing lines m and n.
Metrology 1.Perspective distortion. 2.Depth is lost.
Geometric Camera Models
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.
Part II Plane Equation and Epipolar Geometry. Duality.
Single-view geometry Odilon Redon, Cyclops, 1914.
Uncalibrated reconstruction Calibration with a rig Uncalibrated epipolar geometry Ambiguities in image formation Stratified reconstruction Autocalibration.
Camera Models class 8 Multiple View Geometry Comp Marc Pollefeys.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Calibrating a single camera
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
Homogeneous Coordinates (Projective Space)
CS Visual Recognition Projective Geometry Projective Geometry is a mathematical framework describing image formation by perspective camera. Under.
Computer Graphics Recitation 12.
Multiple View Geometry Comp Marc Pollefeys
Geometric Camera Models
Uncalibrated Geometry & Stratification
The Pinhole Camera Model
Presentation transcript:

Projective Geometry and Camera Models ENEE 731 Image Understanding Kaushik Mitra

Camera 3D to 2D mapping 2D to 3D mapping

Preliminaries Projective geometry Projective spaces (P2) Homogenous coordinates Projective transformations (Homography)

Why Projective Geometry? Parallel lines converge to a point 2D -2D transformation Projective transformation (Homography)

Projective space P2 Projective space: set of points Each point is a line in R3 passing through origin Motivated from camera geometry Alternative way P=(x,y,z) and P’=(x’,y’,z’) equivalent if and only if P=λP’ λ ≠ 0

P2=R2 U P1 (x, y, z) ≈ (λx, λy, λz) P2 can be divided into two subsets Points with z ≠ 0 Points with z= 0 If z ≠ 0, (x, y, z) ≈ (x/z, y/z, 1) one-to-one mapping with R2 If z=0 (x, y, 0) points at infinity line at infinity P1 P2 = R2 U P1 Homogenous coordinates P = (x, y, z) (up to a scale)

Projective Transformation (Homography) Invertible mapping h from P2 to P2 Lines maps to lines x1, x2, x3 lie on a line  h(x1), h(x2), h(x3) lie on a line

Homography matrix Theorem x’=Hx h:P2->P2 is homography  h(x)=Hx, H non-singular x’=Hx H, a homogenous matrix (up to scale) 8 dof

Hierarchy of Transformations Euclidean < Similarity < Affine < Projective Invariants Quantities that are preseved Euclidean: rotation and translation x’ = HEx = [R t; 0T 1] Invariants: length, angle, area

Hierarchy of Transformations Similarity: isotropic scale + (Euclidean) x’ = HSx = [sR t; 0T 1] Invariants: angle, ratios of length and area Affine: non-isotropic scales and skew x’ = HAx = [A t; 0T 1]; A non-singular Invariants: Parallel lines, ratio of areas Projective: x’ = HPx = [A t; vT u]x Note: parallel lines not preserved Invariants: Colinearity, cross-ratio

Generalization: Pn P3 = R3 + P2 P2: plane at infinity Homogenous coordinates: X= (X1, X2, X3, X4) Projective transformation X’ = HX

Camera Models

Camera Models Mapping 3D to 2D: Camera Matrices Central projection Pin-hole camera Finite projective camera Parallel projection Orthographic camera Affine camera

Pinhole Camera Geometry Camera center, C Image plane Principle axis Principle point Camera coordinate system C as origin Image plane at Z=f (X, Y, Z)T -> (fX/Z, fY/Z)T

Camera Matrix (X, Y, Z)T -> (fX/Z, fY/Z)T Homogenous coordinates (X, Y, Z, 1)T -> (fX, fY, Z)T Transformation: diag(f f 1)[I | 0] Camera projection matrix: x= PX P = diag(f, f, 1)[I | 0 ], a 3×4 matrix

Principle Point Offset (px, py): principle point (X, Y, Z) -> (fX/Z+px, fY/Z+py) x = K[I | 0]X Camera matrix: K[I | 0] K: Internal parameter matrix

Camera Rotation and Translation World coordinate system , in inhomogenous coordinates P = K[R | t] K: Internal parameters R,t: External parameters

Finite Projective Camera Generalize K αx, αy: unequal scale factors s: skew parameter P = [KR | Kt] = [M | p4] M = KR non-singular, rank 3 General projective cameras Homogenous 3×4 matrix of rank 3

General Projective Camera Given P, what can we say about the camera? Camera center? P is a 3×4 matrix PC=0 Consider the line joining C and A: X(λ) = λA + (1-λ)C x = PX(λ) = λPA C is the camera center

From 2D to 3D Given a point x, find the ray Two points on ray Camera center Another point P+x, where P+ is the pseudo-inverse X(λ) = λP+x + (1-λ)C

Parallel Projection Central Projection: P=[I | 0] Parallel Projection: Projection along Z-axis

Hierarchy of Parallel Projection Orthographic projection Scaled orthographic projection Weak perspective projection Affine projection

Orthographic Projection Projection along Z-axis Dof: 5

Generalization of Orthographic Projection (O.P.) Scaled orthographic projection O. P. followed by isotropic scaling Dof : 6 Weak perspective projection O.P. with non-isotropi c scaling Dof: 7 Affine camera (projection) Plus skew Dof: 8

Properties of Affine Camera Last row is (0 0 0 1) Parallel world line maps to parallel image lines Camera center at infinity

How to get an Affine Camera?

Computation of Camera Matrix P

Approach for Computing P x = PX Estimate P from 3D-2D correspondences Xi ↔ xi Compute K, R, t from P

Basic Equations for Computing P Each Xi ↔ xi satisfy xi = PXi (upto a scale) xi × PXi = 0 Linear in P Aip = 0, where p = vec(P) 2 linearly independent eqns. per corrs. P is a 3×4 homogenous matrix => 11 dofs # of correspondences ≥ 6

Computing P Want to solve: Ap = 0, with p≠0 In presence of noise, Eigen-value solution Algebraic cost Geometric cost: ML estimate of P Non-linear optimization: use Newton’s method

Summary for Computing P Form A from 3D-2D correspondences Normalization step (see reference 1) Solve algebraic cost Solve geometric cost starting from algebraic soln. Denormalization step (see reference 1)

Computing K from P P = [M | p4] We know P = K[R | t] = [KR | Kt] Decompose M using QR decomposition Get K and R Obtain t as K-1p4

Summary Projective geometry: P2 and P3 Camera models Central projection (Pin hole camera) Parallel projection (affine camera) Estimation of Camera Model P Estimation of internal parameter K

References 1) Multi-view Geometry (Ch 2, 6, 7) Hartley and Zisserman 2) Computer Vision: Algorithms and Applications Richard Szeliski

Principle Plane PX = (x, y, 0)T P3 represents principle plane => P3TX = 0, where P = [P1T; P2T; P3T] P3 represents principle plane