Camera Geometry and Calibration Thanks to Martial Hebert.

Slides:



Advertisements
Similar presentations
C280, Computer Vision Prof. Trevor Darrell Lecture 2: Image Formation.
Advertisements

Single-view geometry Odilon Redon, Cyclops, 1914.
Epipolar Geometry.
3D Geometry for Computer Graphics
Computer Vision, Robert Pless
Lecture 11: Two-view geometry
3D reconstruction.
16421: Vision Sensors Lecture 6: Radiometry and Radiometric Calibration Instructor: S. Narasimhan Wean 5312, T-R 1:30pm – 2:50pm.
Computer vision: models, learning and inference
Two-view geometry.
Camera Calibration. Issues: what are intrinsic parameters of the camera? what is the camera matrix? (intrinsic+extrinsic) General strategy: view calibration.
CSc D Computer Vision – Ioannis Stamos 3-D Computer Vision CSc Camera Calibration.
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.
Single-view metrology
3D Geometry and Camera Calibration. 3D Coordinate Systems Right-handed vs. left-handedRight-handed vs. left-handed x yz x yz.
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
Lecture 7: Image Alignment and Panoramas CS6670: Computer Vision Noah Snavely What’s inside your fridge?
CS485/685 Computer Vision Prof. George Bebis
Uncalibrated Epipolar - Calibration
Calibration Dorit Moshe.
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
Projected image of a cube. Classical Calibration.
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Cameras, lenses, and calibration
Basic Principles of Imaging and Photometry Lecture #2 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
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.
Introduction à la vision artificielle III Jean Ponce
Multi-view geometry.
Epipolar geometry The fundamental matrix and the tensor
Projective cameras Motivation Elements of Projective Geometry Projective structure from motion Planches : –
© 2005 Yusuf Akgul Gebze Institute of Technology Department of Computer Engineering Computer Vision Geometric Camera Calibration.
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.
Geometric Models & Camera Calibration
16421: Vision Sensors Lecture 7: High Dynamic Range Imaging Instructor: S. Narasimhan Wean 5312, T-R 1:30pm – 3:00pm.
Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:
Geometric Camera Models
Vision Review: Image Formation Course web page: September 10, 2002.
Lecture 03 15/11/2011 Shai Avidan הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Affine Structure from Motion
Single-view geometry Odilon Redon, Cyclops, 1914.
A Flexible New Technique for Camera Calibration Zhengyou Zhang Sung Huh CSPS 643 Individual Presentation 1 February 25,
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)
Reconnaissance d’objets et vision artificielle Jean Ponce Equipe-projet WILLOW ENS/INRIA/CNRS UMR 8548 Laboratoire.
Computer vision: models, learning and inference M Ahad Multiple Cameras
776 Computer Vision Jan-Michael Frahm & Enrique Dunn Spring 2013.
MASKS © 2004 Invitation to 3D vision Uncalibrated Camera Chapter 6 Reconstruction from Two Uncalibrated Views Modified by L A Rønningen Oct 2008.
Single-view geometry Odilon Redon, Cyclops, 1914.
Uncalibrated reconstruction Calibration with a rig Uncalibrated epipolar geometry Ambiguities in image formation Stratified reconstruction Autocalibration.
Structure from motion Multi-view geometry Affine structure from motion Projective structure from motion Planches : –
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
Lecture 16: Image alignment
Calibrating a single camera
Computer vision: models, learning and inference
Homogeneous Coordinates (Projective Space)
Two-view geometry Computer Vision Spring 2018, Lecture 10
Epipolar geometry.
Geometric Camera Models
Lecturer: Dr. A.H. Abdul Hafez
Uncalibrated Geometry & Stratification
Reconstruction.
Single-view geometry Odilon Redon, Cyclops, 1914.
Presentation transcript:

Camera Geometry and Calibration Thanks to Martial Hebert

Basic transformations (reminder)…. Det(R) = +1

Basic transformations (reminder)….

P z x y  C p u v Retinal plane f Normalized image plane 1

