Single-view metrology

Similar documents
Camera Geometry II. COS 429 Princeton University

More Single View Geometry

More Single View Geometry

Scene Modeling for a Single View

Scene Modeling for a Single View

More Single View Geometry

Scene Modeling for a Single View

Single-view 3D Reconstruction

More Single View Geometry

CS4670/5670: Computer Vision Kavita Bala. Lec 19: Single- view modeling 2

Pinhole Camera Model 10/05/17. Computational Photography Derek Hoiem, University of Illinois

Scene Modeling for a Single View

Perspective projection. A. Mantegna, Martyrdom of St. Christopher, c. 1450

Projective Geometry and Camera Models

1 Projective Geometry

CHAPTER 3. Single-view Geometry. 1. Consequences of Projection

calibrated coordinates Linear transformation pixel coordinates

Projective Geometry and Camera Models

Projective geometry for Computer Vision

Image warping and stitching

Structure from motion

CIS 580, Machine Perception, Spring 2016 Homework 2 Due: :59AM

Image warping and stitching

CSCI 5980: Assignment #3 Homography

Compositing a bird's eye view mosaic

Epipolar Geometry Prof. D. Stricker. With slides from A. Zisserman, S. Lazebnik, Seitz

Unit 3 Multiple View Geometry

Structure from Motion. Prof. Marco Marcon

Image Warping and Mosacing

Single-view 3D reasoning

Auto-calibration. Computer Vision II CSE 252B

N-Views (1) Homographies and Projection

METRIC PLANE RECTIFICATION USING SYMMETRIC VANISHING POINTS

Structure from Motion CSC 767

Three-Dimensional Viewing Hearn & Baker Chapter 7

BIL Computer Vision Apr 16, 2014

A simple method for interactive 3D reconstruction and camera calibration from a single view

Structure from motion

Image formation. Thanks to Peter Corke and Chuck Dyer for the use of some slides

Visualization 2D-to-3D Photo Rendering for 3D Displays

But First: Multi-View Projective Geometry

Homographies and RANSAC

Image warping and stitching

Geometric camera models and calibration

Metric Rectification for Perspective Images of Planes

Multiple Views Geometry

CS 2770: Intro to Computer Vision. Multiple Views. Prof. Adriana Kovashka University of Pittsburgh March 14, 2017

Single View Geometry. Camera model & Orientation + Position estimation. What am I?

Structure from motion

Camera model and multiple view geometry

CS6670: Computer Vision

Lecture 6 Stereo Systems Multi-view geometry

Structure from Motion

Spatial track: range acquisition modeling

Camera Calibration. Schedule. Jesus J Caban. Note: You have until next Monday to let me know. ! Today:! Camera calibration

Module 4F12: Computer Vision and Robotics Solutions to Examples Paper 2

Viewpoint Invariant Features from Single Images Using 3D Geometry

AUTO-RECTIFICATION OF USER PHOTOS. Krishnendu Chaudhury, Stephen DiVerdi, Sergey Ioffe.

CEng Computational Vision

Perspective Projection [2 pts]

COMPARATIVE STUDY OF DIFFERENT APPROACHES FOR EFFICIENT RECTIFICATION UNDER GENERAL MOTION

Single View Metrology

Feature Transfer and Matching in Disparate Stereo Views through the use of Plane Homographies

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Creation of LoD1 Buildings Using Volunteered Photographs and OpenStreetMap Vector Data

Camera Model and Calibration

Midterm Examination CS 534: Computational Photography

3D Reconstruction from Scene Knowledge

55:148 Digital Image Processing Chapter 11 3D Vision, Geometry

Creating Architectural Models from Images

Epipolar Geometry and Stereo Vision

3D Geometric Computer Vision. Martin Jagersand Univ. Alberta Edmonton, Alberta, Canada

CSE 252B: Computer Vision II

Camera Models and Image Formation. Srikumar Ramalingam School of Computing University of Utah

Stereo Image Rectification for Simple Panoramic Image Generation

Multiple View Geometry in computer vision

Projective geometry for 3D Computer Vision

Augmented Reality II - Camera Calibration - Gudrun Klinker May 11, 2004

