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

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

Computer Vision CS 776 Fall 2018

CS6670: Computer Vision

ECE Digital Image Processing and Introduction to Computer Vision. Outline

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

Projective Geometry and Camera Models

Projective Geometry and Camera Models

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

Image formation - About the course. Grading & Project. Tentative Schedule. Course Content. Students introduction

Lecture 8: Camera Models

How to achieve this goal? (1) Cameras

Rigid Body Motion and Image Formation. Jana Kosecka, CS 482

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

Single-view metrology

CS4670: Computer Vision

Capturing Light: Geometry of Image Formation

MAN-522: COMPUTER VISION SET-2 Projections and Camera Calibration

2%34 #5 +,,% ! # %& ()% #% +,,%. & /%0%)( 1 ! # %&# (&)# +, %& ./01 /1&2% # /&

Image Formation I Chapter 2 (R. Szelisky)

Modeling Light. On Simulating the Visual Experience

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

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

Agenda. Perspective projection. Rotations. Camera models

Computer Vision Project-1

More Single View Geometry

Introduction to Computer Vision. Introduction CMPSCI 591A/691A CMPSCI 570/670. Image Formation

COS429: COMPUTER VISON CAMERAS AND PROJECTIONS (2 lectures)

More Single View Geometry

Lecture 11 MRF s (conbnued), cameras and lenses.

Last Time? Ray Casting. Administrivia: Lab & Office Hours. Notes on Assignments. Ray Casting. Overview of Today

Projections. Brian Curless CSE 457 Spring Reading. Shrinking the pinhole. The pinhole camera. Required:

Scene Modeling for a Single View

Scene Modeling for a Single View

ECE-161C Cameras. Nuno Vasconcelos ECE Department, UCSD

CS 563 Advanced Topics in Computer Graphics Camera Models. by Kevin Kardian

Single-view 3D Reconstruction

Jorge Salvador Marques, geometric camera model

Camera Geometry II. COS 429 Princeton University

Scene Modeling for a Single View

Computer Graphics. Ch 6. 3D Viewing

CIS 580, Machine Perception, Spring 2015 Homework 1 Due: :59AM

Viewing. Part II (The Synthetic Camera) CS123 INTRODUCTION TO COMPUTER GRAPHICS. Andries van Dam 10/10/2017 1/31

COMP 546. Lecture 11. Shape from X: perspective, texture, shading. Thurs. Feb. 15, 2018

Understanding Variability

CEng Computational Vision

Homogeneous Coordinates. Lecture18: Camera Models. Representation of Line and Point in 2D. Cross Product. Overall scaling is NOT important.

3-D D Euclidean Space - Vectors

CS 418: Interactive Computer Graphics. Projection

Geometric camera models and calibration

More Single View Geometry

DD2423 Image Analysis and Computer Vision IMAGE FORMATION. Computational Vision and Active Perception School of Computer Science and Communication

Cameras and Stereo CSE 455. Linda Shapiro

More Single View Geometry

Today. Rendering pipeline. Rendering pipeline. Object vs. Image order. Rendering engine Rendering engine (jtrt) Computergrafik. Rendering pipeline

Introduction to 3D Concepts

AP Physics: Curved Mirrors and Lenses

Optics II. Reflection and Mirrors

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

Capturing light. Source: A. Efros

Lecture 5: Transforms II. Computer Graphics and Imaging UC Berkeley CS184/284A

Computer Graphics. P05 Viewing in 3D. Part 1. Aleksandra Pizurica Ghent University

I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S

Projective geometry for Computer Vision

Three-Dimensional Viewing Hearn & Baker Chapter 7

Image warping and stitching

3D Viewing. CS 4620 Lecture 8

Stereo CSE 576. Ali Farhadi. Several slides from Larry Zitnick and Steve Seitz

Geometry: Outline. Projections. Orthographic Perspective

Image warping and stitching

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

Image warping and stitching

Computer Vision Course Lecture 02. Image Formation Light and Color. Ceyhun Burak Akgül, PhD cba-research.com. Spring 2015 Last updated 04/03/2015

Algebra Based Physics

Computer Vision Lecture 17

Computer Vision Lecture 17

Image Formation. Antonino Furnari. Image Processing Lab Dipartimento di Matematica e Informatica Università degli Studi di Catania

Projective Geometry and Camera Models

Introduction to Computer Vision

Chapter 5. Projections and Rendering

N-Views (1) Homographies and Projection

COMP30019 Graphics and Interaction Perspective Geometry

PHYSICS. Chapter 34 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT

Perception II: Pinhole camera and Stereo Vision

Camera Model and Calibration

Drawing in 3D (viewing, projection, and the rest of the pipeline)

Chapter 32 Light: Reflection and Refraction. Copyright 2009 Pearson Education, Inc.

3D Viewing. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 9

Motivation. What we ve seen so far. Demo (Projection Tutorial) Outline. Projections. Foundations of Computer Graphics

The Lens. Refraction and The Lens. Figure 1a:

Robotics - Projective Geometry and Camera model. Marcello Restelli

Computational Photography

CSE 167: Introduction to Computer Graphics Lecture #3: Projection. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

Light: Geometric Optics

Models and The Viewing Pipeline. Jian Huang CS456

Vision Review: Image Formation. Course web page:

CS6670: Computer Vision

Single-view 3D reasoning

Robotics - Projective Geometry and Camera model. Matteo Pirotta

Passive 3D Photography

Transcription:

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

Overview of next two lectures The pinhole projection model Qualitative properties Perspective projection matrix Cameras with lenses Depth of focus Field of view Lens aberrations Digital sensors

