521466S Machine Vision Exercise #1 Camera models

Similar documents
3-D D Euclidean Space - Vectors

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

Camera Model and Calibration

Geometry of a single camera. Odilon Redon, Cyclops, 1914

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

Computer Vision Project-1

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

Answers to practice questions for Midterm 1

Computer Vision Projective Geometry and Calibration. Pinhole cameras

CSE 252B: Computer Vision II

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

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

Camera Model and Calibration. Lecture-12

2 DETERMINING THE VANISHING POINT LOCA- TIONS

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

Lenses & Prism Consider light entering a prism At the plane surface perpendicular light is unrefracted Moving from the glass to the slope side light

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

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

Assignment 2 : Projection and Homography

CS6670: Computer Vision

Vision Review: Image Formation. Course web page:

Jump Stitch Metadata & Depth Maps Version 1.1

Camera model and calibration

Laser sensors. Transmitter. Receiver. Basilio Bona ROBOTICA 03CFIOR

CS4670: Computer Vision

Computer Vision cmput 428/615

Visual Recognition: Image Formation

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

Projective Geometry and Camera Models

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

Rectification and Distortion Correction

Reflection and Refraction

MAPI Computer Vision. Multiple View Geometry

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

Perspective projection and Transformations

Projective Geometry and Camera Models

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

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

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

Camera Models. Acknowledgements Used slides/content with permission from

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

Introduction to Homogeneous coordinates

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

3D Geometry and Camera Calibration

Differential Geometry: Circle Patterns (Part 1) [Discrete Conformal Mappinngs via Circle Patterns. Kharevych, Springborn and Schröder]

Robotics - Projective Geometry and Camera model. Marcello Restelli

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Perspective Projection in Homogeneous Coordinates

ECE Digital Image Processing and Introduction to Computer Vision. Outline

Computer Vision I - Appearance-based Matching and Projective Geometry

Camera model and multiple view geometry

Homogeneous coordinates, lines, screws and twists

Robot Vision: Camera calibration

x 2 + y 2 + z 2 = 1 = ˆr ŷ = ±y cosθ z (a) The half angle of the cones (inside the material) is just given by the critical angle sinθ c n = 3.

Announcements. Tutorial this week Life of the polygon A1 theory questions

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

Chapter 5: Light and Vision CHAPTER 5: LIGHT AND VISION

Massachusetts Institute of Technology Department of Computer Science and Electrical Engineering 6.801/6.866 Machine Vision QUIZ II

Chapter 23. Geometrical Optics (lecture 1: mirrors) Dr. Armen Kocharian

Short on camera geometry and camera calibration

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

CS-9645 Introduction to Computer Vision Techniques Winter 2019

1 Projective Geometry

CS 664 Slides #9 Multi-Camera Geometry. Prof. Dan Huttenlocher Fall 2003

LIGHT & OPTICS. Fundamentals of Physics 2112 Chapter 34 1

Viewing. Reading: Angel Ch.5

METRIC PLANE RECTIFICATION USING SYMMETRIC VANISHING POINTS

Lecture 7 Measurement Using a Single Camera. Lin ZHANG, PhD School of Software Engineering Tongji University Fall 2016

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

The Graph of an Equation Graph the following by using a table of values and plotting points.

Image Formation. 2. Camera Geometry. Focal Length, Field Of View. Pinhole Camera Model. Computer Vision. Zoltan Kato

Announcements. The equation of projection. Image Formation and Cameras

Flexible Calibration of a Portable Structured Light System through Surface Plane

Computer Vision CS 776 Fall 2018

Camera models and calibration

Announcements. Equation of Perspective Projection. Image Formation and Cameras

Computer Graphics: Geometric Transformations

Cameras and Radiometry. Last lecture in a nutshell. Conversion Euclidean -> Homogenous -> Euclidean. Affine Camera Model. Simplified Camera Models

Perspective Projection Describes Image Formation Berthold K.P. Horn

Computer Graphics 7: Viewing in 3-D

Perspective Projection [2 pts]

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

Transforms. COMP 575/770 Spring 2013

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

Pin Hole Cameras & Warp Functions

CS201 Computer Vision Camera Geometry

Geometry of image formation

Computer Science 336 Fall 2017 Homework 2

Computer Vision Projective Geometry and Calibration

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

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

Image Formation I Chapter 2 (R. Szelisky)

Today s Agenda. Geometry

CHAPTER 40 CARTESIAN AND POLAR COORDINATES

Remember: The equation of projection. Imaging Geometry 1. Basic Geometric Coordinate Transforms. C306 Martin Jagersand

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

Robotics - Projective Geometry and Camera model. Matteo Pirotta

Basilio Bona DAUIN Politecnico di Torino

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

Specifying Complex Scenes

