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

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

Camera models and calibration

Vision Review: Image Formation. Course web page:

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

METR Robotics Tutorial 2 Week 2: Homogeneous Coordinates

Agenda. Rotations. Camera models. Camera calibration. Homographies

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

Visual Recognition: Image Formation

Projective 2D Geometry

Geometric camera models and calibration

Agenda. Rotations. Camera calibration. Homography. Ransac

CSE 252B: Computer Vision II

Pin Hole Cameras & Warp Functions

calibrated coordinates Linear transformation pixel coordinates

Computer Vision Projective Geometry and Calibration. Pinhole cameras

3-D D Euclidean Space - Vectors

Auto-calibration. Computer Vision II CSE 252B

Camera model and calibration

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

Camera Model and Calibration

Projective geometry for Computer Vision

Pin Hole Cameras & Warp Functions

Robotics - Projective Geometry and Camera model. Matteo Pirotta

Projective Geometry and Camera Models

Projective Geometry and Camera Models

Structure from motion

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

Introduction to Homogeneous coordinates

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

Camera model and multiple view geometry

CS6670: Computer Vision

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

CS-9645 Introduction to Computer Vision Techniques Winter 2019

CS4670: Computer Vision

Computer Vision Projective Geometry and Calibration. Pinhole cameras

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

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

Camera Model and Calibration. Lecture-12

Robotics - Projective Geometry and Camera model. Marcello Restelli

Multiple View Geometry in Computer Vision

Outline. ETN-FPI Training School on Plenoptic Sensing

Unit 3 Multiple View Geometry

Lecture 8: Camera Models

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

3D Geometry and Camera Calibration

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

Computer Vision cmput 428/615

Structure from motion

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

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

521466S Machine Vision Exercise #1 Camera models

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

METRIC PLANE RECTIFICATION USING SYMMETRIC VANISHING POINTS

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

Projective geometry, camera models and calibration

ECE Digital Image Processing and Introduction to Computer Vision. Outline

3D Computer Vision II. Reminder Projective Geometry, Transformations

Lecture 9: Epipolar Geometry

Invariance of l and the Conic Dual to Circular Points C

Humanoid Robotics. Projective Geometry, Homogeneous Coordinates. (brief introduction) Maren Bennewitz

CS201 Computer Vision Camera Geometry

Robot Vision: Projective Geometry

Computer Vision I - Appearance-based Matching and Projective Geometry

Image Formation I Chapter 2 (R. Szelisky)

Assignment 2 : Projection and Homography

Metric Rectification for Perspective Images of Planes

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

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

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

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

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

Stereo Vision. MAN-522 Computer Vision

3D Modeling using multiple images Exam January 2008

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

Rectification and Distortion Correction

Computer Vision I - Appearance-based Matching and Projective Geometry

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

Computer Vision CS 776 Fall 2018

Specifying Complex Scenes

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

Computer Vision Projective Geometry and Calibration

Camera calibration. Robotic vision. Ville Kyrki

Epipolar Geometry and the Essential Matrix

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

Lecture 3: Camera Calibration, DLT, SVD

5LSH0 Advanced Topics Video & Analysis

Agenda. Perspective projection. Rotations. Camera models

Pattern Recognition and Machine Vision Camera Models and Geometry

Flexible Calibration of a Portable Structured Light System through Surface Plane

BIL Computer Vision Apr 16, 2014

2D Transforms. Lecture 4 CISC440/640 Spring Department of Computer and Information Science

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

Vector Algebra Transformations. Lecture 4

Computer Vision I - Algorithms and Applications: Multi-View 3D reconstruction

Announcements. The equation of projection. Image Formation and Cameras

Camera Calibration and 3D Reconstruction from Single Images Using Parallelepipeds

Discriminant Functions for the Normal Density

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

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

Translations. Geometric Image Transformations. Two-Dimensional Geometric Transforms. Groups and Composition

