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

Size: px
Start display at page:

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

Transcription

1 CHAPTER 3 Single-view Geometry When we open an eye or take a photograph, we see only a flattened, two-dimensional projection of the physical underlying scene. The consequences are numerous and startling. Size relationships are distorted, right angles are suddenly wrong, and parallel lines now intersect. Objects that were once apart are now overlapping in the image, so that some parts are not visible. At first glance, it may seem that the imaging process has corrupted a perfectly reasonable, well-ordered scene into a chaotic jumble of colors and textures. However, with careful scene representation that accounts for perspective projection, we can tease out the structure of the physical world. In this chapter, we summarize the consequences of the imaging process and how to mathematically model perspective projection. We will also show how to recover an estimate of the ground plane, which allows us to recover some of the relations among objects in the scene. 1. Consequences of Projection The photograph is a projection of the 3D scene onto a 2D image plane. Most cameras use a perspective projection. Instead of recording the 3D position of objects (X,, Z), we observe their projection onto the 2D image plane at (u,v). In this projection, a set of parallel lines in 3D will intersect at a single point, called the vanishing point. A set of parallel planes in 3D intersect in a single line, called the vanishing line. The vanishing line of the ground plane, called the horizon, is of particular interest because many objects are oriented according to the ground and gravity. See Figure 3.1 for an illustration of vanishing points and lines. Another major consequence of projection is occlusion. Because light does not pass through most objects, only the nearest object along a ray is visible. Take a glance at the world around you. Every object is occluding something, and most are partially occluded themselves. In some ways,

2 CHAPTER 3. SINGLE-VIEW GEOMETR Vanishing line Vertical vanishing point (at infinity) Vanishing point Vanishing point FIGURE 3.1. Illustration of vanishing points and lines. Lines that are parallel in 3D intersect at a point in the image, called the vanishing point. Each set of parallel lines that is parallel to a plane will intersect on the vanishing line of that plane. The vanishing line of the ground plane is called the horizon. If a set of parallel lines is also parallel to the image plane, it will intersect at infinity. Three finite orthogonal vanishing points can be used to estimate the intrinsic camera parameters. Figure from [37].. Optical Center (u 0, v 0 ) f Z. u v u p = v. Camera Center (t x, t y, t z ). X P = Z FIGURE 3.2. Illustration of pinhole camera model. The camera, with focal length f and optical center (u 0,v 0 ), projects from a 3D point in the world to a 2D point on the image plane. occlusion simplifies the scene interpretation. Imagine if you could see every object for miles in a single projection! In other ways, occlusion makes scene interpretation more difficult by hiding parts and disturbing silhouettes. 2. Perspective Projection with Pinhole Camera: 3D to 2D We often assume a pinhole camera to model projection from 3D to 2D, as shown in Figure 3.2. Under this model, light passes from the object through a small pinhole onto a sensor. The pinhole model ignores lens distortion and other non-linear effects, modeling the camera in terms of its intrinsic parameters (focal length f, optical center (u 0,v 0 ), pixel aspect ratio α, and skew s) and extrinsic parameters (3D rotation R and translation t). Although the image plane is physically behind the pinhole, as shown in the figure, it is sometimes convenient to pretend that the image 16

3 3 3D MEASUREMENT FROM A 2D IMAGE plane is in front, with focal length f, so that the image is not inverted. If we assume no rotation (R is identity), and camera translation of (0,0,0), with no skew and unit aspect ratio, we can use the properties of similar triangles to show that u u 0 = f X Z and v v 0 = f Z. We can more easily write the projection as a system of linear equations in homogeneous coordinates. These homogeneous coordinates add a scale coordinate to the Cartesian coordinates, making them convenient for representing rays (as in projection) and direction to infinitely distant points (e.g., where 3D parallel lines intersect). To convert from Cartesian to homogeneous coordinates, append a value of 1 (e.g., (u,v) (u,v,1) and (X,,Z) (X,,Z,1)). To convert from homogeneous to Cartesian coordinates, divide by the last coordinate (e.g., (u, v, w) (u/w, v/w)). Under homogeneous coordinates, our model of pinhole projection from 3D world coordinates (X,,Z) to image coordinates (u,v) is written as follows: (3.1) w u X w v = K[R t] Z or w u w v = f s u 0 0 α f v 0 w w r 11 r 12 r 13 t x r 21 r 22 r 23 t y r 31 r 32 r 33 t z Note that the intrinsic parameter matrix K has only five parameters and that the rotation and translation each have three parameters, so that there are 11 parameters in total. Even though the rotation matrix has nine elements, each element can be computed from the three angles of rotation. We commonly assume unit aspect ratio and zero skew as a good approximation for most modern cameras. Sometimes, it is also convenient to define world coordinates according to the camera position and orientation, yielding the simplified (3.2) w u w v = f 0 u 0 0 f v 0 X. w Z From this equation, we get the same result as we found using similar triangles in Figure 3.2. In Cartesian coordinates, u = f X Z + u 0 and v = f Z + v D Measurement from a 2D Image As illustrated in Figure 3.3, an infinite number of 3D geometrical configurations could produce the same 2D image, if only photographed from the correct perspective. Mathematically, therefore, we have no way to recover 3D points or measurements from a single image. Fortunately, because our world is so structured, we can often make good estimates. For example, if we know how the camera is rotated with respect to the ground plane and vertical direction, we can recover the relative 3D heights of objects from their 2D positions and heights. X Z 1. 17

