Camera model and calibration

Size: px
Start display at page:

Download "Camera model and calibration"

Transcription

1 and calibration AVIO Laboratoire de Traitement du Signal et des Images (LTSI) Université de Rennes 1. Mardi 21 janvier 1 AVIO tristan.moreau@univ-rennes1.fr and calibration

2 Plan : Introduction 1 Introduction 2 AVIO tristan.moreau@univ-rennes1.fr and calibration

3 Overview Figure: Overview in digital image processing. 3 AVIO tristan.moreau@univ-rennes1.fr and calibration

4 Plan global 1 Introduction AVIO tristan.moreau@univ-rennes1.fr and calibration

5 Planar geometry A hierarchy of transformations Plan : 2 Planar geometry A hierarchy of transformations 5 AVIO tristan.moreau@univ-rennes1.fr and calibration

6 Introduction Planar geometry A hierarchy of transformations Vanishing point 6 AVIO tristan.moreau@univ-rennes1.fr and calibration

7 Planar geometry A hierarchy of transformations Homogeneous representation of lines in 2D A line in plane can be represented as ax + by + c = 0. A line l can be represented by the vector (a, b, c) T. The same line l can be represented by multiples of a, b and c since kax + kby + kc = 0 = ax + by + c for k 0. Thus (a, b, c) T and k(a, b, c) T represents the same line for k 0. This equivalence set of vectors is known as homogeneous vector. The set of equivalence classes of vectors in R 3 (0, 0, 0) T forms the projective space P 2. 7 AVIO tristan.moreau@univ-rennes1.fr and calibration

8 Planar geometry A hierarchy of transformations Homogeneous coordinates : points in 2D A point x = (x, y) T lies on the line l = (a, b, c) T if if ax + by + c = 0. This may be written in terms of an inner product (x, y, 1)(a, b, c) T = (x, y, 1)l = 0. The set of vectors k(x, y, 1) T is a representation of a point (x, y) T in R 2. Just as lines, points are represented by homogeneous vectors. In P 2 the point x = (x 1, x 2, x 3 ) T represents the point (x 1 /x 3, x 2 /x 3 ) T. Result The point x lies on the line l if and only x T l = 0. 8 AVIO tristan.moreau@univ-rennes1.fr and calibration

9 Intersection of lines in 2D Planar geometry A hierarchy of transformations The intersection point x of two lines l 1 and l 2 satifies x T l 1 = x T l 2 = 0. Thus x = l 1 xl 2 (x :cross-product). 9 AVIO tristan.moreau@univ-rennes1.fr and calibration

10 Planar geometry A hierarchy of transformations Intersection of lines in 2D : an example Intersection of lines x = 1 and y = 1? 10 AVIO tristan.moreau@univ-rennes1.fr and calibration

11 Planar geometry A hierarchy of transformations Intersection of lines in 2D : an example Intersection of lines x = 1 and y = 1 x = 1 has homogeneous representation l1 = ( ) T. y = 1 has homogeneous representation l2 = ( ) T. x = l1xl2 = AVIO tristan.moreau@univ-rennes1.fr and calibration

12 Line joining points Planar geometry A hierarchy of transformations The line trough two points x 1 and x 2 is l = x 1 xx AVIO tristan.moreau@univ-rennes1.fr and calibration

13 Intersection of paralell lines Planar geometry A hierarchy of transformations 2 parallel lines l 1 = ( a b c 1 ) T and l2 = ( a b c 2 ) T. Intersection l 1 xl 2 is the point ( b a 0 ) T. Inhomogeneous representation of the intersection ( b/0 a/0 ) T, which makes no sense, except to suggest that the point of intersection has infinitely large coordinates. This observation agrees with the usual idea that parallel lines meet at infinity. 13 AVIO tristan.moreau@univ-rennes1.fr and calibration

14 Planar geometry A hierarchy of transformations Intersection of lines in 2D : an example Intersection of lines x = 1 and x = 2 x = 1 has homogeneous representation l1 = ( ) T. x = 2 has homogeneous representation l2 = ( ) T. x = l1xl2 = which is the point at infinity in direction ot the y-axis. 14 AVIO tristan.moreau@univ-rennes1.fr and calibration