Transcription:

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 useful in projective geometry for Basic representation of geometric entities: points, lines, planes, etc. Representation of point and line at infinity Transformations Others 2 Cross Product Binary operation on two vectors Perpendicular to both of the two vectors The magnitude of the product equals the area of a parallelogram with the vectors for sides, -, / [, - ], /, -, / 7 8 9 6-5 - 4-6 / 5 / 4 / 0 4-5 - 4-0 6-5 - 6-0 6 / 5 / 4 / 5-4 - 5 / 4 / 7 6-4 - 6 / 4 / 8+ 6-5 - 6 / 5 / 9 5-4 / 7 + 6 / 4-8 + 6-5 / 9 5 / 4-7 6-4 / 8 6 / 5-9 Representation of Line and Point in 2D Homogeneous representation of line Homogeneous representation of point Point in 2D: (",, ) Special cases Ideal point (or point at infinity) Point that two parallel lines meet Does not corresponds to any finite point in R /. Line at infinity: line that Ideal points meet Ideal point is on line at infinity. 6" + 5 + 4 0 (6, 5, 4) < >?@A (",, 0) B C (0,0,) < >?@A B C 0 (", ): direction of the lines 3 4

Relationship between Lines and Points Lines vs. points A point < (",, ) lies on the line B (6, 5, 4) 2D Transformation Schematic view of 2D planar transformation < B B < 0 < F B B F < 0 Intersection of two lines B (6, 5, 4) and B (6, 5, 4 ) < B < B 0 < B B Line through two points < (",, ) and < (",, ) B < B < 0 B < < Duality of point and line: Points and lines can be swapped. 5 6 Hierarchy of 2D Transformation 2D Transformation Translation: < H < + I < H J I K < Euclidean (rigid): < H L< + I < H L I K < Similarity: < H ML< + I < H ML I K < Affine: < H N< < H 6 -- 6 -/ 6 -O 6 /- 6 // 6 /O 0 0 < Projective: < H P< < H 6 -- 6 -/ 6 -O 6 /- 6 // 6 /O < 6 O- 6 O/ 6 OO 7 8

Hierarchy of 2D Transformation (Class ) Isometry (distance-preserving map between metric spaces) " H cos T sin T W X sin T cos T W Y 0 0 Preserve Euclidean distances and angles 3 degrees of freedom: translation and rotation < H P Z < < H L I K " cos T sin T < L sin T cos T Hierarchy of Transformations (Class 2) Similarity transformation Isometry composed with an isotropic scaling " H 4 degrees of freedom: W X, W Y, T, M Preserve the shape (equi-form) invariants: angle, parallel line, ratio of length M cos T M sin T W X M sin T M cos T W Y 0 0 < H P [ < < H ML I K < " 9 0 Hierarchy of Transformations (Class 3) Affine transform Non-singular linear transformation followed by a translation " 6 -- 6 -/ W X 6 /- 6 // W Y 0 0 Include non-isotropic scaling 6 degrees of freedom Invariants: parallel lines, ratio of length of parallel line segments, ratio of areas < H P \ < < H N I K < N ]^_ ]_` _^_ ^ a - 0 L T L b ^L(b) 0 a / " Hierarchy of Transformations (Class 4) Projective transformation < H P f < < H N I g h < General non-singular linear transformation of homogeneous coordinates An invertible mapping such that three points lie on the same line if and only if the images of the points do. 8 degrees of freedom Invariants Cross ratio of four collinear points: < - < / < O < c /( < - < e < / < c ) Concurrency: multiple lines meeting at a single point Collinearity Parallel lines are no more parallel in projective transformation. Ideal point (point at infinity) -> finite point ex) vanishing point 2

3D Transformations 3D to 2D Projections Transformation Preservation Matrix Orthographic projection Translation Euclidean Volume J I K L I K < /> 0 0 0 0 0 0 0 0 0 Similarity Angles Absolute conic ML I K Perspective projection Affine Projective Parallelism Volume ratio Plain at infinity Straight lines Intersection Tangency of surfaces N I K N g I h < /> 0 0 0 0 0 0 0 0 0 3 4 Pinhole Camera Basic Pinhole Model What is pinhole camera? An abstract camera model: box with a small hole and translucent plate One ray would pass through each point in the plane. Inverted image is observed in. Virtual image: plane in front of pinhole with same distance to the image plane Y C camera center f X x y x p principal point X Z principal axis Mapping from Euclidean 3-space R O to Euclidean 2-space R i ",, j l" j, l j 5 6

Projection with Homogeneous Coordinates Central projection using homogenous coordinates Principal point offset Image Plane vs. Sensor Plane C l /> j /> l Sensor plane 0,0 " />, /> W X, W Y l, l Image plane principal point Point in Point in camera coordinate system l l l 0 0 0 0 l 0 0 0 0 0 < /> m m diag l, l, [J K] l + W X l + W Y l 0 W X 0 0 l W Y 0 0 0 0 < /> s J K <t O> s l 0 W X 0 l W Y 0 0 Camera calibration matrix 7 8 Camera Rotation and Translation Other Projective Cameras 9 Camera rotation and translation Camera coordinate <t O> L ( u ) u World coordinate <t O> <t O> L Lu K < /> s J K <t O> sl J u 9 DOF: 3 for s, 3 for L, 3 for u Internal (intrinsic) camera parameters: s External (extrinsic) camera parameters: L and u m sl J u s[l I] camera matrix In non-homogeneous coordinate system where I Lu 20 CCD cameras Having non-square pixels 0 DOF Finite projective camera Add skew parameter: DOF s is homogeneous. sl is non-singular. sl can be decomposed by QR factorization General projective camera Arbitrary rank-3 3x4 matrix No non-singularity restriction on the left hand 3x3 submatrix DOF s s ) X 0 " w 0 ) Y w 0 0 ) X M " w 0 ) Y w 0 0 m sl u m ) X lx X ) Y lx Y x X, x Y : # of pixels in unit distance 6 -- 6 -/ 6 -O 6 -c 6 /- 6 // 6 /O 6 /c 6 O- 6 O/ 6 OO