4 CHAPTER 3. SINGLE-VIEW GEOMETR Original Image Interpretation 1: Painting on Ground Interpretation 2: Floating Objects Interpretation 3: Man in Field FIGURE 3.3. Original image and novel views under three different 3D interpretations. Each of these projects back into the input image from the original viewpoint. Although any image could be produced by any of an infinite number of 3D geometrical configurations, very few are plausible. Our main challenge is to learn the structure of the world to determine the most likely solution. Depending on the application, the world coordinates can be encoded using either three orthogonal vanishing points or the projection matrix, leading to different approaches to 3D measurement. When performing estimation from a single image, it is helpful to think in terms of the horizon line (the vanishing line of the ground plane) and the vertical vanishing point. For example, look at the 3D scene and corresponding image in Figure 3.4. Suppose the camera is level with the ground, so that the vertical vanishing point is at infinity and the horizon is a line through row v h. Then, if a grounded object is as tall as the camera is high, the top of the object will be projected to v h as well. We can use this and basic trigonometry to show that o c = v t v b v h v b, where o is the 3D height at the top of the object (defining the ground at = 0), c is the camera height, and v t and v b are the top and bottom positions of the object in the image. This relationship is explored in more detail in Hoiem et al. [104] and used to aid in object recognition, a topic we will discuss in a later chapter. 18

5 3 3D MEASUREMENT FROM A 2D IMAGE v h v t v b c =0 o o c v v t h v v b b FIGURE 3.4. The measure of man. Even from one image, we can measure the object s height, relative to the camera height, if we can see where it contacts the ground. FIGURE 3.5. This figure by Steve Seitz illustrates the use of the cross-ratio to make world measurements from an image. As shown by Criminisi et al. [38], the cross ratio invariant can be used to relate the 3D heights of objects under more general conditions. The cross ratio of 4 collinear points (e.g., p 3 p 1 p 4 p 2 p 3 p 2 p 4 p 1, for any collinear points p 1..4 ) does not change under projective transformations. If one of those points is a vanishing point, then its 3D position is at infinity, simplifying the ratio. Using the vertical vanishing point, we can recover the relative heights of objects in the scene (see Figure 3.5 for an illustration). 19

