Camera calibration and single view metrology Class 4 Read Zhang’s paper on calibration

Slides:



Advertisements
Similar presentations
Zhengyou Zhang Vision Technology Group Microsoft Research
Advertisements

Camera Calibration.
More on single-view geometry
3D reconstruction.
Self-calibration.
Fisheye Camera Calibration Arunkumar Byravan & Shai Revzen University of Pennsylvania.
Single View Metrology A. Criminisi, I. Reid, and A. Zisserman University of Oxford IJCV Nov 2000 Presentation by Kenton Anderson CMPT820 March 24, 2005.
Structure from motion.
Single-view metrology
More on single-view geometry class 10 Multiple View Geometry Comp Marc Pollefeys.
Robot Vision SS 2008 Matthias Rüther 1 ROBOT VISION Lesson 6: Shape from Stereo Matthias Rüther Slides partial courtesy of Marc Pollefeys Department of.
3D reconstruction class 11
Used slides/content with permission from
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
Camera models and single view geometry. Camera model.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Feature tracking Class 5 Read Section 4.1 of course notes Read Shi and Tomasi’s paper on good features.
Camera model Relation between pixels and rays in space ?
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
Panorama signups Panorama project issues? Nalwa handout Announcements.
Single View Metrology Class 3. 3D photography course schedule (tentative) LectureExercise Sept 26Introduction- Oct. 3Geometry & Camera modelCamera calibration.
Computer Vision : CISC4/689
Lecture 16: Single-view modeling, Part 2 CS6670: Computer Vision Noah Snavely.
Single-view geometry Odilon Redon, Cyclops, 1914.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
More on single-view geometry class 10 Multiple View Geometry Comp Marc Pollefeys.
Camera Calibration from Planar Patterns Homework 2 Help SessionCS223bStanford University Mitul Saha (courtesy: Jean-Yves Bouguet, Intel)
3D Urban Modeling Marc Pollefeys Jan-Michael Frahm, Philippos Mordohai Fall 2006 / Comp Tue & Thu 14:00-15:15.
Camera models and calibration Read tutorial chapter 2 and 3.1 Szeliski’s book pp
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.
Computer Vision Calibration Marc Pollefeys COMP 256 Read F&P Chapter 2 Some slides/illustrations from Ponce, Hartley & Zisserman.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Geometria della telecamera. the image of a point P belongs to the line (P,O) p P O p = image of P = image plane ∩ line(O,P) interpretation line of p:
Structure Computation. How to compute the position of a point in 3- space given its image in two views and the camera matrices of those two views Use.
Today: Calibration What are the camera parameters?
Single-view modeling, Part 2 CS4670/5670: Computer Vision Noah Snavely.
Single View Geometry Course web page: vision.cis.udel.edu/cv April 7, 2003  Lecture 19.
Epipolar geometry The fundamental matrix and the tensor
Camera Calibration class 9 Multiple View Geometry Comp Marc Pollefeys.
Projective Geometry. Projection Vanishing lines m and n.
Metrology 1.Perspective distortion. 2.Depth is lost.
Camera Model & Camera Calibration
Robot Vision SS 2007 Matthias Rüther 1 ROBOT VISION Lesson 6a: Shape from Stereo, short summary Matthias Rüther Slides partial courtesy of Marc Pollefeys.
Single View Geometry Course web page: vision.cis.udel.edu/cv April 9, 2003  Lecture 20.
Vision Review: Image Formation Course web page: September 10, 2002.
Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction
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.
Ch. 3: Geometric Camera Calibration
A Flexible New Technique for Camera Calibration Zhengyou Zhang Sung Huh CSPS 643 Individual Presentation 1 February 25,
EECS 274 Computer Vision Geometric Camera Calibration.
ROBOT VISION Lesson 4: Camera Models and Calibration Matthias Rüther Slides partial courtesy of Marc Pollefeys Department of Computer Science University.
Auto-calibration we have just calibrated using a calibration object –another calibration object is the Tsai grid of Figure 7.1 on HZ182, which can be used.
Single-view geometry Odilon Redon, Cyclops, 1914.
More on single-view geometry class 10 Multiple View Geometry Comp Marc Pollefeys.
Project 1 Due NOW Project 2 out today –Help session at end of class Announcements.
Project 2 went out on Tuesday You should have a partner You should have signed up for a panorama kit Announcements.
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.
Calibration ECE 847: Digital Image Processing Stan Birchfield Clemson University.
Geometric Camera Calibration
Parameter estimation class 5
More on single-view geometry class 10
Camera Calibration class 9
Uncalibrated Geometry & Stratification
Projective geometry Readings
Presentation transcript:

