COS429: COMPUTER VISON CAMERAS AND PROJECTIONS (2 lectures)

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

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

Image Formation I Chapter 2 (R. Szelisky)

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

How to achieve this goal? (1) Cameras

Vision Review: Image Formation. Course web page:

CS6670: Computer Vision

Camera Model and Calibration

3D Geometry and Camera Calibration

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

Visual Recognition: Image Formation

Camera Model and Calibration. Lecture-12

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

calibrated coordinates Linear transformation pixel coordinates

Projective Geometry and Camera Models

Projective Geometry and Camera Models

Computer Vision. Geometric Camera Calibration. Samer M Abdallah, PhD

3-D D Euclidean Space - Vectors

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

Projective geometry for Computer Vision

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

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

3D Computer Vision. Class Roadmap. General Points. Picturing the World. Nowadays: Computer Vision. International Research in Vision Started Early!

Computer Vision CS 776 Fall 2018

Camera Calibration. COS 429 Princeton University

Camera models and calibration

Computer Vision cmput 428/615

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

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

Projective geometry, camera models and calibration

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

Computer Vision Project-1

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

Two-View Geometry (Course 23, Lecture D)

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

Camera calibration. Robotic vision. Ville Kyrki

CS4670: Computer Vision

Lecture 8: Camera Models

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

Agenda. Perspective projection. Rotations. Camera models

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

Structure from motion

Structure from motion

Epipolar geometry. x x

Camera Geometry II. COS 429 Princeton University

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

Agenda. Rotations. Camera models. Camera calibration. Homographies

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

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

Introduction to Computer Vision

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Discriminant Functions for the Normal Density

1 Projective Geometry

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

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

CS231A Midterm Review. Friday 5/6/2016

Metric Rectification for Perspective Images of Planes

Outline. ETN-FPI Training School on Plenoptic Sensing

Geometric camera models and calibration

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

3D Geometry and Camera Calibration

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

Identifying Car Model from Photographs

CS231A Course Notes 4: Stereo Systems and Structure from Motion

Robotics - Projective Geometry and Camera model. Matteo Pirotta

Multiview Stereo COSC450. Lecture 8

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

Camera model and multiple view geometry

UNIVERSITY OF TORONTO Faculty of Applied Science and Engineering. ROB501H1 F: Computer Vision for Robotics. Midterm Examination.

Cameras and Stereo CSE 455. Linda Shapiro

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

CS201 Computer Vision Camera Geometry

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

Mysteries of Parameterizing Camera Motion - Part 1

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

CSCI 5980: Assignment #3 Homography

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

Geometry of image formation

DD2429 Computational Photography :00-19:00

Calibrating a Structured Light System Dr Alan M. McIvor Robert J. Valkenburg Machine Vision Team, Industrial Research Limited P.O. Box 2225, Auckland

CSE 252B: Computer Vision II

CSE 252B: Computer Vision II

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

Assignment 2 : Projection and Homography

521466S Machine Vision Exercise #1 Camera models

Structure from Motion

CS231M Mobile Computer Vision Structure from motion

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

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

Computer Vision I - Appearance-based Matching and Projective Geometry

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

Euclidean Reconstruction Independent on Camera Intrinsic Parameters

CS223b Midterm Exam, Computer Vision. Monday February 25th, Winter 2008, Prof. Jana Kosecka

Camera Self-calibration Based on the Vanishing Points*

BIL Computer Vision Apr 16, 2014

Robotics - Projective Geometry and Camera model. Marcello Restelli

COMP 558 lecture 19 Nov. 17, 2010

Structure from Motion. Prof. Marco Marcon

GEOMETRIC TRANSFORMATIONS AND VIEWING

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

Transcription:

COS429: COMPUTER VISON CMERS ND PROJECTIONS (2 lectures) Pinhole cameras Camera with lenses Sensing nalytical Euclidean geometry The intrinsic parameters of a camera The extrinsic parameters of a camera Camera calibration Least-squares techniques Reading: Chapters 1-3 Many of the slides in this lecture are courtesy to Prof. J. Ponce

Some history Milestones: Leonardo da Vinci (1452-1519): first record of camera obscura

Some history Milestones: Leonardo da Vinci (1452-1519): first record of camera obscura Johann Zahn (1685): first portable camera

Some history Milestones: Leonardo da Vinci (1452-1519): first record of camera obscura Johann Zahn (1685): first portable camera Joseph Nicephore Niepce (1822): first photo - birth of photography Photography (Niepce, La Table Servie, 1822)

