Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

Similar documents
Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

Image Formation I Chapter 2 (R. Szelisky)

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

COS429: COMPUTER VISON CAMERAS AND PROJECTIONS (2 lectures)

Projective Geometry and Camera Models

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

Projective Geometry and Camera Models

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

Instance-level recognition I. - Camera geometry and image alignment

Computer Vision and Applications. Prof. Trevor. Darrell. Class overview Administrivia & Policies Lecture 1

3-D D Euclidean Space - Vectors

Camera Model and Calibration

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

Computer Vision CS 776 Fall 2018

3D Geometry and Camera Calibration

Lecture 8: Camera Models

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

Agenda. Perspective projection. Rotations. Camera models

Geometric camera models and calibration

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

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

Camera Model and Calibration. Lecture-12

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

CS6670: Computer Vision

1 Projective Geometry

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

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

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

CSE 252B: Computer Vision II

Discriminant Functions for the Normal Density

Capturing Light: Geometry of Image Formation

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

Vision Review: Image Formation. Course web page:

CS201 Computer Vision Camera Geometry

Camera Calibration. COS 429 Princeton University

Agenda. Rotations. Camera models. Camera calibration. Homographies

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

CS4670: Computer Vision

Perception II: Pinhole camera and Stereo Vision

Computer Vision Lecture 17

How to achieve this goal? (1) Cameras

ECE Digital Image Processing and Introduction to Computer Vision. Outline

Computer Vision Lecture 17

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

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

CS6670: Computer Vision

Multi-View Geometry (Ch7 New book. Ch 10/11 old book)

All human beings desire to know. [...] sight, more than any other senses, gives us knowledge of things and clarifies many differences among them.

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

6.819 / 6.869: Advances in Computer Vision Antonio Torralba and Bill Freeman. Lecture 11 Geometry, Camera Calibration, and Stereo.

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

Visual Recognition: Image Formation

Introduction to Homogeneous coordinates

Geometry of image formation

Modeling Light. On Simulating the Visual Experience

Unit 3 Multiple View Geometry

Announcements. Image Formation: Outline. Homogenous coordinates. Image Formation and Cameras (cont.)

Camera model and multiple view geometry

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

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)

Computer Vision Project-1

Geometric Transformations

Structure from motion

Recovering structure from a single view Pinhole perspective projection

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

Perspective Projection in Homogeneous Coordinates

Cameras and Stereo CSE 455. Linda Shapiro

Vector Algebra Transformations. Lecture 4

Geometry: Outline. Projections. Orthographic Perspective

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

Outline. ETN-FPI Training School on Plenoptic Sensing

Math background. 2D Geometric Transformations. Implicit representations. Explicit representations. Read: CS 4620 Lecture 6

Computer Vision cmput 428/615

Representing the World

To Do. Outline. Translation. Homogeneous Coordinates. Foundations of Computer Graphics. Representation of Points (4-Vectors) Start doing HW 1

3D Sensing. 3D Shape from X. Perspective Geometry. Camera Model. Camera Calibration. General Stereo Triangulation.

Image Transformations & Camera Calibration. Mašinska vizija, 2018.

calibrated coordinates Linear transformation pixel coordinates

An idea which can be used once is a trick. If it can be used more than once it becomes a method

5LSH0 Advanced Topics Video & Analysis

EXAM SOLUTIONS. Image Processing and Computer Vision Course 2D1421 Monday, 13 th of March 2006,

Agenda. Rotations. Camera calibration. Homography. Ransac

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

521466S Machine Vision Exercise #1 Camera models

Midterm Exam Solutions

Computer Vision. Coordinates. Prof. Flávio Cardeal DECOM / CEFET- MG.

Multiple View Geometry

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

Project 4 Results. Representation. Data. Learning. Zachary, Hung-I, Paul, Emanuel. SIFT and HoG are popular and successful.

2D/3D Geometric Transformations and Scene Graphs

Computer Vision Projective Geometry and Calibration. Pinhole cameras

N-Views (1) Homographies and Projection

Single View Geometry. Camera model & Orientation + Position estimation. Jianbo Shi. What am I? University of Pennsylvania GRASP

C18 Computer Vision. Lecture 1 Introduction: imaging geometry, camera calibration. Victor Adrian Prisacariu.

Index. 3D reconstruction, point algorithm, point algorithm, point algorithm, point algorithm, 253

Chapter 3. Image Formation. This is page 44 Printer: Opaque this

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

Epipolar Geometry and the Essential Matrix

CSE152a Computer Vision Assignment 1 WI14 Instructor: Prof. David Kriegman. Revision 0

