Single-view metrology

Slides:



Advertisements
Similar presentations
Vanishing points  .
Advertisements

Single-view geometry Odilon Redon, Cyclops, 1914.
Single-view Metrology and Camera Calibration
CS 691 Computational Photography Instructor: Gianfranco Doretto 3D to 2D Projections.
Paris town hall.
Camera calibration and epipolar geometry
Image alignment Image from
Structure from motion.
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.
Lecture 19: Single-view modeling CS6670: Computer Vision Noah Snavely.
list – let me know if you have NOT been getting mail Assignment hand in procedure –web page –at least 3 panoramas: »(1) sample sequence, (2) w/Kaidan,
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
Announcements Project 2 questions Midterm out on Thursday
Projective geometry Slides from Steve Seitz and Daniel DeMenthon
3D reconstruction of cameras and structure x i = PX i x’ i = P’X i.
Lecture 20: Light, color, and reflectance CS6670: Computer Vision Noah Snavely.
Panorama signups Panorama project issues? Nalwa handout Announcements.
Lecture 16: Single-view modeling, Part 2 CS6670: Computer Vision Noah Snavely.
Single-view geometry Odilon Redon, Cyclops, 1914.
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 02/26/15 1.
CSE 576, Spring 2008Projective Geometry1 Lecture slides by Steve Seitz (mostly) Lecture presented by Rick Szeliski.
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Cameras, lenses, and calibration
CS 558 C OMPUTER V ISION Lecture IX: Dimensionality Reduction.
Single-view Metrology and Cameras Computational Photography Derek Hoiem, University of Illinois 10/8/13.
Single-view metrology
Projective Geometry and Single View Modeling CSE 455, Winter 2010 January 29, 2010 Ames Room.
Single-view modeling, Part 2 CS4670/5670: Computer Vision Noah Snavely.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Automatic Camera Calibration
Image Stitching Ali Farhadi CSE 455
Camera Geometry and Calibration Thanks to Martial Hebert.
Epipolar geometry The fundamental matrix and the tensor
© 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.
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 01/25/11 1.
Single View Geometry Course web page: vision.cis.udel.edu/cv April 9, 2003  Lecture 20.
Single-view 3D Reconstruction Computational Photography Derek Hoiem, University of Illinois 10/12/10 Some slides from Alyosha Efros, Steve Seitz.
Project 2 –contact your partner to coordinate ASAP –more work than the last project (> 1 week) –you should have signed up for panorama kitssigned up –sign.
Peripheral drift illusion. Multiple views Hartley and Zisserman Lowe stereo vision structure from motion optical flow.
Computational Photography Derek Hoiem, University of Illinois
Single-view geometry Odilon Redon, Cyclops, 1914.
Single-view Metrology and Cameras Computational Photography Derek Hoiem, University of Illinois 10/06/15.
Feature Matching. Feature Space Outlier Rejection.
Reconnaissance d’objets et vision artificielle Jean Ponce Equipe-projet WILLOW ENS/INRIA/CNRS UMR 8548 Laboratoire.
Last Two Lectures Panoramic Image Stitching
More with Pinhole + Single-view Metrology
Single-view geometry Odilon Redon, Cyclops, 1914.
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.
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
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
Single-view metrology
CS 790: Introduction to Computational Vision
Homogeneous Coordinates (Projective Space)
Epipolar geometry.
Projective geometry Readings
Announcements list – let me know if you have NOT been getting mail
Single-view geometry Odilon Redon, Cyclops, 1914.
Announcements Project 2 extension: Friday, Feb 8
Camera model and calibration
Presentation transcript:

Single-view metrology Magritte, Personal Values, 1952 Many slides from S. Seitz, D. Hoiem

Review: Camera projection matrix camera coordinate system world coordinate system intrinsic parameters extrinsic parameters

Camera parameters Intrinsic parameters Principal point coordinates Focal length Pixel magnification factors Skew (non-rectangular pixels) Radial distortion

Camera parameters Intrinsic parameters Extrinsic parameters Principal point coordinates Focal length Pixel magnification factors Skew (non-rectangular pixels) Radial distortion Extrinsic parameters Rotation and translation relative to world coordinate system

Camera calibration

Camera calibration Given n points with known 3D coordinates Xi and known image projections xi, estimate the camera parameters Xi xi

Camera calibration: Linear method Two linearly independent equations