COSC579: Scene Geometry. Jeremy Bolton, PhD Assistant Teaching Professor

Robotics - Projective Geometry and Camera model. Matteo Pirotta

Pin Hole Cameras & Warp Functions

CMPSCI 670: Computer Vision! Image formation. University of Massachusetts, Amherst September 8, 2014 Instructor: Subhransu Maji

SINGLE VIEW GEOMETRY AND SOME APPLICATIONS

Lecture 10: Multi-view geometry

Passive 3D Photography

Today. Stereo (two view) reconstruction. Multiview geometry. Today. Multiview geometry. Computational Photography

Image Based Rendering. D.A. Forsyth, with slides from John Hart

Camera Calibration and 3D Reconstruction from Single Images Using Parallelepipeds

Epipolar Geometry and Stereo Vision

Camera Model and Calibration. Lecture-12

Contexts and 3D Scenes

Computer Vision Lecture 17

Ground Plane Rectification by Tracking Moving Objects

Computer Vision Lecture 17

Reminder: Lecture 20: The Eight-Point Algorithm. Essential/Fundamental Matrix. E/F Matrix Summary. Computing F. Computing F from Point Matches

Structure from Motion

Planar homographies. Can we reconstruct another view from one image? vgg/projects/singleview/

EE795: Computer Vision and Intelligent Systems

Camera Calibration. COS 429 Princeton University

5LSH0 Advanced Topics Video & Analysis

Transcription:

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

Camera calibration revisited What if world coordinates of reference 3D points are not known? We can use scene features such as vanishing points Vanishing line Vertical vanishing point (at infinity) Vanishing point Vanishing point 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 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 v X + + + 3 2 td z td y td x X t + + + t d t z d t y d t x / / / / 3 2 3 2 d d d X X t

Calibration from vanishing points Consider a scene with three orthogonal vanishing directions:. v. v 2 Note: v, v 2 are finite vanishing points and v 3 is an infinite vanishing point v 3

Calibration from vanishing points Consider a scene with three orthogonal vanishing directions:. v. v 2 We can align the world coordinate system with these directions v 3

Calibration from vanishing points * * * * P * * * * * * * * [ ] p p p p 2 3 4 p P(,,,) T the vanishing point in the x direction Similarly, p 2 and p 3 are the vanishing points in the y and z directions p 4 P(,,,) 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,, 3 2 e e e [ ] i i i i KRe e t K R v λ, j T i i T i i e e v K e λ R j T T i j T T T i v K K v v K RR K v

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 e λiv i K R [ ] i t KRei λ K v Re [ r r 2 r 3 ] " $ $ $ # % ' ' r ' & Thus, λ ik vi r i. Get λ i by using the constraint r i 2.

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 4 3 2 5.3 Camera height 3.3 2.8

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

Projective invariant We need to use a projective invariant: a quantity that does not change under projective transformations (including perspective projection) What are some invariants for similarity, affine transformations?

Projective invariant We need to use a projective invariant: a quantity that does not change under projective transformations (including perspective projection) The cross-ratio of four points: P P 3 3 P P 2 P 4 P 4 P 2 P P 3 P 4 P 2 P

Measuring height C b r t H T (top of object) R (reference point) R T B R R B T scene cross ra+o t b r b v v Z Z r t image cross ra+o H R H R v Z B (bo%om of object) ground plane

Measuring height without a ruler

v z r vanishing line (horizon) v x v t H t R H v y b t r b b v v Z Z r t image cross ra+o H R b

2D lines in homogeneous coordinates Line equation: ax + by + c l T x a x where l b, x y c Line passing through two points: l x x 2 Intersection of two lines: x l l 2 What is the intersection of two parallel lines?

v z r vanishing line (horizon) v x v t H t R H v y b t r b b v v Z Z r t image cross ra+o H R b

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

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

Image rectification: example Piero della Francesca, Flagella(on, ca. 455

Application: 3D modeling from a single image J. Vermeer, Music Lesson, 662 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, 22 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 25. http://dhoiem.cs.illinois.edu/projects/popup/popup_movie_45_25.mp4

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

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