Transcription:

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras Guido Gerig CS 632 Spring 215 cknowledgements: Slides used from Prof. Trevor Darrell, (http://www.eecs.berkeley.edu/~trevor/cs28.html) Some slides modified from Marc Pollefeys, UNC Chapel Hill. Other slides and illustrations from J. Ponce, addendum to course book.

GEOMETRIC CMER MODELS The Intrinsic Parameters of a Camera The Extrinsic Parameters of a Camera The General Form of the Perspective Projection Equation Line Geometry Reading: Chapter 1.

Images are two-dimensional patterns of brightness values. Figure from US Navy Manual of asic Optics and Optical Instruments, prepared by ureau of Naval Personnel. Reprinted by Dover Publications, Inc., 1969. They are formed by the projection of 3D objects.

nimal eye: a looonnng time ago. Photographic camera: Niepce, 1816. Pinhole perspective projection: runelleschi, XV th Century. Camera obscura: XVI th Century.

Camera model Relation between pixels and rays in space?

Camera obscura + lens The camera obscura (Latin for 'dark room') is an optical device that projects an image of its surroundings on a screen (source Wikipedia).

Limits for pinhole cameras

Physical parameters of image Geometric Type of projection Camera pose Photometric Type, direction, intensity of light reaching sensor Surfaces reflectance properties Optical Sensor s lens type focal length, field of view, aperture Sensor sampling, etc. formation

Physical parameters of image formation Geometric Type of projection Camera pose Optical Sensor s lens type focal length, field of view, aperture Photometric Type, direction, intensity of light reaching sensor Surfaces reflectance properties Sensor sampling, etc.

Perspective and art Use of correct perspective projection indicated in 1 st century.c. frescoes Skill resurfaces in Renaissance: artists develop systematic methods to determine perspective projection (around 148 1515) Raphael Durer, 1525 K. Grauman

Perspective projection equations 3d world mapped to 2d projection in image plane Image plane Focal length Camera frame Optical axis Scene / world points Scene point Image coordinates Forsyth and Ponce

ffine projection models: Weak perspective projection x' mx y' my where m f ' is the magnification. When the scene distance variation is small compared to its distance from the Camera, m can be taken constant: weak perspective projection.

ffine projection models: Orthographic projection x' y' x y When the camera is at a (roughly constant) distance from the scene, take m=1.

Homogeneous coordinates Is this a linear transformation? no division by is nonlinear Trick: add one more coordinate: homogeneous image coordinates homogeneous scene coordinates Converting from homogeneous coordinates Slide by Steve Seit

Perspective Projection Matrix divide by the third coordinate to convert back to nonhomogeneous coordinates Projection is a matrix multiplication using homogeneous coordinates: ' / 1 ' 1/ 1 1 f y x y x f ) ', ' ( y f x f Slide by Steve Seit Complete mapping from world points to image pixel positions?

Points at infinity, vanishing points Points from infinity represent rays into camera which are close to the optical axis. Image source: wikipedia

Perspective projection & calibration Perspective equations so far in terms of camera s reference frame. Camera s intrinsic and extrinsic parameters needed to calibrate geometry. Camera frame K. Grauman

The CCD camera

Perspective projection & calibration World frame Extrinsic: Camera frame World frame Camera frame Intrinsic: Image coordinates relative to camera Pixel coordinates 2D point (3x1) = Camera to pixel coord. trans. matrix (3x3) Perspective projection matrix (3x4) World to camera coord. trans. matrix (4x4) 3D point (4x1) K. Grauman

Intrinsic parameters: from idealied world coordinates to pixel values Forsyth&Ponce Perspective projection u v f f x y W. Freeman

Intrinsic parameters ut pixels are in some arbitrary spatial units u v x y W. Freeman

Intrinsic parameters Maybe pixels are not square u v x y W. Freeman

Intrinsic parameters We don t know the origin of our camera pixel coordinates u v x y u v W. Freeman

Intrinsic parameters ) sin( ) cot( v y v u y x u May be skew between camera pixel axes v u v u v u v u u v v ) cot( ) cos( ) sin( W. Freeman

p p C (K) 1 Intrinsic parameters, homogeneous coordinates ) sin( ) cot( v y v u y x u 1 1 ) sin( ) cot( 1 1 y x v u v u Using homogenous coordinates, we can write this as: or: In camera based coords In pixels W. Freeman

Perspective projection & calibration World frame Extrinsic: Camera frame World frame Camera frame Intrinsic: Image coordinates relative to camera Pixel coordinates 2D point (3x1) = Camera to pixel coord. trans. matrix (3x3) Perspective projection matrix (3x4) World to camera coord. trans. matrix (4x4) 3D point (4x1) K. Grauman

Coordinate Changes: Pure Translations O P = O O + O P, P = P + O

Coordinate Changes: Pure Rotations ),, (......... R k j i k k k j k i j k j j j i i k i j i i k j i T T T k j i

Coordinate Changes: Rotations about the k xis R cos sin sin cos 1

rotation matrix is characteried by the following properties: Its inverse is equal to its transpose, and its determinant is equal to 1. Or equivalently: Its rows (or columns) form a right-handed orthonormal coordinate system.

Coordinate Changes: Pure Rotations P R P y x y x OP k j i k j i

Coordinate Changes: Rigid Transformations P R P O

lock Matrix Multiplication 11 21 12 22 11 21 12 22 What is? 11 21 11 11 12 22 21 21 11 21 12 12 12 22 22 22 Homogeneous Representation of Rigid Transformations P 1 R T O 1 P 1 R P 1 O T P 1

Extrinsic parameters: translation and rotation of camera frame t p R p C W W C W C Non homogeneous coordinates Homogeneous coordinates p t R p W C W C W C 1 W. Freeman

Combining extrinsic and intrinsic calibration parameters, in homogeneous coordinates Forsyth&Ponce p t R K p W C W C W 1,, 1 p p C K 1 p M p W 1 Intrinsic Extrinsic p t R p W C W C W C 1 World coordinates Camera coordinates pixels W. Freeman

Other ways to write the same equation 1......... 1 1 3 2 1 W y W x W T T T p p p m m m v u p M p W 1 P m P m v P m P m u 3 2 3 1 pixel coordinates world coordinates Conversion back from homogeneous coordinates leads to (note that = m T 3*P) : W. Freeman

Extrinsic Parameters

Explicit Form of the Projection Matrix Note: M is only defined up to scale in this setting!!

Calibration target Find the position, u i and v i, in pixels, of each calibration object feature point. http://www.kinetic.bc.ca/compvision/opti CL.html