15 Isometries Introduction Planar geometry A hierarchy of transformations x cos(θ) sin(θ) t x x y = sin(θ) cos(θ) t y y AVIO tristan.moreau@univ-rennes1.fr and calibration

16 Similarity transformations Planar geometry A hierarchy of transformations x scos(θ) ssin(θ) t x x y = ssin(θ) scos(θ) t y y AVIO tristan.moreau@univ-rennes1.fr and calibration

17 Affine transformations Planar geometry A hierarchy of transformations x a 11 a 12 t x x y = a 21 a 22 t y y AVIO tristan.moreau@univ-rennes1.fr and calibration

18 Projective transformations Planar geometry A hierarchy of transformations x a 11 a 12 a 13 x y = a 21 a 22 a 23 y. 1 a 31 a 32 a AVIO tristan.moreau@univ-rennes1.fr and calibration

19 Plan : Finite cameras The projective camera 3 Finite cameras The projective camera 19 AVIO tristan.moreau@univ-rennes1.fr and calibration

20 History Introduction Finite cameras The projective camera Figure: Camera obscura published in De Radio Astronomica et Geometrica AVIO and calibration

21 The basic pinhole camera model 1 Finite cameras The projective camera 21 AVIO tristan.moreau@univ-rennes1.fr and calibration

22 The basic pinhole camera model 2 Finite cameras The projective camera Central projection of points space (X, Y, Z) T onto image plane (x, y) T. 22 AVIO tristan.moreau@univ-rennes1.fr and calibration

23 The basic pinhole camera model 3 Finite cameras The projective camera Central projection mapping from world to image coordinates : (X, Y, Z) T is mapped (fx /Z, fy /Z) T. 23 AVIO tristan.moreau@univ-rennes1.fr and calibration

24 The basic pinhole camera model 4 Central projection using homogeneous coordinates X fx f fy = 0 f 0 0 Y Z Z x = PX x : image point (3-vector). X : world point (4-vector). P : camera projection matrix (3x4).

25 The basic pinhole camera model 5 Principal point offset X fx + Zp x f 0 p x 0 fy + Zp y = 0 f p y 0 Y Z Z f 0 p x K = 0 f p y and x = K ( Id 0 ) X cam (camera coordinate) K : camera calibration matrix.

26 The basic pinhole camera model 6 Camera rotation and translation (inhomogeneous) X : 3-vector in the world coordinate frame. X cam : same point in camera coordinate frame. C : represents the coordinates of the camera center in the world coordinate frame. R rotation matrix (3x3) representing the orientation of the camera coordinate frame.

27 The basic pinhole camera model 7 Camera rotation and translation X cam = R( X C) (inhomogeneous). ( ) X ( ) R R C X cam = Y R R 0 1 Z = C X x = KR ( Id C ) X. X in world coordinate.

28 CCD cameras α x 0 x 0 K = 0 α y y 0 (4 DOF) α x = fm x and α y = fm y : focal length in pixel dimensions. x 0 = (x 0, y 0 ) : principal point in pixel dimensions. x 0 = m x p x and y 0 = m y p y. P = KR ( Id C ) (10 DOF).

29 Finite projective camera Finite cameras The projective camera Skew parameter : s α x s x 0 K = 0 α y y 0 (5 DOF) P = KR ( Id C ) (11 DOF). A camera with this type of K is called finite projective camera. A finite projective camera has 11 DOF. 29 AVIO tristan.moreau@univ-rennes1.fr and calibration

30 Finite projective camera : summary Finite cameras The projective camera Finite projective camera x = PX. α x s p x ( ) P = 0 α y p y R R C P = KR ( Id C ) and KR invertible. (11 DOF = 5+3+3). 30 AVIO tristan.moreau@univ-rennes1.fr and calibration

31 Finite cameras The projective camera Finite projective camera : decomposition of P Finite projective camera P = KR ( Id C ). P = M ( Id C ) where M = KR. P = ( M p 4 ) where p4 last column of P. [K, R] = RQ(M). RQ matrix decomposition where R is upper-triangular and Q is a rotation matrix. C = M 1 p AVIO tristan.moreau@univ-rennes1.fr and calibration

32 Plan : Finite cameras The projective camera 3 Finite cameras The projective camera 32 AVIO tristan.moreau@univ-rennes1.fr and calibration

