Lecture 16: Single-view modeling, Part 2 CS6670: Computer Vision Noah Snavely.

Slides:



Advertisements
Similar presentations
Single-view geometry Odilon Redon, Cyclops, 1914.
Advertisements

Single-view Metrology and Camera Calibration
Computer Vision, Robert Pless
Lecture 11: Two-view geometry
Last 4 lectures Camera Structure HDR Image Filtering Image Transform.
Structure from motion.
Single-view metrology
CS6670: Computer Vision Noah Snavely Lecture 17: Stereo
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,
Lecture 5: Projection CS6670: Computer Vision Noah Snavely.
Uncalibrated Geometry & Stratification Sastry and Yang
Announcements Project 2 questions Midterm out on Thursday
Projective geometry Slides from Steve Seitz and Daniel DeMenthon
Uncalibrated Epipolar - Calibration
Lecture 11: Structure from motion CS6670: Computer Vision Noah Snavely.
Lecture 20: Light, color, and reflectance CS6670: Computer Vision Noah Snavely.
Lecture 15: Single-view modeling CS6670: Computer Vision Noah Snavely.
Panorama signups Panorama project issues? Nalwa handout Announcements.
Single-view geometry Odilon Redon, Cyclops, 1914.
Panoramas and Calibration : Rendering and Image Processing Alexei Efros …with a lot of slides stolen from Steve Seitz and Rick Szeliski.
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.
Global Alignment and Structure from Motion Computer Vision CSE455, Winter 2008 Noah Snavely.
Lecture 12: Structure from motion CS6670: Computer Vision Noah Snavely.
VZvZ r t b image cross ratio Measuring height B (bottom of object) T (top of object) R (reference point) ground plane H C scene cross ratio  scene points.
CS 558 C OMPUTER V ISION Lecture IX: Dimensionality Reduction.
Today: Calibration What are the camera parameters?
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
CSC 589 Lecture 22 Image Alignment and least square methods Bei Xiao American University April 13.
Lecture 12: Image alignment CS4670/5760: Computer Vision Kavita Bala
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 01/25/11 1.
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.
Lecture 03 15/11/2011 Shai Avidan הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Single-view geometry Odilon Redon, Cyclops, 1914.
Ch. 3: Geometric Camera Calibration
CS-498 Computer Vision Week 7, Day 2 Camera Parameters Intrinsic Calibration  Linear  Radial Distortion (Extrinsic Calibration?) 1.
Single-view Metrology and Cameras Computational Photography Derek Hoiem, University of Illinois 10/06/15.
Calibration.
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.
EECS 274 Computer Vision Projective Structure from Motion.
Project 2 went out on Tuesday You should have a partner You should have signed up for a panorama kit Announcements.
Lecture 22: Structure from motion CS6670: Computer Vision Noah Snavely.
Lecture 16: Image alignment
Calibrating a single camera
Single-view metrology
Depth from disparity (x´,y´)=(x+D(x,y), y)
Digital Visual Effects, Spring 2007 Yung-Yu Chuang 2007/4/17
Overview Pin-hole model From 3D to 2D Camera projection
Lecture 3: Camera Rotations and Homographies
Uncalibrated Geometry & Stratification
Projective geometry Readings
Noah Snavely.
Camera Calibration Coordinate change Translation P’ = P – O
Announcements list – let me know if you have NOT been getting mail
Multi-view geometry.
Lecture 8: Image alignment
Announcements Project 2 extension: Friday, Feb 8
Presentation transcript:

Lecture 16: Single-view modeling, Part 2 CS6670: Computer Vision Noah Snavely

Comparing heights VanishingPoint

Measuring height Camera height How high is the camera?

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

The cross ratio A Projective Invariant – Something that does not change under projective transformations (including perspective projection) P1P1 P2P2 P3P3 P4P4 The cross-ratio of 4 collinear points Can permute the point ordering 4! = 24 different orders (but only 6 distinct values) This is the fundamental invariant of projective geometry

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

Measuring height RH vzvz r b t image cross ratio H b0b0 t0t0 v vxvx vyvy

vzvz r b t0t0 vxvx vyvy vanishing line (horizon) v t0t0 m0m0 What if the point on the ground plane b 0 is not known? Here the guy is standing on the box, height of box is known Use one side of the box to help find b 0 as shown above b0b0 t1t1 b1b1 Measuring height

3D Modeling from a photograph St. Jerome in his Study, H. Steenwick

3D Modeling from a photograph

Flagellation, Piero della Francesca

3D Modeling from a photograph video by Antonio Criminisi

3D Modeling from a photograph

Camera calibration Goal: estimate the camera parameters – Version 1: solve for projection matrix Version 2: solve for camera parameters separately –intrinsics (focal length, principle point, pixel size) –extrinsics (rotation angles, translation) –radial distortion

Vanishing points and projection matrix = v x (X vanishing point) Z3Y2, similarly, v π v π  Not So Fast! We only know v’s up to a scale factor Can fully specify by providing 3 reference points

Calibration using a reference object Place a known object in the scene – identify correspondence between image and scene – compute mapping from scene to image Issues must know geometry very accurately must know 3D->2D correspondence

Chromaglyphs Courtesy of Bruce Culbertson, HP Labs

Estimating the projection matrix Place a known object in the scene – identify correspondence between image and scene – compute mapping from scene to image

Direct linear calibration

Can solve for m ij by linear least squares use eigenvector trick that we used for homographies

Direct linear calibration Advantage: – Very simple to formulate and solve Disadvantages: – Doesn’t tell you the camera parameters – Doesn’t model radial distortion – Hard to impose constraints (e.g., known f) – Doesn’t minimize the right error function For these reasons, nonlinear methods are preferred Define error function E between projected 3D points and image positions –E is nonlinear function of intrinsics, extrinsics, radial distortion Minimize E using nonlinear optimization techniques