6 CHAPTER 3. SINGLE-VIEW GEOMETR We have a special case when the camera is upright and not slanted so that the vertical vanishing point is at infinity in the image plane. In this case, v Z =, so we have t b c b = v t v b v h v b, where t is the height of the top of the object, b is the height at the bottom, c is the height of the camera, and v t, v b, and v h, are the image row coordinates of the object and horizon. 4. Automatic Estimation of Vanishing Points Recall that all lines with the same 3D orientation will converge to a single point in an image, called a vanishing point. Likewise, sets of planes converge to a vanishing line in the image plane. If a set of parallel lines is also parallel to a particular plane, then their vanishing point will lie on the vanishing line of the plane. If we can recover vanishing points, we can use them to make a good guess at the 3D orientations of lines in the scene. As we will see, if we can recover a triplet of vanishing points that correspond to orthogonal sets of lines, we can solve for the focal length and optical center of the camera. Typically, two of the orthogonal vanishing points will be on the horizon and the third will be in the vertical direction. If desired, we can solve for the rotation matrix that sets the orthogonal directions as the X,, and Z directions. Most vanishing point detection algorithms work by detecting lines and clustering them into groups that are nearly intersecting. If we suspect that the three dominant vanishing directions will be mutually orthogonal, e.g., as in architectural scenes, we can constrain the triplet of vanishing points to provide reasonable camera parameters. However, there are a few challenges that make the problem of recovering vanishing points robustly much more tricky than it sounds. In the scene, many lines, such as those on a tree s branches, point in unusual 3D orientations. Nearly all pairs of lines will intersect in the image plane, even if they are not parallel in 3D, leading to many spurious candidates for vanishing points. Further, inevitable small errors in line localization cause sets of lines that really are parallel in 3D not to intersect at a single point. Finally, an image may contain many lines, and it is difficult to quickly find the most promising set of vanishing points. Basic algorithm to estimate three mutually orthogonal vanishing points: 1. Detect straight line segments in an image, represented by center (u i,v i ) and angle θ i in radians. Ignore lines with fewer than L pixels (e.g., L=20), because these are less likely to be correct detections or to have large angular error. Kosecka and Zhang [123] describe an effective line detection algorithm (see Derek Hoiem s software page for an implementation, currently at 20

7 5 SUMMAR OF KE CONCEPTS 2. Find intersection points of all pairs of lines to create a set of vanishing point candidates. It s easiest to represent points in homogeneous coordinates, p i = [w i u i w i v i w i ] T, and lines in the form l i = [a i b i c i ] T using the line equation ax + by + c = 0. The intersection of lines l i and l j is given by their cross product: p i j = l i l j. If the lines are parallel, then w i j = 0. Likewise, the line formed by two points p i and p j is given by their cross product: l i j = p i p j. 3. Compute a score s j for each vanishing point candidate (u j,v j ): s j = i l i exp ( α i θ i 2σ 2 ) where l i is the length and θ i is the orientation (in radians) of line segment i, α i is the angle from the center of the line segment (u i,v i ) to (u j,v j ) in radians, and σ is a scale parameters (e.g., σ = 0.1). In the distance between angles, note that 2π = 0 = 2π. 4. Choose the triplet with the highest total score that also leads to reasonable camera parameters. For a given triplet, p i, p j, p k, the total score is s i jk = s i +s j +s k. Orthogonality constraints specify: ( K 1 p i ) T ( K 1 p j ) = 0; ( K 1 p i ) T ( K 1 p k ) = 0; and ( K 1 p j ) T ( K 1 p k ) = 0, where K is the 3x3 matrix in Eq. 3.2 and the points are in homogeneous coordinates. With three equations and three unknowns, we can solve for u 0, v 0, and f. We consider (u 0, v 0 ) within the image bounds and f > 0 to be reasonable parameters. The algorithm described above is a simplified version of the methods in Rother [189] and Hedau et al. [94]. Many other algorithms are possible, such as [123, 226, 11], that improve efficiency, handle vanishing points that are not mutually orthogonal, incorporate new priors, or have different ways of scoring the candidates. Implementations from Tardif [226] and Barinova et al. [11] are available online. Sometimes, for complicated or non-architectural scenes, example-based methods [239, 104] may provide better estimates of perspective than vanishing point based methods. 5. Summary of Key Concepts The camera projects 3D points onto a 2D imaging plane. In consequence, parallel 3D lines converge to a vanishing point on the image plane, size relationships and angles between lines are distorted, and nearer objects occlude further objects along a ray. The true sizes, positions, and orientations of objects and surfaces can often be recovered by modeling the camera, typically with a pinhole camera model. The reader should understand and memorize the pinhole projection equation (Eq. 3.1) and the notation of the intrinsic and extrinsic camera matrices. To recover 3D size and position in an image, we need to know the distance and orientation between the camera and the supporting 3D plane, typically through vanishing point estimation or detection of known objects., 21

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

Pinhole Camera Model 10/05/17. Computational Photography Derek Hoiem, University of Illinois Pinhole Camera Model /5/7 Computational Photography Derek Hoiem, University of Illinois Next classes: Single-view Geometry How tall is this woman? How high is the camera? What is the camera rotation? What

More information

Projective Geometry and Camera Models

Projective Geometry and Camera Models Projective Geometry and Camera Models Computer Vision CS 43 Brown James Hays Slides from Derek Hoiem, Alexei Efros, Steve Seitz, and David Forsyth Administrative Stuff My Office hours, CIT 375 Monday and

More information

Projective Geometry and Camera Models

Projective Geometry and Camera Models /2/ Projective Geometry and Camera Models Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem Note about HW Out before next Tues Prob: covered today, Tues Prob2: covered next Thurs Prob3:

More information

Camera Geometry II. COS 429 Princeton University

Camera Geometry II. COS 429 Princeton University Camera Geometry II COS 429 Princeton University Outline Projective geometry Vanishing points Application: camera calibration Application: single-view metrology Epipolar geometry Application: stereo correspondence

More information

Introduction to Homogeneous coordinates

Introduction to Homogeneous coordinates Last class we considered smooth translations and rotations of the camera coordinate system and the resulting motions of points in the image projection plane. These two transformations were expressed mathematically

More information

Camera model and multiple view geometry

Camera model and multiple view geometry Chapter Camera model and multiple view geometry Before discussing how D information can be obtained from images it is important to know how images are formed First the camera model is introduced and then

More information

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Computer Vision Projective Geometry and Calibration. Pinhole cameras Computer Vision Projective Geometry and Calibration Professor Hager http://www.cs.jhu.edu/~hager Jason Corso http://www.cs.jhu.edu/~jcorso. Pinhole cameras Abstract camera model - box with a small hole

More information

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

Rigid Body Motion and Image Formation. Jana Kosecka, CS 482 Rigid Body Motion and Image Formation Jana Kosecka, CS 482 A free vector is defined by a pair of points : Coordinates of the vector : 1 3D Rotation of Points Euler angles Rotation Matrices in 3D 3 by 3

More information

Visual Recognition: Image Formation

Visual Recognition: Image Formation Visual Recognition: Image Formation Raquel Urtasun TTI Chicago Jan 5, 2012 Raquel Urtasun (TTI-C) Visual Recognition Jan 5, 2012 1 / 61 Today s lecture... Fundamentals of image formation You should know

More information

Single-view metrology

Single-view metrology 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

More information

Single-view 3D Reconstruction

Single-view 3D Reconstruction Single-view 3D Reconstruction 10/12/17 Computational Photography Derek Hoiem, University of Illinois Some slides from Alyosha Efros, Steve Seitz Notes about Project 4 (Image-based Lighting) You can work

More information

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

Camera Calibration. Schedule. Jesus J Caban. Note: You have until next Monday to let me know. ! Today:! Camera calibration Camera Calibration Jesus J Caban Schedule! Today:! Camera calibration! Wednesday:! Lecture: Motion & Optical Flow! Monday:! Lecture: Medical Imaging! Final presentations:! Nov 29 th : W. Griffin! Dec 1

More information

Pin Hole Cameras & Warp Functions

Pin Hole Cameras & Warp Functions Pin Hole Cameras & Warp Functions Instructor - Simon Lucey 16-423 - Designing Computer Vision Apps Today Pinhole Camera. Homogenous Coordinates. Planar Warp Functions. Motivation Taken from: http://img.gawkerassets.com/img/18w7i1umpzoa9jpg/original.jpg

More information

Camera models and calibration

Camera models and calibration Camera models and calibration Read tutorial chapter 2 and 3. http://www.cs.unc.edu/~marc/tutorial/ Szeliski s book pp.29-73 Schedule (tentative) 2 # date topic Sep.8 Introduction and geometry 2 Sep.25

More information

Simultaneous Vanishing Point Detection and Camera Calibration from Single Images

Simultaneous Vanishing Point Detection and Camera Calibration from Single Images Simultaneous Vanishing Point Detection and Camera Calibration from Single Images Bo Li, Kun Peng, Xianghua Ying, and Hongbin Zha The Key Lab of Machine Perception (Ministry of Education), Peking University,

More information

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

Image Transformations & Camera Calibration. Mašinska vizija, 2018. Image Transformations & Camera Calibration Mašinska vizija, 2018. Image transformations What ve we learnt so far? Example 1 resize and rotate Open warp_affine_template.cpp Perform simple resize

More information

calibrated coordinates Linear transformation pixel coordinates

calibrated coordinates Linear transformation pixel coordinates 1 calibrated coordinates Linear transformation pixel coordinates 2 Calibration with a rig Uncalibrated epipolar geometry Ambiguities in image formation Stratified reconstruction Autocalibration with partial

More information

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

Homogeneous Coordinates. Lecture18: Camera Models. Representation of Line and Point in 2D. Cross Product. Overall scaling is NOT important. Homogeneous Coordinates Overall scaling is NOT important. CSED44:Introduction to Computer Vision (207F) Lecture8: Camera Models Bohyung Han CSE, POSTECH bhhan@postech.ac.kr (",, ) ()", ), )) ) 0 It is