33 Camera anatomy Anatomy Camera center. Column vectors. Principal plane. Axis plane. Principal point. Principal ray.

34 Camera anatomy : camera centre Finite cameras The projective camera Camera centre P has a 1D null space. Let C a 4-vector such that PC = 0. Let show that C is camera center X(λ) = λa + (1 λ)c. Line containing C and any point A. Points on this line are projected : x = PX(λ). x = PX(λ) = λpa + (1 λ)pc = λpa. All points on the line are mapped to the same image point PA, which means that the line is a ray through the camera center. 34 AVIO tristan.moreau@univ-rennes1.fr and calibration

35 Finite cameras The projective camera Camera anatomy : column vectors of P Image of column vectors p 1, p 2, p 3, p 4 Column vectors are the image points, which project the axis directions (X,Y,Z) and the origin. 35 AVIO tristan.moreau@univ-rennes1.fr and calibration

36 Camera anatomy : principal plane Principal plane Plane trough the camera center and parallel to the image plane. PX = (x, y, 0) T. x P 1T X y = Y if P3T X = 0. 0 P 2T P 3T Z 1 P 3T is the vector representing the principal plane.

37 Camera anatomy : principal point Principal point Principal axe : line through C and perpendicular to principal plane. Principal point X 0 : intersection of principal axe with image plane. ˆP 3 = (p 31, p 32, p 33, 0) T : normal direction to principal plane. P = (M, p 4 ) and x 0 = P ˆP 3 = Mm 3. m 3T : third row of M.

38 Finite cameras The projective camera Decomposition of the camera matrix Finding the camera centre C = (X, Y, Z, T ) PC = 0. Numerically : SVD of P. Algebrically : X = det((p 2, p 3, p 4 )). Y = det((p 1, p 3, p 4 )). Z = det((p 1, p 2, p 4 )). T = det((p 1, p 2, p 3 )). 38 AVIO tristan.moreau@univ-rennes1.fr and calibration

39 Finite cameras The projective camera Decomposition of the camera matrix Finding the camera orientation and internal parameters P = KR ( Id C ) = M ( Id α x s x 0 C ) where M = KR. K = 0 α y y s is generally AVIO tristan.moreau@univ-rennes1.fr and calibration

40 Plan : Basic equations DLT algorithm Radial distortion with opencv 4 Basic equations DLT algorithm Radial distortion with opencv 40 AVIO tristan.moreau@univ-rennes1.fr and calibration

41 Basic equations DLT algorithm Radial distortion with opencv 41 AVIO and calibration

42 Resectioning Basic equations DLT algorithm Radial distortion with opencv Numerical methods for estimating the camera projection matrix P from corresponding world and image entities. Simplest entities are the correspondance between a 3D point X i and its image x i. P will be determined for sufficient many correpondances. 42 AVIO tristan.moreau@univ-rennes1.fr and calibration

43 Basic equations Find P (3x4) so that i{1,...n}, x i = PX i. Cross product : i{1,...n}, x i xpx i = 0. p 1T X i If the j-th row of P is denoted p jt then PX i = p 2T X i. p 3T X i y i p 3T X i w i p 2T X i Let x i = (x i, y i, w i ) then x i xx i = w i p 1T X i x i p 3T X i. x i p 2T X i y i p 1T X i 0 T w i X T i y i X T i p 1 w i X T i 0 T x i X T i p 2 = 0 since y i X T i x i X T i 0 T p 3 p jt X i = X T i p j. ( 0 T w i X T i y i X T i w i X T i 0 T x i X T i ) p 1 p 2 = 0. p 3

44 Basic equations Basic equations DLT algorithm Radial distortion with opencv ( 0 T w i X T i y i X T ) i p 1 w i X T i 0 T x i X T p 2 = 0. i p 3 A i p = 0 where A i is 2x12 matrix and p 12-vector. From a set of n point correspondances, we obtain a 2n x 12 matrix A by stacking equations. Solve linear equation Ap = AVIO tristan.moreau@univ-rennes1.fr and calibration