Camera calibration and single view metrology Class 4 Read Zhang’s paper on calibration Read Criminisi’s paper on single view metrology

Camera model Relation between pixels and rays in space ?

Camera model Perspective camera model with radial distortion: R R

DLT alternative derivation eliminate λ: projection equations: equation for iterative algorithm:

DLT alternative derivation

Degenerate configurations (i)Points lie on plane and/or single line passing through projection center (ii)Camera and points on a twisted cubic

Scale data to values of order 1 1.move center of mass to origin 2.scale to yield order 1 values Data normalization

Line correspondences Extend DLT to lines (back-project line) (2 independent eq.)

Geometric error

Gold Standard algorithm Objective Given n≥6 2D to 2D point correspondences {X i ↔x i ’}, determine the Maximum Likelyhood Estimation of P Algorithm (i)Linear solution: (a)Normalization: (b)DLT (ii)Minimization of geometric error: using the linear estimate as a starting point minimize the geometric error: (iii)Denormalization: ~~ ~

Calibration example (i)Canny edge detection (ii)Straight line fitting to the detected edges (iii)Intersecting the lines to obtain the images corners typically precision <1/10 (H&Z rule of thumb: 5 n constraints for n unknowns)

Errors in the world Errors in the image and in the world Errors in the image (standard case)

Restricted camera estimation Minimize geometric error  impose constraint through parametrization Find best fit that satisfies skew s is zero pixels are square principal point is known Minimize algebraic error  assume map from param q  P=K[R|-RC], i.e. p=g(q)  minimize ||Ag(q)||

Restricted camera estimation Initialization Use general DLT Clamp values to desired values, e.g. s=0,  x =  y Note: can sometimes cause big jump in error Alternative initialization Use general DLT Impose soft constraints gradually increase weights Note: doesn’t help to deal with planar degeneracy

Image of absolute conic Image of absolute conic is related to camera intrinsics Useful for calibration and self-calibration

A simple calibration device (i)compute H for each square (corners  (0,0),(1,0),(0,1),(1,1)) (ii)compute the imaged circular points H(1,±i,0) T (iii)fit a conic to 6 circular points (iv)compute K from  through cholesky factorization (≈ Zhang’s calibration method)

Some typical calibration algorithms Tsai calibration Zhangs calibration Z. Zhang. A flexible new technique for camera calibration. IEEE Transactions on Pattern Analysis and Machine Intelligence, 22(11): , Z. Zhang. Flexible Camera Calibration By Viewing a Plane From Unknown Orientations. International Conference on Computer Vision (ICCV'99), Corfu, Greece, pages , September Jean-Yves Bouguet’s matlab implementation: Reg Willson’s implementation:

Assignment 1 (due by next Tuesday before class) Find a camera Calibration approach 1 Build/use calibration grid (2 orthogonal planes) Perform calibration using (a) DLT and (b) complete gold standard algorithm (assume error only in images, model radial distortion, ok to click points by hand) Calibration approach 2 Build/use planar calibration pattern Use Bouguet’s matlab calibration toolbox (≈Zhang’s approach) (or implement it yourself for extra points) Compare results of approach 1(a),1(b) and 2 Make short report of findings and be ready to discuss in class

Single View Metrology courtesy of Antonio Criminisi

Background: Projective geometry of 1D The cross ratio Invariant under projective transformations 3DOF (2x2-1)

Vanishing points Under perspective projection points at infinity can have a finite image The projection of 3D parallel lines intersect at vanishing points in the image

Basic geometry

Allows to relate height of point to height of camera

Homology mapping between parallel planes Allows to transfer point from one plane to another

Single view measurements

Forensic applications 190.6±2.9 cm 190.6±4.1 cm A. Criminisi, I. Reid, and A. Zisserman. Computing 3D euclidean distance from a single view. Technical Report OUEL 2158/98, Dept. Eng. Science, University of Oxford, 1998.

La Flagellazione di Cristo (1460) Galleria Nazionale delle Marche by Piero della Francesca ( )

Next class Feature tracking and matching