Scale in x direction between world coordinates and image coordinates Skew of camera axes.  = 90 o if the axes are perpendicular Principal point = Image coordinates of the projection of camera origin on the retina Rotation between world coordinate system and camera Translation between world coordinate system and camera Scale in y direction between world coordinates and image coordinates Standard Perspective Camera Model

Alternate Notations 4 3 3x3 3x1 By rows:By blocks:By components: 3x33x1 Intrinsic parameter matrix Extrinsic parameter matrix Q: Is a given 3x4 matrix M the projection matrix of some camera? A: Yes, if and only if det(A) is not zero Q: Is the decomposition unique? A: There are multiple equivalent solutions

Applying the Projection Matrix Homogeneous coordinates of point in image Homogeneous coordinates of point in world Homogeneous vector transformation: p proportional to MP Computation of individual coordinates:

Observations: is the equation of a plane of normal direction a 1 From the projection equation, it is also the plane defined by: u = 0 Similarly: (a 2,b 2 ) describes the plane defined by: v = 0 (a 3,b 3 ) describes the plane defined by:  That is the plane passing through the pinhole (z = 0) Geometric Interpretation Projection equation:

u v a3a3 C Geometric Interpretation: The rows of the projection matrix describe the three planes defined by the image coordinate system a1a1 a2a2

p P Other useful geometric properties Q: Given an image point p, what is the direction of the corresponding ray in space? A: Q: Can we compute the position of the camera center  ? A:

Affine Cameras Example: Weak-perspective projection model Projection defined by 8 parameters Parallel lines are projected to parallel lines The transformation can be written as a direct linear transformation 2x4 projection matrix 2x2 intrinsic parameter matrix 2x3 matrix = first 2 rows of the rotation matrix between world and camera frames First 2 components of the translation between world and camera frames Note: If the last row is the coordinates equations degenerate to: The mapping between world and image coordinates becomes linear. This is an affine camera.

Calibration: Recover M from scene points P 1,..,P N and the corresponding projections in the image plane p 1,..,p N In other words: Find M that minimizes the distance between the actual points in the image, p i, and their predicted projections MP i Problems: The projection is (in general) non-linear M is defined up to an arbitrary scale factor

Write relation between image point, projection matrix, and point in space: Write non-linear relations between coordinates: Make them linear: The math for the calibration procedure follows a recipe that is used in many (most?) problems involving camera geometry, so it’s worth remembering:

Put all the relations for all the points into a single matrix: Solve by minimizing: Subject to: Write them in matrix form:

Slight digression: Homogeneous Least Squares Suppose that we want to estimate the best vector of parameters X from matrices V i computed from input data such that VX i = 0 We can do this by minimizing: Since V=0 is a trivial solution, we need to constrain the magnitude of V to be non-zero, for example: |V| = 1. The problem becomes: The key result (which we will use 50 times in this class) is: For any symmetric matrix V, the minimum of X T VX is reached at X = eigenvector of V corresponding to the smallest eigenvalue.

P1P1 z x y PiPi (ui,vi)(ui,vi) (u1,v1)(u1,v1) MP i Calibration

We can follow exactly the same recipe with non-linear distortion: Write non-linear relations between coordinates: Make them linear:

Put all the relations for all the points into a single matrix: Solve by minimizing: Subject to: Write them in matrix form:

From Faugeras

p

links.html MATLAB calibration toolbox Intel OpenCV calibration package

Radiometric Calibration Important preprocessing step for many vision and graphics algorithms Use a color chart with precisely known reflectances. Irradiance = const * Reflectance Pixel Values 3.1%9.0%19.8%36.2%59.1%90% Use more camera exposures to fill up the curve. Method assumes constant lighting on all patches and works best when source is far away (example sunlight). Unique inverse exists because g is monotonic and smooth for all cameras g ? ?

Measured Response Curves of Cameras [Grossberg, Nayar]

Dark Current Noise Subtraction Dark current noise is high for long exposure shots To remove (some) of it: Calibrate the camera (make response linear) Capture the image of the scene as usual Cover the lens with the lens cap and take another picture Subtract the second image from the first image

Dark Current Noise Subtraction Original image + Dark Current Noise Image with lens cap on Result of subtraction Copyright Timo Autiokari,