45 Solving for p Basic equations DLT algorithm Radial distortion with opencv Minimal solution P has 12 entries (11 DOF ignoring scale). Each points correspondance : 2 independant equations. Need 5,5 correspondences to solve P. In this case, the solution is exact (ie. the space points are projected exactly onto their measured images). 45 AVIO tristan.moreau@univ-rennes1.fr and calibration

46 Solving for p Basic equations DLT algorithm Radial distortion with opencv Over-determined solution Noisy data : n > 6. Minimizing an algebraic error Ap subject to normalization constraint. For example p = 1. One algorithm to soleve this : DLT (Direct Linear Transformation). 46 AVIO tristan.moreau@univ-rennes1.fr and calibration

47 Basic DLT algorithm Basic equations DLT algorithm Radial distortion with opencv 47 AVIO and calibration

48 Data normalization Need of normalization DLT algortihm is not invariant to similarity transformations of the image. Is there some coordinate systems better than others? Yes. Isotropic scaling Points are translated so that their centroid is at the origin. The points are scaled so that the average distance from the origin is 2 for 2D or 3 for 3D.

49 Normalized DLT algorithm Objective Given n 6 3D to 2D point correspondances, determine the projection matrix P such that x i = PX i. Algorithm Normalization of x i : compute similarity t (translation and scaling) that takes points x i to a new point x i such that the centroid of the points x i is the coordinate origin and their average distance from the origin is 2. Normalisation of X i : compute similarity T (translation and scaling) that takes points X i to a new point X i such that the centroid of the points X i is the coordinate origin and their average distance from the origin is 3. Basic DLT algorithm : P. Denormalization : P = T 1 Pt.

50 Limits of the Pinhole camera model Basic equations DLT algorithm Radial distortion with opencv Lens One ray in the aperture? Need of lens to get more light and focus. But lens introduces distorsions : radial distorsion. tangential distorsion. Need to correct these distortions AVIO tristan.moreau@univ-rennes1.fr and calibration

51 Radial distortion Basic equations DLT algorithm Radial distortion with opencv 51 AVIO and calibration