More information

Computer Vision cmput 428/615

Computer Vision cmput 428/615 Computer Vision cmput 428/615 Basic 2D and 3D geometry and Camera models Martin Jagersand The equation of projection Intuitively: How do we develop a consistent mathematical framework for projection calculations?

More information

Projective geometry for Computer Vision

Projective geometry for Computer Vision Department of Computer Science and Engineering IIT Delhi NIT, Rourkela March 27, 2010 Overview Pin-hole camera Why projective geometry? Reconstruction Computer vision geometry: main problems Correspondence

More information

CSE 252B: Computer Vision II

CSE 252B: Computer Vision II CSE 252B: Computer Vision II Lecturer: Serge Belongie Scribe: Sameer Agarwal LECTURE 1 Image Formation 1.1. The geometry of image formation We begin by considering the process of image formation when a

More information

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

Camera Models and Image Formation. Srikumar Ramalingam School of Computing University of Utah Camera Models and Image Formation Srikumar Ramalingam School of Computing University of Utah srikumar@cs.utah.edu Reference Most slides are adapted from the following notes: Some lecture notes on geometric

More information

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

CIS 580, Machine Perception, Spring 2016 Homework 2 Due: :59AM CIS 580, Machine Perception, Spring 2016 Homework 2 Due: 2015.02.24. 11:59AM Instructions. Submit your answers in PDF form to Canvas. This is an individual assignment. 1 Recover camera orientation By observing

More information

521466S Machine Vision Exercise #1 Camera models

521466S Machine Vision Exercise #1 Camera models 52466S Machine Vision Exercise # Camera models. Pinhole camera. The perspective projection equations or a pinhole camera are x n = x c, = y c, where x n = [x n, ] are the normalized image coordinates,

More information

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

COSC579: Scene Geometry. Jeremy Bolton, PhD Assistant Teaching Professor COSC579: Scene Geometry Jeremy Bolton, PhD Assistant Teaching Professor Overview Linear Algebra Review Homogeneous vs non-homogeneous representations Projections and Transformations Scene Geometry The

More information

Pin Hole Cameras & Warp Functions

Pin Hole Cameras & Warp Functions Pin Hole Cameras & Warp Functions Instructor - Simon Lucey 16-423 - Designing Computer Vision Apps Today Pinhole Camera. Homogenous Coordinates. Planar Warp Functions. Example of SLAM for AR Taken from:

More information

3D Sensing and Reconstruction Readings: Ch 12: , Ch 13: ,

3D Sensing and Reconstruction Readings: Ch 12: , Ch 13: , 3D Sensing and Reconstruction Readings: Ch 12: 12.5-6, Ch 13: 13.1-3, 13.9.4 Perspective Geometry Camera Model Stereo Triangulation 3D Reconstruction by Space Carving 3D Shape from X means getting 3D coordinates

More information

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

DD2423 Image Analysis and Computer Vision IMAGE FORMATION. Computational Vision and Active Perception School of Computer Science and Communication DD2423 Image Analysis and Computer Vision IMAGE FORMATION Mårten Björkman Computational Vision and Active Perception School of Computer Science and Communication November 8, 2013 1 Image formation Goal:

More information

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

Perspective projection. A. Mantegna, Martyrdom of St. Christopher, c. 1450 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

More information

Perspective Projection in Homogeneous Coordinates

Perspective Projection in Homogeneous Coordinates Perspective Projection in Homogeneous Coordinates Carlo Tomasi If standard Cartesian coordinates are used, a rigid transformation takes the form X = R(X t) and the equations of perspective projection are

More information

Stereo Vision. MAN-522 Computer Vision

Stereo Vision. MAN-522 Computer Vision Stereo Vision MAN-522 Computer Vision What is the goal of stereo vision? The recovery of the 3D structure of a scene using two or more images of the 3D scene, each acquired from a different viewpoint in

More information

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

Camera Models and Image Formation. Srikumar Ramalingam School of Computing University of Utah Camera Models and Image Formation Srikumar Ramalingam School of Computing University of Utah srikumar@cs.utah.edu VisualFunHouse.com 3D Street Art Image courtesy: Julian Beaver (VisualFunHouse.com) 3D

More information