Let s design a camera Idea 1: put a piece of film in front of an object Do we get a reasonable image? Slide by Steve Seitz

Pinhole camera Add a barrier to block off most of the rays Slide by Steve Seitz

Pinhole camera Captures pencil of rays all rays through a single point: aperture, center of projection, optical center, focal point, camera center The image is formed on the image plane Slide by Steve Seitz

Pinhole cameras are everywhere Tree shadow during a solar eclipse photo credit: Nils van der Burg http://www.physicstogo.org/index.cfm Slide by Steve Seitz

Camera obscura Basic principle known to Mozi (470-390 BCE), Aristotle (384-322 BCE) Drawing aid for artists: described by Leonardo da Vinci (1452-1519) Gemma Frisius, 1558 Source: A. Efros

Turning a room into a camera obscura From Grand Images Through a Tiny Opening, Photo District News, February 2005 Abelardo Morell, Camera Obscura Image of Manhattan View Looking South in Large Room, 1996 http://www.abelardomorell.net/project/camera-obscura/

Turning a room into a camera obscura A. Torralba and W. Freeman, Accidental Pinhole and Pinspeck Cameras, CVPR 2012

Modeling projection P O P How do we find the projection P of a scene point P? Form the visual ray connecting P to the camera center O and find where it intersects the image plane All scene points that lie on this visual ray have the same projection in the image Are there scene points for which this projection is undefined?

Modeling projection P y y P? f O z z x The coordinate system The optical center (O) is at the origin The image plane is parallel to xy-plane or perpendicular to the z-axis, which is the optical axis Projection equations Derived using similar triangles ( x, y, z) ( f, f ) x z y z

Dimensionality reduction: from 3D to 2D 3D world 2D image Point of observation What properties of the world are preserved? Straight lines, incidence What properties are not preserved? Angles, lengths Slide by A. Efros Figures Stephen E. Palmer, 2002

Properties of projection What is lost? Who is taller? Which is closer? Slide by Derek Hoiem

Properties of projection What is lost? Parallel? Perpendicular? Slide by Derek Hoiem

Fronto-parallel planes What happens to the projection of a pattern on a plane parallel to the image plane? All points on that plane are at a fixed depth z The pattern gets scaled by a factor of f / z, but angles and ratios of lengths/areas are preserved ( x, y, z) ( f x z, f y z )

Fronto-parallel planes What happens to the projection of a pattern on a plane parallel to the image plane? All points on that plane are at a fixed depth z The pattern gets scaled by a factor of f / z, but angles and ratios of lengths/areas are preserved Piero della Francesca, Flagellation of Christ, 1455-1460 Jan Vermeer, The Music Lesson, 1662-1665

What about non-fronto-parallel planes? Piero della Francesca, Flagellation of Christ, 1455-1460 Jan Vermeer, The Music Lesson, 1662-1665

Vanishing points All parallel lines converge to a vanishing point Each direction in space is associated with its own vanishing point Exception: directions parallel to the image plane

Constructing the vanishing point of a line image plane vanishing point camera center line in the scene Slide by Steve Seitz

Vanishing lines of planes How do we construct the vanishing line of a plane? Image source: S. Seitz

Vanishing lines of planes camera center plane in the scene Horizon: vanishing line of the ground plane All points at the same height as the camera project to the horizon Points higher (resp. lower) than the camera project above (resp. below) the horizon Provides way of comparing height of objects Slide by Steve Seitz

Comparing heights Vanishing Point Slide by Steve Seitz

Measuring height 5 4 3 2 5.4 Camera height 3.3 2.8 1 What is the height of the camera? Slide by Steve Seitz

Perspective cues Slide by Steve Seitz

Perspective cues in art Masaccio, Trinity, Santa Maria Novella, Florence, 1425-28 One of the first consistent uses of perspective in Western art

Perspective distortion What is the shape of the projection of a sphere? Image source: F. Durand

Perspective distortion What is the shape of the projection of a sphere?

Perspective distortion Are the widths of the projected columns equal? The exterior columns are wider This is not an optical illusion, and is not due to lens flaws Phenomenon pointed out by Da Vinci Source: F. Durand

Perspective distortion: People

Modeling projection f y z x Projection equation: ( x, y, z) ( f x z, f y z ) Note: instead of dealing with an image that is upside down, most of the time we will pretend that the image plane is in front of the camera center. Source: J. Ponce, S. Seitz

Homogeneous coordinates x y ( x, y, z) ( f, f ) z z Is this a linear transformation? no division by z is nonlinear Trick: add one more coordinate: homogeneous image coordinates homogeneous scene coordinates Converting from homogeneous coordinates Slide by Steve Seitz

Perspective Projection Matrix Projection is a matrix multiplication using homogeneous coordinates f 0 0 0 f 0 0 0 1 x 0 y 0 = z 0 1 f x f y z In practice: lots of coordinate transformations ( f x z, f y z ) divide by the third coordinate 2D point (3x1) = Camera to pixel coord. trans. matrix (3x3) Perspective projection matrix (3x4) World to camera coord. trans. matrix (4x4) 3D point (4x1)

Orthographic Projection Special case of perspective projection Distance from center of projection to image plane is infinite Also called parallel projection Image World Slide by Steve Seitz

Orthographic Projection Special case of perspective projection Distance from center of projection to image plane is infinite Also called parallel projection

Orthographic Projection Special case of perspective projection Distance from center of projection to image plane is infinite Also called parallel projection Image World What s the projection matrix? Slide by Steve Seitz