52 Radial distortion Basic equations DLT algorithm Radial distortion with opencv ) ( x ỹ : image coordinates of a point under ideal (non-distorded) pinhole projection. ) T ( ) ( x ỹ 1 = Id 0 Xcam where X cam is a 3D point in camera coordinates. The radial distorsion is modelled as ( xd y d ) ) ( x = L( r). ỹ r is the radial distance x 2 + ỹ 2 from center of distortion. L( r) : distortion factor. 52 AVIO tristan.moreau@univ-rennes1.fr and calibration

53 Radial distortion Basic equations DLT algorithm Radial distortion with opencv Correction of distortion x = x c + L(r)(x x c ). ỹ = y c + L(r)(y y c ), where x c and y c center of radial distortion. L(r) is defined for r 0. L(r) = 1 + k 1 r + K 2 r 2 + k 3 r (Taylor expansion). The coefficient k 1, k 2... are considered part of the interior calibration of the camera. 53 AVIO tristan.moreau@univ-rennes1.fr and calibration

54 Introduction to opencv Basic equations DLT algorithm Radial distortion with opencv AVIO and calibration

55 with opencv Basic equations DLT algorithm Radial distortion with opencv Demo AVIO and calibration

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

Augmented Reality II - Camera Calibration - Gudrun Klinker May 11, 2004 Augmented Reality II - Camera Calibration - Gudrun Klinker May, 24 Literature Richard Hartley and Andrew Zisserman, Multiple View Geometry in Computer Vision, Cambridge University Press, 2. (Section 5,

More information

Chapter 7: Computation of the Camera Matrix P

Chapter 7: Computation of the Camera Matrix P Chapter 7: Computation of the Camera Matrix P Arco Nederveen Eagle Vision March 18, 2008 Arco Nederveen (Eagle Vision) The Camera Matrix P March 18, 2008 1 / 25 1 Chapter 7: Computation of the camera Matrix

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

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

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

Computer Vision: Lecture 3

Computer Vision: Lecture 3 Computer Vision: Lecture 3 Carl Olsson 2019-01-29 Carl Olsson Computer Vision: Lecture 3 2019-01-29 1 / 28 Todays Lecture Camera Calibration The inner parameters - K. Projective vs. Euclidean Reconstruction.

More information

CS201 Computer Vision Camera Geometry

CS201 Computer Vision Camera Geometry CS201 Computer Vision Camera Geometry John Magee 25 November, 2014 Slides Courtesy of: Diane H. Theriault (deht@bu.edu) Question of the Day: How can we represent the relationships between cameras and the

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

Projective 2D Geometry

Projective 2D Geometry Projective D Geometry Multi View Geometry (Spring '08) Projective D Geometry Prof. Kyoung Mu Lee SoEECS, Seoul National University Homogeneous representation of lines and points Projective D Geometry Line

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

3D Computer Vision Camera Models

3D Computer Vision Camera Models 3D Comuter Vision Camera Models Nassir Navab based on a course given at UNC by Marc Pollefeys & the book Multile View Geometry by Hartley & Zisserman July 2, 202 chair for comuter aided medical rocedures

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

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

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

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

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

Index. 3D reconstruction, point algorithm, point algorithm, point algorithm, point algorithm, 253 Index 3D reconstruction, 123 5+1-point algorithm, 274 5-point algorithm, 260 7-point algorithm, 255 8-point algorithm, 253 affine point, 43 affine transformation, 55 affine transformation group, 55 affine

More information

Vision Review: Image Formation. Course web page:

Vision Review: Image Formation. Course web page: Vision Review: Image Formation Course web page: www.cis.udel.edu/~cer/arv September 10, 2002 Announcements Lecture on Thursday will be about Matlab; next Tuesday will be Image Processing The dates some

More information

Geometric camera models and calibration

Geometric camera models and calibration Geometric camera models and calibration http://graphics.cs.cmu.edu/courses/15-463 15-463, 15-663, 15-862 Computational Photography Fall 2018, Lecture 13 Course announcements Homework 3 is out. - Due October

More information

Coordinate Transformations, Tracking, Camera and Tool Calibration

Coordinate Transformations, Tracking, Camera and Tool Calibration Coordinate Transformations, Tracking, Camera and Tool Calibration Tassilo Klein, Hauke Heibel Computer Aided Medical Procedures (CAMP), Technische Universität München, Germany Motivation 3D Transformations

More information

Camera calibration. Robotic vision. Ville Kyrki

Camera calibration. Robotic vision. Ville Kyrki Camera calibration Robotic vision 19.1.2017 Where are we? Images, imaging Image enhancement Feature extraction and matching Image-based tracking Camera models and calibration Pose estimation Motion analysis

More information

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

Improving camera calibration

Improving camera calibration Applying a least squares method to control point measurement 27th May 2005 Master s Thesis in Computing Science, 20 credits Supervisor at CS-UmU: Niclas Börlin Examiner: Per Lindström UmeåUniversity Department

More information

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

Index. 3D reconstruction, point algorithm, point algorithm, point algorithm, point algorithm, 263 Index 3D reconstruction, 125 5+1-point algorithm, 284 5-point algorithm, 270 7-point algorithm, 265 8-point algorithm, 263 affine point, 45 affine transformation, 57 affine transformation group, 57 affine

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

Camera Projection Models We will introduce different camera projection models that relate the location of an image point to the coordinates of the

Camera Projection Models We will introduce different camera projection models that relate the location of an image point to the coordinates of the Camera Projection Models We will introduce different camera projection models that relate the location of an image point to the coordinates of the corresponding 3D points. The projection models include:

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

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

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

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

COMP 558 lecture 19 Nov. 17, 2010

COMP 558 lecture 19 Nov. 17, 2010 COMP 558 lecture 9 Nov. 7, 2 Camera calibration To estimate the geometry of 3D scenes, it helps to know the camera parameters, both external and internal. The problem of finding all these parameters is

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

Part 0. The Background: Projective Geometry, Transformations and Estimation

Part 0. The Background: Projective Geometry, Transformations and Estimation Part 0 The Background: Projective Geometry, Transformations and Estimation La reproduction interdite (The Forbidden Reproduction), 1937, René Magritte. Courtesy of Museum Boijmans van Beuningen, Rotterdam.

More information

Multiple View Geometry in Computer Vision

Multiple View Geometry in Computer Vision Multiple View Geometry in Computer Vision Prasanna Sahoo Department of Mathematics University of Louisville 1 More on Single View Geometry Lecture 11 2 In Chapter 5 we introduced projection matrix (which

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

Field of View (Zoom)

Field of View (Zoom) Image Projection Field of View (Zoom) Large Focal Length compresses depth 400 mm 200 mm 100 mm 50 mm 28 mm 17 mm 1995-2005 Michael Reichmann FOV depends of Focal Length f f Smaller FOV = larger Focal

More information

3D Computer Vision II. Reminder Projective Geometry, Transformations

3D Computer Vision II. Reminder Projective Geometry, Transformations 3D Computer Vision II Reminder Projective Geometry, Transformations Nassir Navab" based on a course given at UNC by Marc Pollefeys & the book Multiple View Geometry by Hartley & Zisserman" October 21,

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

METR Robotics Tutorial 2 Week 2: Homogeneous Coordinates

METR Robotics Tutorial 2 Week 2: Homogeneous Coordinates METR4202 -- Robotics Tutorial 2 Week 2: Homogeneous Coordinates The objective of this tutorial is to explore homogenous transformations. The MATLAB robotics toolbox developed by Peter Corke might be a

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

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

Lecture 3: Camera Calibration, DLT, SVD

Lecture 3: Camera Calibration, DLT, SVD Computer Vision Lecture 3 23--28 Lecture 3: Camera Calibration, DL, SVD he Inner Parameters In this section we will introduce the inner parameters of the cameras Recall from the camera equations λx = P

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

Computer Vision. 2. Projective Geometry in 3D. Lars Schmidt-Thieme

Computer Vision. 2. Projective Geometry in 3D. Lars Schmidt-Thieme Computer Vision 2. Projective Geometry in 3D Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL) Institute for Computer Science University of Hildesheim, Germany 1 / 26 Syllabus Mon.

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

CSE 252B: Computer Vision II

CSE 252B: Computer Vision II CSE 252B: Computer Vision II Lecturer: Serge Belongie Scribe : Martin Stiaszny and Dana Qu LECTURE 0 Camera Calibration 0.. Introduction Just like the mythical frictionless plane, in real life we will

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

Agenda. Rotations. Camera calibration. Homography. Ransac

Agenda. Rotations. Camera calibration. Homography. Ransac Agenda Rotations Camera calibration Homography Ransac Geometric Transformations y x Transformation Matrix # DoF Preserves Icon translation rigid (Euclidean) similarity affine projective h I t h R t h sr

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

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

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

Rectification and Distortion Correction

Rectification and Distortion Correction Rectification and Distortion Correction Hagen Spies March 12, 2003 Computer Vision Laboratory Department of Electrical Engineering Linköping University, Sweden Contents Distortion Correction Rectification

More information

Multiple View Geometry in Computer Vision

Multiple View Geometry in Computer Vision Multiple View Geometry in Computer Vision Prasanna Sahoo Department of Mathematics University of Louisville 1 Structure Computation Lecture 18 March 22, 2005 2 3D Reconstruction The goal of 3D reconstruction

More information

Linear Algebra Simplified

Linear Algebra Simplified Linear Algebra Simplified Readings http://szeliski.org/book/drafts/szeliskibook_20100903_draft.pdf -2.1.5 for camera geometry, -2.1.3, 2.1.4 for rotation representation Inner (dot) Product v w α 3 3 2

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

3D Photography. Marc Pollefeys, Torsten Sattler. Spring 2015

3D Photography. Marc Pollefeys, Torsten Sattler. Spring 2015 3D Photography Marc Pollefeys, Torsten Sattler Spring 2015 Schedule (tentative) Feb 16 Feb 23 Mar 2 Mar 9 Mar 16 Mar 23 Mar 30 Apr 6 Apr 13 Apr 20 Apr 27 May 4 May 11 May 18 Apr 6 Introduction Geometry,

More information

Robotics - Projective Geometry and Camera model. Matteo Pirotta

Robotics - Projective Geometry and Camera model. Matteo Pirotta Robotics - Projective Geometry and Camera model Matteo Pirotta pirotta@elet.polimi.it Dipartimento di Elettronica, Informazione e Bioingegneria Politecnico di Milano 14 March 2013 Inspired from Simone

More information

DD2429 Computational Photography :00-19:00

DD2429 Computational Photography :00-19:00 . Examination: DD2429 Computational Photography 202-0-8 4:00-9:00 Each problem gives max 5 points. In order to pass you need about 0-5 points. You are allowed to use the lecture notes and standard list

More information

Geometry of image formation

Geometry of image formation eometry of image formation Tomáš Svoboda, svoboda@cmp.felk.cvut.cz Czech Technical University in Prague, Center for Machine Perception http://cmp.felk.cvut.cz Last update: November 3, 2008 Talk Outline

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

Lecture 5.3 Camera calibration. Thomas Opsahl

Lecture 5.3 Camera calibration. Thomas Opsahl Lecture 5.3 Camera calibration Thomas Opsahl Introduction The image u u x X W v C z C World frame x C y C z C = 1 For finite projective cameras, the correspondence between points in the world and points

More information

Robot Vision: Camera calibration

Robot Vision: Camera calibration Robot Vision: Camera calibration Ass.Prof. Friedrich Fraundorfer SS 201 1 Outline Camera calibration Cameras with lenses Properties of real lenses (distortions, focal length, field-of-view) Calibration

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

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

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

Image Warping, Linear Algebra CIS581

Image Warping, Linear Algebra CIS581 Image Warping, Linear Algebra CIS581 From Plane to Plane Degree of freedom Translation: # correspondences? How many correspondences needed for translation? How many Degrees of Freedom? What is the transformation

More information

Recovering structure from a single view Pinhole perspective projection

Recovering structure from a single view Pinhole perspective projection EPIPOLAR GEOMETRY The slides are from several sources through James Hays (Brown); Silvio Savarese (U. of Michigan); Svetlana Lazebnik (U. Illinois); Bill Freeman and Antonio Torralba (MIT), including their

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

COMP30019 Graphics and Interaction Perspective Geometry

COMP30019 Graphics and Interaction Perspective Geometry COMP30019 Graphics and Interaction Perspective Geometry Department of Computing and Information Systems The Lecture outline Introduction to perspective geometry Perspective Geometry Virtual camera Centre

More information

Agenda. Rotations. Camera models. Camera calibration. Homographies

Agenda. Rotations. Camera models. Camera calibration. Homographies Agenda Rotations Camera models Camera calibration Homographies D Rotations R Y = Z r r r r r r r r r Y Z Think of as change of basis where ri = r(i,:) are orthonormal basis vectors r rotated coordinate

More information

Camera Models. Acknowledgements Used slides/content with permission from

Camera Models. Acknowledgements Used slides/content with permission from Camera Models Acknowledgements Used slides/content with ermission rom Marc Polleeys or the slides Hartley and isserman: book igures rom the web Matthew Turk: or the slides Single view geometry Camera model

More information

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

CS 664 Slides #9 Multi-Camera Geometry. Prof. Dan Huttenlocher Fall 2003 CS 664 Slides #9 Multi-Camera Geometry Prof. Dan Huttenlocher Fall 2003 Pinhole Camera Geometric model of camera projection Image plane I, which rays intersect Camera center C, through which all rays pass

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

Computer Vision I - Appearance-based Matching and Projective Geometry

Computer Vision I - Appearance-based Matching and Projective Geometry Computer Vision I - Appearance-based Matching and Projective Geometry Carsten Rother 05/11/2015 Computer Vision I: Image Formation Process Roadmap for next four lectures Computer Vision I: Image Formation

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

Multiple View Geometry in Computer Vision Second Edition

Multiple View Geometry in Computer Vision Second Edition Multiple View Geometry in Computer Vision Second Edition Richard Hartley Australian National University, Canberra, Australia Andrew Zisserman University of Oxford, UK CAMBRIDGE UNIVERSITY PRESS Contents

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

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

Instance-level recognition I. - Camera geometry and image alignment Reconnaissance d objets et vision artificielle 2011 Instance-level recognition I. - Camera geometry and image alignment Josef Sivic http://www.di.ens.fr/~josef INRIA, WILLOW, ENS/INRIA/CNRS UMR 8548 Laboratoire

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

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

Epipolar Geometry Prof. D. Stricker. With slides from A. Zisserman, S. Lazebnik, Seitz Epipolar Geometry Prof. D. Stricker With slides from A. Zisserman, S. Lazebnik, Seitz 1 Outline 1. Short introduction: points and lines 2. Two views geometry: Epipolar geometry Relation point/line in two

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

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

CHAPTER 3. Single-view Geometry. 1. Consequences of Projection 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.

More information

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

Lecture 7 Measurement Using a Single Camera. Lin ZHANG, PhD School of Software Engineering Tongji University Fall 2016 Lecture 7 Measurement Using a Single Camera Lin ZHANG, PhD School of Software Engineering Tongji University Fall 2016 If I have an image containing a coin, can you tell me the diameter of that coin? Contents

More information

Structure from motion

Structure from motion Structure from motion Structure from motion Given a set of corresponding points in two or more images, compute the camera parameters and the 3D point coordinates?? R 1,t 1 R 2,t 2 R 3,t 3 Camera 1 Camera

More information

Viewing. Reading: Angel Ch.5

Viewing. Reading: Angel Ch.5 Viewing Reading: Angel Ch.5 What is Viewing? Viewing transform projects the 3D model to a 2D image plane 3D Objects (world frame) Model-view (camera frame) View transform (projection frame) 2D image View

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

Perspective Projection Describes Image Formation Berthold K.P. Horn

Perspective Projection Describes Image Formation Berthold K.P. Horn Perspective Projection Describes Image Formation Berthold K.P. Horn Wheel Alignment: Camber, Caster, Toe-In, SAI, Camber: angle between axle and horizontal plane. Toe: angle between projection of axle

More information

CS535 Fall Department of Computer Science Purdue University

CS535 Fall Department of Computer Science Purdue University Camera Models CS535 Fall 21 Daniel G Aliaga Daniel G. Aliaga Department of Computer Science Purdue University Biology 11 Some animals are capable of panoramic vision e.g., certain insects, crustaceans

More information

3D Viewing. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

3D Viewing. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller 3D Viewing CMPT 361 Introduction to Computer Graphics Torsten Möller Reading Chapter 4 of Angel Chapter 6 of Foley, van Dam, 2 Objectives What kind of camera we use? (pinhole) What projections make sense

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

Computer Vision Projective Geometry and Calibration

Computer Vision Projective Geometry and Calibration 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

Pattern Recognition and Machine Vision Camera Models and Geometry

Pattern Recognition and Machine Vision Camera Models and Geometry Pattern Recognition and Machine Vision Camera Models and Geometry Dr. Simon J.D. Prince, Prof. Bernard F. Buxton Computer Science University College London Gower Street, London, WCE 6BT Preliminary Geometry.

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

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

Multiple View Geometry in Computer Vision

Multiple View Geometry in Computer Vision Multiple View Geometry in Computer Vision Prasanna Sahoo Department of Mathematics University of Louisville 1 Projective 3D Geometry (Back to Chapter 2) Lecture 6 2 Singular Value Decomposition Given a

More information

3D Geometry and Camera Calibration

3D Geometry and Camera Calibration 3D Geometry and Camera Calibration 3D Coordinate Systems Right-handed vs. left-handed x x y z z y 2D Coordinate Systems 3D Geometry Basics y axis up vs. y axis down Origin at center vs. corner Will often

More information

3D Viewing. Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

3D Viewing. Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller 3D Viewing Introduction to Computer Graphics Torsten Möller Machiraju/Zhang/Möller Reading Chapter 4 of Angel Chapter 13 of Hughes, van Dam, Chapter 7 of Shirley+Marschner Machiraju/Zhang/Möller 2 Objectives

More information

2D Image Transforms Computer Vision (Kris Kitani) Carnegie Mellon University

2D Image Transforms Computer Vision (Kris Kitani) Carnegie Mellon University 2D Image Transforms 16-385 Computer Vision (Kris Kitani) Carnegie Mellon University Extract features from an image what do we do next? Feature matching (object recognition, 3D reconstruction, augmented

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

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

Midterm Exam Solutions

Midterm Exam Solutions Midterm Exam Solutions Computer Vision (J. Košecká) October 27, 2009 HONOR SYSTEM: This examination is strictly individual. You are not allowed to talk, discuss, exchange solutions, etc., with other fellow

More information