Camera Calibration Finding extrinsic and intrinsic parameters of a camera Camera Calibration Finding intrinsic and extrinsic camera parameters Intrinsic parameters: s Extrinsic parameters: L and u 3D to 2D correspondences m sl J u < /> m < /> m K < /> ",, y < /> m K y K " y " K 3x2 rank-2 matrix z - z / z O DOF K 2 22 Solution Camera Calibration Nz K N N - N / N We need at least 5.5 correspondences to solve the linear system. Note that m is a homogeneous matrix. When N is an x2 matrix, z is -dimensional null-space. When N is larger, it is an over-determined problem. z argmin z Nz subject to z z is the unit singular vector of N corresponding to the least singular value. Nz ]_ z _ z Ä _ z min Nz min Ä subject to Ä solution: Ä 0 0 z _Ä Camera Calibration After finding camera matrix We got 6 -- 6 -/ 6 -O 6 -c m 6 /- 6 // 6 /O 6 /c 6 O- 6 O/ 6 OO 6 Oc Recall m sl J u [sl slu] l M W X s 0 l W Y L: orthonormal matrix 0 0 Camera parameters can be obtained by QR (RQ) factorization and solving a simple linear system 23 24

Lens Distortions Linear camera model Image point and optical center are collinear. Not realistic in the real (non-pinhole) lenses Radial distortion Non-linear error as the lens is cheaper More significant as the focal length of the lens decrease Lens Distortions Radial distortion Note: Lens distortion takes place during the initial projection of the world onto the Ideal projection "Ü />, Ü />, < /> s J K <t O> " /> É(Ñ ) "Ü /> /> Ü /> Actual projection Distortion factor Correction: using (low-order) polynomials "Å " Ç + É Ñ " " Ç Å Ç + É Ñ Ç É Ñ + Ö - Ñ + Ö / Ñ / + Ö O Ñ O + Ñ " " / Ç + / Ç ", : measured " Ç, Ç : distortion center "Å, Å : corrected 25 barrel distortion pincushion distortion 26 27