Some history Milestones: Leonardo da Vinci (1452-1519): first record of camera obscura Johann Zahn (1685): first portable camera Joseph Nicephore Niepce (1822): first photo - birth of photography Daguerréotypes (1839) Photographic Film (Eastman, 1889) Cinema (Lumière rothers, 1895) Color Photography (Lumière rothers, 1908) Television (aird, Farnsworth, Zworykin, 1920s) Photography (Niepce, La Table Servie, 1822)

Let s also not forget Motzu (468-376 C) ristotle (384-322 C) Ibn al-haitham (965-1040)

Pinhole perspective projection

Distant objects are smaller

Parallel lines meet Common to draw image plane in front of the focal point. Moving the image plane merely scales the image.

Vanishing points Each set of parallel lines meets at a different point The vanishing point for this direction Sets of parallel lines on the same plane lead to collinear vanishing points. The line is called the horizon for that plane

Properties of Projection Points project to points Lines project to lines Planes project to the whole image or a half image ngles are not preserved Degenerate cases Line through focal point projects to a point. Plane through focal point projects to line Plane perpendicular to image plane projects to part of the image (with horizon).

Pinhole Perspective Equation x' y' f f x ' z y ' z NOTE: z is always negative..

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

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

Pros and Cons of These Models Weak perspective much simpler math. ccurate when object is small and distant. Most useful for recognition. Pinhole perspective much more accurate for scenes. Used in structure from motion. When accuracy really matters, must model real cameras.

Diffraction effects in pinhole cameras. Shrinking pinhole size Use a lens!

Quantitative Measurements and Calibration Euclidean Geometry

Euclidean Coordinate Systems + + z y x z y x OP OP z OP y OP x P k j i k j i...

Planes + + 1 and where 0. 0 0. z y x d c b a d cz by ax P P Π Π P n

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

Coordinate Changes: Pure Rotations R k k k j k i j k j j j i i k i j i i......... [ ] k j i

Coordinate Changes: Pure Rotations R k k k j k i j k j j j i i k i j i i......... T T T k j i

Coordinate Changes: Rotations about the z xis R cosθ sinθ 0 sinθ cosθ 0 0 0 1

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

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

Coordinate Changes: Rigid Transformations P R P + O

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

Rigid Transformations as Mappings

Rigid Transformations as Mappings: Rotation about the k xis

Pinhole Perspective Equation x' y' f f ' ' x z y z

The Intrinsic Parameters of a Camera Units: k,l : pixel/m f :m α,β : pixel Normalized Image Coordinates Physical Image Coordinates

The Intrinsic Parameters of a Camera Calibration Matrix The Perspective Projection Equation

The Extrinsic Parameters of a Camera

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

Theorem (Faugeras, 1993)

Quantitative Measurements and the Calibration Problem

Calibration Procedure Calibration target : 2 planes at right angle with checkerboard (Tsai grid) We know positions of corners of grid with respect to a coordinate system of the target Obtain from images the corners Using the equations (relating pixel coordinates to world coordinates) we obtain the camera parameters (the internal parameters and the external (pose) as a side effect)

Estimation procedure First estimate M from corresponding image points and scene points (solving homogeneous equation) Second decompose M into internal and external parameters Use estimated parameters as starting point to solve calibration parameters non-linearly.

Homogeneous Linear Systems Square system: x 0 unique solution: 0 unless Det()0 x 0 Rectangular system?? 0 is always a solution 2 Minimize x 2 under the constraint x 1

How do you solve overconstrained homogeneous linear equations?? E(x)-E(e 1 ) x T (U T U)x-e 1T (U T U)e 1 λ 1 μ 12 + +λ q μ q2 -λ 1 > λ 1 (μ 12 + +μ q2-1)0 The solution is e. 1

Example: Line Fitting Problem: minimize with respect to (a,b,d). Minimize E with respect to d: n Minimize E with respect to a,b: where Done!!

Note: Matrix of second moments of inertia xis of least inertia

Linear Camera Calibration

Once M is known, you still got to recover the intrinsic and extrinsic parameters!!! This is a decomposition problem, not an estimation problem. ρ Intrinsic parameters Extrinsic parameters

Degenerate Point Configurations re there other solutions besides M?? Coplanar points: (λ,μ,ν )(Π,0,0) or (0,Π,0) or (0,0,Π ) Points lying on the intersection curve of two quadric surfaces straight line + twisted cubic Does not happen for 6 or more random points!

nalytical Photogrammetry Non-Linear Least-Squares Methods Newton Gauss-Newton Levenberg-Marquardt Iterative, quadratically convergent in favorable situations

Mobile Robot Localization (Devy et al., 1997)