Computer Vision Project-1

Computer Vision Project-1 University of Utah, School Of Computing Computer Vision Project- Singla, Sumedha sumedha.singla@utah.edu (00877456 February, 205 Theoretical Problems. Pinhole Camera (a A straight line in the world space

More information

METRIC PLANE RECTIFICATION USING SYMMETRIC VANISHING POINTS

METRIC PLANE RECTIFICATION USING SYMMETRIC VANISHING POINTS METRIC PLANE RECTIFICATION USING SYMMETRIC VANISHING POINTS M. Lefler, H. Hel-Or Dept. of CS, University of Haifa, Israel Y. Hel-Or School of CS, IDC, Herzliya, Israel ABSTRACT Video analysis often requires

More information

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

Single View Geometry. Camera model & Orientation + Position estimation. What am I? Single View Geometry Camera model & Orientation + Position estimation What am I? Vanishing point Mapping from 3D to 2D Point & Line Goal: Point Homogeneous coordinates represent coordinates in 2 dimensions

More information

1 Projective Geometry

1 Projective Geometry CIS8, Machine Perception Review Problem - SPRING 26 Instructions. All coordinate systems are right handed. Projective Geometry Figure : Facade rectification. I took an image of a rectangular object, and

More information

More Single View Geometry

More Single View Geometry More Single View Geometry with a lot of slides stolen from Steve Seitz Cyclops Odilon Redon 1904 15-463: Computational Photography Alexei Efros, CMU, Fall 2008 Quiz: which is 1,2,3-point perspective Image

More information

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

3D Viewing. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 9 3D Viewing CS 46 Lecture 9 Cornell CS46 Spring 18 Lecture 9 18 Steve Marschner 1 Viewing, backward and forward So far have used the backward approach to viewing start from pixel ask what part of scene

More information

Capturing Light: Geometry of Image Formation

Capturing Light: Geometry of Image Formation Capturing Light: Geometry of Image Formation Computer Vision James Hays Slides from Derek Hoiem, Alexei Efros, Steve Seitz, and David Forsyth Administrative Stuff My Office hours, CoC building 35 Monday

More information

MERGING POINT CLOUDS FROM MULTIPLE KINECTS. Nishant Rai 13th July, 2016 CARIS Lab University of British Columbia

MERGING POINT CLOUDS FROM MULTIPLE KINECTS. Nishant Rai 13th July, 2016 CARIS Lab University of British Columbia MERGING POINT CLOUDS FROM MULTIPLE KINECTS Nishant Rai 13th July, 2016 CARIS Lab University of British Columbia Introduction What do we want to do? : Use information (point clouds) from multiple (2+) Kinects

More information

Flexible Calibration of a Portable Structured Light System through Surface Plane

Flexible Calibration of a Portable Structured Light System through Surface Plane Vol. 34, No. 11 ACTA AUTOMATICA SINICA November, 2008 Flexible Calibration of a Portable Structured Light System through Surface Plane GAO Wei 1 WANG Liang 1 HU Zhan-Yi 1 Abstract For a portable structured

More information

Structure from Motion. Prof. Marco Marcon

Structure from Motion. Prof. Marco Marcon Structure from Motion Prof. Marco Marcon Summing-up 2 Stereo is the most powerful clue for determining the structure of a scene Another important clue is the relative motion between the scene and (mono)

More information

Scene Modeling for a Single View

Scene Modeling for a Single View Scene Modeling for a Single View René MAGRITTE Portrait d'edward James with a lot of slides stolen from Steve Seitz and David Brogan, Breaking out of 2D now we are ready to break out of 2D And enter the

More information

CS-9645 Introduction to Computer Vision Techniques Winter 2019

CS-9645 Introduction to Computer Vision Techniques Winter 2019 Table of Contents Projective Geometry... 1 Definitions...1 Axioms of Projective Geometry... Ideal Points...3 Geometric Interpretation... 3 Fundamental Transformations of Projective Geometry... 4 The D

More information

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

Computer Vision. Coordinates. Prof. Flávio Cardeal DECOM / CEFET- MG. Computer Vision Coordinates Prof. Flávio Cardeal DECOM / CEFET- MG cardeal@decom.cefetmg.br Abstract This lecture discusses world coordinates and homogeneous coordinates, as well as provides an overview

More information

Agenda. Perspective projection. Rotations. Camera models

Agenda. Perspective projection. Rotations. Camera models Image formation Agenda Perspective projection Rotations Camera models Light as a wave + particle Light as a wave (ignore for now) Refraction Diffraction Image formation Digital Image Film Human eye Pixel

More information

REPRESENTATIONS AND TECHNIQUES FOR 3D OBJECT RECOGNITION AND SCENE INTERPRETATION. Derek Hoiem. Silvio Savarese

REPRESENTATIONS AND TECHNIQUES FOR 3D OBJECT RECOGNITION AND SCENE INTERPRETATION. Derek Hoiem. Silvio Savarese REPRESENTATIONS AND TECHNIQUES FOR 3D OBJECT RECOGNITION AND SCENE INTERPRETATION Derek Hoiem University of Illinois at Urbana-Champaign dhoiem@illinois.edu Silvio Savarese University of Michigan silvio@eecs.umich.edu

More information

TD2 : Stereoscopy and Tracking: solutions

TD2 : Stereoscopy and Tracking: solutions TD2 : Stereoscopy and Tracking: solutions Preliminary: λ = P 0 with and λ > 0. If camera undergoes the rigid transform: (R,T), then with, so that is the intrinsic parameter matrix. C(Cx,Cy,Cz) is the point

More information

Robotics - Projective Geometry and Camera model. Marcello Restelli

Robotics - Projective Geometry and Camera model. Marcello Restelli Robotics - Projective Geometr and Camera model Marcello Restelli marcello.restelli@polimi.it Dipartimento di Elettronica, Informazione e Bioingegneria Politecnico di Milano Ma 2013 Inspired from Matteo

More information

Chapter 5. Projections and Rendering

Chapter 5. Projections and Rendering Chapter 5 Projections and Rendering Topics: Perspective Projections The rendering pipeline In order to view manipulate and view a graphics object we must find ways of storing it a computer-compatible way.

More information

Parallel and perspective projections such as used in representing 3d images.

Parallel and perspective projections such as used in representing 3d images. Chapter 5 Rotations and projections In this chapter we discuss Rotations Parallel and perspective projections such as used in representing 3d images. Using coordinates and matrices, parallel projections

More information

N-Views (1) Homographies and Projection

N-Views (1) Homographies and Projection CS 4495 Computer Vision N-Views (1) Homographies and Projection Aaron Bobick School of Interactive Computing Administrivia PS 2: Get SDD and Normalized Correlation working for a given windows size say

More information

Game Architecture. 2/19/16: Rasterization

Game Architecture. 2/19/16: Rasterization Game Architecture 2/19/16: Rasterization Viewing To render a scene, need to know Where am I and What am I looking at The view transform is the matrix that does this Maps a standard view space into world

More information

CS4670: Computer Vision

CS4670: Computer Vision CS467: Computer Vision Noah Snavely Lecture 13: Projection, Part 2 Perspective study of a vase by Paolo Uccello Szeliski 2.1.3-2.1.6 Reading Announcements Project 2a due Friday, 8:59pm Project 2b out Friday

More information

Short on camera geometry and camera calibration

Short on camera geometry and camera calibration Short on camera geometry and camera calibration Maria Magnusson, maria.magnusson@liu.se Computer Vision Laboratory, Department of Electrical Engineering, Linköping University, Sweden Report No: LiTH-ISY-R-3070

More information

Midterm Examination CS 534: Computational Photography

Midterm Examination CS 534: Computational Photography Midterm Examination CS 534: Computational Photography November 3, 2016 NAME: Problem Score Max Score 1 6 2 8 3 9 4 12 5 4 6 13 7 7 8 6 9 9 10 6 11 14 12 6 Total 100 1 of 8 1. [6] (a) [3] What camera setting(s)

More information

PART A Three-Dimensional Measurement with iwitness

PART A Three-Dimensional Measurement with iwitness PART A Three-Dimensional Measurement with iwitness A1. The Basic Process The iwitness software system enables a user to convert two-dimensional (2D) coordinate (x,y) information of feature points on an

More information

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

Image Formation. Antonino Furnari. Image Processing Lab Dipartimento di Matematica e Informatica Università degli Studi di Catania Image Formation Antonino Furnari Image Processing Lab Dipartimento di Matematica e Informatica Università degli Studi di Catania furnari@dmi.unict.it 18/03/2014 Outline Introduction; Geometric Primitives

More information

Lecture 8: Camera Models

Lecture 8: Camera Models Lecture 8: Camera Models Dr. Juan Carlos Niebles Stanford AI Lab Professor Fei- Fei Li Stanford Vision Lab 1 14- Oct- 15 What we will learn today? Pinhole cameras Cameras & lenses The geometry of pinhole

More information

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Computer Vision Projective Geometry and Calibration. Pinhole cameras Computer Vision Projective Geometry and Calibration Professor Hager http://www.cs.jhu.edu/~hager Jason Corso http://www.cs.jhu.edu/~jcorso. Pinhole cameras Abstract camera model - box with a small hole

More information

Scene Modeling for a Single View

Scene Modeling for a Single View Scene Modeling for a Single View René MAGRITTE Portrait d'edward James with a lot of slides stolen from Steve Seitz and David Brogan, 15-463: Computational Photography Alexei Efros, CMU, Fall 2005 Classes

More information

cse 252c Fall 2004 Project Report: A Model of Perpendicular Texture for Determining Surface Geometry

cse 252c Fall 2004 Project Report: A Model of Perpendicular Texture for Determining Surface Geometry cse 252c Fall 2004 Project Report: A Model of Perpendicular Texture for Determining Surface Geometry Steven Scher December 2, 2004 Steven Scher SteveScher@alumni.princeton.edu Abstract Three-dimensional

More information

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

Module 4F12: Computer Vision and Robotics Solutions to Examples Paper 2 Engineering Tripos Part IIB FOURTH YEAR Module 4F2: Computer Vision and Robotics Solutions to Examples Paper 2. Perspective projection and vanishing points (a) Consider a line in 3D space, defined in camera-centered

More information

More Single View Geometry

More Single View Geometry More Single View Geometry with a lot of slides stolen from Steve Seitz Cyclops Odilon Redon 1904 15-463: Computational Photography Alexei Efros, CMU, Fall 2007 Final Projects Are coming up fast! Undergrads

More information

Camera Model and Calibration

Camera Model and Calibration Camera Model and Calibration Lecture-10 Camera Calibration Determine extrinsic and intrinsic parameters of camera Extrinsic 3D location and orientation of camera Intrinsic Focal length The size of the

More information

3D Viewing. CS 4620 Lecture 8

3D Viewing. CS 4620 Lecture 8 3D Viewing CS 46 Lecture 8 13 Steve Marschner 1 Viewing, backward and forward So far have used the backward approach to viewing start from pixel ask what part of scene projects to pixel explicitly construct

More information

Unit 3 Multiple View Geometry

Unit 3 Multiple View Geometry Unit 3 Multiple View Geometry Relations between images of a scene Recovering the cameras Recovering the scene structure http://www.robots.ox.ac.uk/~vgg/hzbook/hzbook1.html 3D structure from images Recover

More information

Computer Vision Lecture 17

Computer Vision Lecture 17 Computer Vision Lecture 17 Epipolar Geometry & Stereo Basics 13.01.2015 Bastian Leibe RWTH Aachen http://www.vision.rwth-aachen.de leibe@vision.rwth-aachen.de Announcements Seminar in the summer semester

More information

Scene Modeling for a Single View

Scene Modeling for a Single View Scene Modeling for a Single View René MAGRITTE Portrait d'edward James CS194: Image Manipulation & Computational Photography with a lot of slides stolen from Alexei Efros, UC Berkeley, Fall 2014 Steve

More information

Computer Vision Lecture 17

Computer Vision Lecture 17 Announcements Computer Vision Lecture 17 Epipolar Geometry & Stereo Basics Seminar in the summer semester Current Topics in Computer Vision and Machine Learning Block seminar, presentations in 1 st week

More information

Lecture 3 Sections 2.2, 4.4. Mon, Aug 31, 2009

Lecture 3 Sections 2.2, 4.4. Mon, Aug 31, 2009 Model s Lecture 3 Sections 2.2, 4.4 World s Eye s Clip s s s Window s Hampden-Sydney College Mon, Aug 31, 2009 Outline Model s World s Eye s Clip s s s Window s 1 2 3 Model s World s Eye s Clip s s s Window

More information

CS231A Course Notes 4: Stereo Systems and Structure from Motion

CS231A Course Notes 4: Stereo Systems and Structure from Motion CS231A Course Notes 4: Stereo Systems and Structure from Motion Kenji Hata and Silvio Savarese 1 Introduction In the previous notes, we covered how adding additional viewpoints of a scene can greatly enhance

More information

Stereo imaging ideal geometry

Stereo imaging ideal geometry Stereo imaging ideal geometry (X,Y,Z) Z f (x L,y L ) f (x R,y R ) Optical axes are parallel Optical axes separated by baseline, b. Line connecting lens centers is perpendicular to the optical axis, and

More information

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

CIS 580, Machine Perception, Spring 2015 Homework 1 Due: :59AM CIS 580, Machine Perception, Spring 2015 Homework 1 Due: 2015.02.09. 11:59AM Instructions. Submit your answers in PDF form to Canvas. This is an individual assignment. 1 Camera Model, Focal Length and

More information

More Single View Geometry

More Single View Geometry More Single View Geometry 5-463: Rendering and Image rocessing Alexei Efros with a lot of slides stolen from Steve Seitz and Antonio Criminisi Quiz! Image B Image A Image C How can we model this scene?.

More information

More Single View Geometry

More Single View Geometry More Single View Geometry with a lot of slides stolen from Steve Seitz Cyclops Odilon Redon 1904 15-463: Computational hotography Alexei Efros, CMU, Fall 2011 Quiz: which is 1,2,3-point perspective Image

More information

3-D D Euclidean Space - Vectors

3-D D Euclidean Space - Vectors 3-D D Euclidean Space - Vectors Rigid Body Motion and Image Formation A free vector is defined by a pair of points : Jana Kosecka http://cs.gmu.edu/~kosecka/cs682.html Coordinates of the vector : 3D Rotation

More information

Raycasting. Chapter Raycasting foundations. When you look at an object, like the ball in the picture to the left, what do

Raycasting. Chapter Raycasting foundations. When you look at an object, like the ball in the picture to the left, what do Chapter 4 Raycasting 4. Raycasting foundations When you look at an, like the ball in the picture to the left, what do lamp you see? You do not actually see the ball itself. Instead, what you see is the

More information

Multiple View Geometry

Multiple View Geometry Multiple View Geometry CS 6320, Spring 2013 Guest Lecture Marcel Prastawa adapted from Pollefeys, Shah, and Zisserman Single view computer vision Projective actions of cameras Camera callibration Photometric

More information

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

Stereo CSE 576. Ali Farhadi. Several slides from Larry Zitnick and Steve Seitz Stereo CSE 576 Ali Farhadi Several slides from Larry Zitnick and Steve Seitz Why do we perceive depth? What do humans use as depth cues? Motion Convergence When watching an object close to us, our eyes

More information

Perspective projection and Transformations

Perspective projection and Transformations Perspective projection and Transformations The pinhole camera The pinhole camera P = (X,,) p = (x,y) O λ = 0 Q λ = O λ = 1 Q λ = P =-1 Q λ X = 0 + λ X 0, 0 + λ 0, 0 + λ 0 = (λx, λ, λ) The pinhole camera

More information

Three-Dimensional Viewing Hearn & Baker Chapter 7

Three-Dimensional Viewing Hearn & Baker Chapter 7 Three-Dimensional Viewing Hearn & Baker Chapter 7 Overview 3D viewing involves some tasks that are not present in 2D viewing: Projection, Visibility checks, Lighting effects, etc. Overview First, set up

More information

Discriminant Functions for the Normal Density

Discriminant Functions for the Normal Density Announcements Project Meetings CSE Rm. 4120 HW1: Not yet posted Pattern classification & Image Formation CSE 190 Lecture 5 CSE190d, Winter 2011 CSE190d, Winter 2011 Discriminant Functions for the Normal

More information

Chapters 1-4: Summary

Chapters 1-4: Summary Chapters 1-4: Summary So far, we have been investigating the image acquisition process. Chapter 1: General introduction Chapter 2: Radiation source and properties Chapter 3: Radiation interaction with

More information

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

3D Sensing. 3D Shape from X. Perspective Geometry. Camera Model. Camera Calibration. General Stereo Triangulation. 3D Sensing 3D Shape from X Perspective Geometry Camera Model Camera Calibration General Stereo Triangulation 3D Reconstruction 3D Shape from X shading silhouette texture stereo light striping motion mainly

More information

Epipolar Geometry and the Essential Matrix

Epipolar Geometry and the Essential Matrix Epipolar Geometry and the Essential Matrix Carlo Tomasi The epipolar geometry of a pair of cameras expresses the fundamental relationship between any two corresponding points in the two image planes, and

More information

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

Lecture 11 MRF s (conbnued), cameras and lenses. 6.869 Advances in Computer Vision Bill Freeman and Antonio Torralba Spring 2011 Lecture 11 MRF s (conbnued), cameras and lenses. remember correction on Gibbs sampling Motion application image patches image

More information

Multiple View Geometry in computer vision

Multiple View Geometry in computer vision Multiple View Geometry in computer vision Chapter 8: More Single View Geometry Olaf Booij Intelligent Systems Lab Amsterdam University of Amsterdam, The Netherlands HZClub 29-02-2008 Overview clubje Part

More information

Computer Vision CS 776 Fall 2018

Computer Vision CS 776 Fall 2018 Computer Vision CS 776 Fall 2018 Cameras & Photogrammetry 1 Prof. Alex Berg (Slide credits to many folks on individual slides) Cameras & Photogrammetry 1 Albrecht Dürer early 1500s Brunelleschi, early

More information

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

CMPSCI 670: Computer Vision! Image formation. University of Massachusetts, Amherst September 8, 2014 Instructor: Subhransu Maji CMPSCI 670: Computer Vision! Image formation University of Massachusetts, Amherst September 8, 2014 Instructor: Subhransu Maji MATLAB setup and tutorial Does everyone have access to MATLAB yet? EdLab accounts

More information

5LSH0 Advanced Topics Video & Analysis

5LSH0 Advanced Topics Video & Analysis 1 Multiview 3D video / Outline 2 Advanced Topics Multimedia Video (5LSH0), Module 02 3D Geometry, 3D Multiview Video Coding & Rendering Peter H.N. de With, Sveta Zinger & Y. Morvan ( p.h.n.de.with@tue.nl

More information

Perspective Projection [2 pts]

Perspective Projection [2 pts] Instructions: CSE252a Computer Vision Assignment 1 Instructor: Ben Ochoa Due: Thursday, October 23, 11:59 PM Submit your assignment electronically by email to iskwak+252a@cs.ucsd.edu with the subject line

More information

Projective geometry, camera models and calibration

Projective geometry, camera models and calibration Projective geometry, camera models and calibration Subhashis Banerjee Dept. Computer Science and Engineering IIT Delhi email: suban@cse.iitd.ac.in January 6, 2008 The main problems in computer vision Image

More information

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

Planar homographies. Can we reconstruct another view from one image?   vgg/projects/singleview/ Planar homographies Goal: Introducing 2D Homographies Motivation: What is the relation between a plane in the world and a perspective image of it? Can we reconstruct another view from one image? Readings:

More information

Camera Calibration for Video See-Through Head-Mounted Display. Abstract. 1.0 Introduction. Mike Bajura July 7, 1993

Camera Calibration for Video See-Through Head-Mounted Display. Abstract. 1.0 Introduction. Mike Bajura July 7, 1993 Camera Calibration for Video See-Through Head-Mounted Display Mike Bajura July 7, 1993 Abstract This report describes a method for computing the parameters needed to model a television camera for video

More information

Overview. By end of the week:

Overview. By end of the week: Overview By end of the week: - Know the basics of git - Make sure we can all compile and run a C++/ OpenGL program - Understand the OpenGL rendering pipeline - Understand how matrices are used for geometric

More information

Scene Modeling for a Single View

Scene Modeling for a Single View on to 3D Scene Modeling for a Single View We want real 3D scene walk-throughs: rotation translation Can we do it from a single photograph? Reading: A. Criminisi, I. Reid and A. Zisserman, Single View Metrology

More information

Assignment 2 : Projection and Homography

Assignment 2 : Projection and Homography TECHNISCHE UNIVERSITÄT DRESDEN EINFÜHRUNGSPRAKTIKUM COMPUTER VISION Assignment 2 : Projection and Homography Hassan Abu Alhaija November 7,204 INTRODUCTION In this exercise session we will get a hands-on

More information

Camera Model and Calibration. Lecture-12

Camera Model and Calibration. Lecture-12 Camera Model and Calibration Lecture-12 Camera Calibration Determine extrinsic and intrinsic parameters of camera Extrinsic 3D location and orientation of camera Intrinsic Focal length The size of the

More information

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

Image formation. Thanks to Peter Corke and Chuck Dyer for the use of some slides Image formation Thanks to Peter Corke and Chuck Dyer for the use of some slides Image Formation Vision infers world properties form images. How do images depend on these properties? Two key elements Geometry

More information