Transcription:

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, x c = [x c, y c, ] is the imaged point in the camera coordinate rame and is the ocal length. Give a geometric reasoning or the perspective projection equations. How do the equations change i we assume a virtual image located at a distance in ront o the pinhole? The ollowing igure illustrates the 3D geometry o a pinhole camera that projects point x c to x n : x c = [x c, y c, ] x n = [x n, ] x c ȳ c From similar triangles we get: x n = xc x n = xc = yc = yc The relation between the coordinates is better understood in 2D. For example, i we take plane x c =, the relation between and y c can be clearly seen: x c y c x n

I the image plane is replaced by a virtual image plane in ront o the pinhole the equations do not change. Notice that the directions o the coordinate axes are reversed in the virtual image plane! ȳn x c ȳ c

2. Pixel coordinate rame. The normalized image coordinates x n and given by the perspective projection equations above are not in pixel units. The x n and coordinates have the same unit as distance (typically millimeters) and the origin o the coordinate rame is the principal point (the point where the optical axis pierces the image plane). Now, give a ormula which transorms the point x n to its pixel coordinates p = [u, v] when the number o pixels per unit distance in u and v directions are m u and m v, respectively, the pixel coordinates o the principal point are (u, v ) and a) u and v axis are parallel to x and y axis, respectively. b) u axis is parallel to x axis and the angle between u and v axis is θ. a) Parallel axis: v u ū u We must express x n in pixel coordinates. From the picture we get: u = m u x n u = m ux n + u v = m v v = m v + v v b) Angled axis: (x n, ) v ỹ u θ ū A B θ x x x n D θ E We irst determine distances x and ỹ in the (, ) coordinate rame. From triangle ABC we get: ỹ = sin θ From triangle DEP we get x n x = tan θ x = x n tan θ Then C (x n, ) u = m u x + u = m u x n m u tan θ + u v = m v ỹ + v = m v sin θ + v

3. Intrinsics matrix Use homogeneous coordinates to represent cases (2.a) and (2.b) as a matrix K 3 3, also known as the camera s intrinsic matrix, so that ˆp = Kx c. Where ˆp is p in homogeneous coordinates. m u mu u tan θ K = mv v sin θ u s u = v v x c ˆp = K y c u x c + sy c + u = v y c + v 4. Vanishing point. Assume a pinhole camera looking into the direction o z-axis when the pinhole is placed at the origin. There are two parallel lines in the plane y =. The lines are parallel with the z-axis, point (,, ) is on the irst line and point (,, ) is on the second. What are the images o these lines? Compute the intersection o the projected lines. (You can work with the normalized image coordinates and assume that the ocal length is.) x c ȳ c ū B B A A =

3D points on line A: A(α) = A + α = + α = + α 3D points on line B: B(β) = B + β = + β = + β b() a( ) = b( ) ū a() Using the perspective equation we get 2D points on the lines and the line equations: ] a(α) = [ +α +α y = x ] b(β) = [ +β +β y = x Pinhole cameras project 3D lines as 2D lines (i the line is not on the principal plane). The lines (y = x) and (y = x) intersect at (, ). The projected lines intersect at the origin o the image coordinate plane, where the optical axis crosses the image plane. Note that the 3D lines are ininite but the 2D lines stop at the origin (i.e. they are only hal lines). Note: In act, it holds that the projections o two parallel lines lying on some plane Π converge on a horizon line L ormed by the intersection o the image plane with the plane parallel to Π and passing through the pinhole.

5. Radial lens distortion. According to a common model or radial lens distortion, the distorted image coordinates x d = [x d, y d ] are obtained by x d = x n + (x n x n ) ( k r 2 + k 2 r 4 + k 3 r 6 +... ) y d = + ( ) ( k r 2 + k 2 r 4 + k 3 r 6 +... ), where k i are parameters o the model (radial distortion coeicients), x n and are the normalized image coordinates, x n = [x n, ] is the distortion center, and r = (x n x n ) 2 + ( ) 2. Assume that k i = i >, x n = [3, 3], and x d = [5, 5] is the distorted position o x n = [, ]. Determine k. We may use either coordinate o the point correspondance x d x n to solve or k. By using x we get: x d = x n + (x n x n )k r 2 = x n + (x n x n )k ((x n x n ) 2 + ( ) 2 ) 2 x d x n k = (x n x n )((x n x n ) 2 + ( ) 2 ) 5 = ( 3)(( 3) 2 + ( 3) 2 ) = 3.25 6

6. Full camera model. Points are oten expressed in an arbitrary rame o reerence denoted the world reerence rame or {w}. We denote transormation between the world reerence rame and the camera reerence rame as {c} as w T c or simply T c. This is oten a simple rigid transormation consisting o a 3D rotation R and translation t: x c = R c x w + t c Write down the equations that convert a point orm world coordinates x w to pixel coordinates p c using homogeneous coordinates (ignore radial distortion). ˆx n = x c = [ R t ] ˆx w ˆp = K [ R t ] ˆx c We can deine P = K[R t] as the 3 4 projection matrix that completely deines a pinhole camera in space.