Camera calibration: Linear method P has 11 degrees of freedom One 2D/3D correspondence gives us two linearly independent equations Homogeneous least squares: find p minimizing ||Ap||2 Solution given by eigenvector of ATA with smallest eigenvalue 6 correspondences needed for a minimal solution

Camera calibration What if world coordinates of reference 3D points are not known? We can use scene features such as vanishing points Vanishing point line Vertical vanishing (at infinity) Slide from Efros, Photo from Criminisi

Recall: Vanishing points image plane vanishing point v camera center line in the scene All lines having the same direction share the same vanishing point

Computing vanishing points X0 Xt X∞ is a point at infinity, v is its projection: v = PX∞ The vanishing point depends only on line direction All lines having direction D intersect at X∞

Calibration from vanishing points Let us align the world coordinate system with three orthogonal vanishing directions in the scene: v1 v3 . v2

Calibration from vanishing points p1 = P(1,0,0,0)T – the vanishing point in the x direction Similarly, p2 and p3 are the vanishing points in the y and z directions p4 = P(0,0,0,1)T – projection of the origin of the world coordinate system Problem: we can only know the four columns up to independent scale factors, additional constraints needed to solve for them

Calibration from vanishing points Let us align the world coordinate system with three orthogonal vanishing directions in the scene: Each pair of vanishing points gives us a constraint on the focal length and principal point

Calibration from vanishing points Cannot recover focal length, principal point is the third vanishing point Can solve for focal length, principal point

Rotation from vanishing points Thus, Get λ by using the constraint ||ri||2=1.

Calibration from vanishing points: Summary Solve for K (focal length, principal point) using three orthogonal vanishing points Get rotation directly from vanishing points once calibration matrix is known Advantages No need for calibration chart, 2D-3D correspondences Could be completely automatic Disadvantages Only applies to certain kinds of scenes Inaccuracies in computation of vanishing points Problems due to infinite vanishing points

Making measurements from a single image http://en.wikipedia.org/wiki/Ames_room

Recall: Measuring height 5.3 1 2 3 4 5 3.3 Camera height 2.8

Measuring height without a ruler Z O ground plane Compute Z from image measurements Need more than vanishing points to do this

The cross-ratio A projective invariant: quantity that does not change under projective transformations (including perspective projection)

The cross-ratio A projective invariant: quantity that does not change under projective transformations (including perspective projection) What are invariants for other types of transformations (similarity, affine)? The cross-ratio of four points: P4 P3 P2 P1

Measuring height  scene cross ratio T (top of object) C image cross ratio r t b R (reference point) H R vZ B (bottom of object) ground plane

Measuring height without a ruler

vanishing line (horizon) vz r vanishing line (horizon) t0 t H vx v vy H R b0 b image cross ratio

2D lines in homogeneous coordinates Line equation: ax + by + c = 0 Line passing through two points: Intersection of two lines: What is the intersection of two parallel lines?

vanishing line (horizon) vz r vanishing line (horizon) t0 t H vx v vy H R b0 b image cross ratio

Measurements on planes 1 2 3 4 homography! Approach: unwarp then measure What kind of warp is this?

Image rectification To unwarp (rectify) an image p′ p solve for homography H given p and p′ how many points are necessary to solve for H?

Image rectification: example Piero della Francesca, Flagellation, ca. 1455

Application: 3D modeling from a single image J. Vermeer, Music Lesson, 1662 A. Criminisi, M. Kemp, and A. Zisserman, Bringing Pictorial Space to Life: computer techniques for the analysis of paintings, Proc. Computers and the History of Art, 2002 http://research.microsoft.com/en-us/um/people/antcrim/ACriminisi_3D_Museum.wmv

Application: 3D modeling from a single image D. Hoiem, A.A. Efros, and M. Hebert, "Automatic Photo Pop-up", SIGGRAPH 2005. http://www.cs.illinois.edu/homes/dhoiem/projects/popup/popup_movie_450_250.mp4

Application: Image editing Inserting synthetic objects into images: http://vimeo.com/28962540 K. Karsch and V. Hedau and D. Forsyth and D. Hoiem, “Rendering Synthetic Objects into Legacy Photographs,” SIGGRAPH Asia 2011

Application: Object recognition D. Hoiem, A.A. Efros, and M. Hebert, "Putting Objects in Perspective", CVPR 2006