Camera Model and Calibration. Lecture-12

Similar documents
Camera Model and Calibration

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

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

3-D D Euclidean Space - Vectors

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

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

3D Geometry and Camera Calibration

Introduction to Homogeneous coordinates

CS201 Computer Vision Camera Geometry

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

1 Projective Geometry

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

Computer Vision cmput 428/615

Agenda. Perspective projection. Rotations. Camera models

CV: 3D sensing and calibration

Image Rectification (Stereo) (New book: 7.2.1, old book: 11.1)

Image Formation I Chapter 2 (R. Szelisky)

Projector Calibration for Pattern Projection Systems

Agenda. Rotations. Camera models. Camera calibration. Homographies

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

Reminder: Lecture 20: The Eight-Point Algorithm. Essential/Fundamental Matrix. E/F Matrix Summary. Computing F. Computing F from Point Matches

Module 6: Pinhole camera model Lecture 32: Coordinate system conversion, Changing the image/world coordinate system

Introduction to Computer Vision

Rectification and Distortion Correction

Agenda. Rotations. Camera calibration. Homography. Ransac

The real voyage of discovery consists not in seeking new landscapes, but in having new eyes.

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

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

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

CSE 252B: Computer Vision II

COMP30019 Graphics and Interaction Three-dimensional transformation geometry and perspective

CSE452 Computer Graphics

Midterm Exam Solutions

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

Vision Review: Image Formation. Course web page:

calibrated coordinates Linear transformation pixel coordinates

Camera Calibration. COS 429 Princeton University

Computer Vision Projective Geometry and Calibration. Pinhole cameras

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

CS6670: Computer Vision

Multiple View Geometry

Perspective Projection Describes Image Formation Berthold K.P. Horn

Visual Recognition: Image Formation

Stereo Image Rectification for Simple Panoramic Image Generation

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

Lecture 14: Basic Multi-View Geometry

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

521466S Machine Vision Exercise #1 Camera models

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

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

COS429: COMPUTER VISON CAMERAS AND PROJECTIONS (2 lectures)

To Do. Outline. Translation. Homogeneous Coordinates. Foundations of Computer Graphics. Representation of Points (4-Vectors) Start doing HW 1

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

55:148 Digital Image Processing Chapter 11 3D Vision, Geometry

Cameras and Stereo CSE 455. Linda Shapiro

CS6670: Computer Vision

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Projective Geometry and Camera Models

Short on camera geometry and camera calibration

Autonomous Navigation for Flying Robots

Two-view geometry Computer Vision Spring 2018, Lecture 10

Epipolar geometry. x x

Motion. 1 Introduction. 2 Optical Flow. Sohaib A Khan. 2.1 Brightness Constancy Equation

Computer Graphics Hands-on

Geometric camera models and calibration

Announcements. Equation of Perspective Projection. Image Formation and Cameras

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

Camera system: pinhole model, calibration and reconstruction

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

N-Views (1) Homographies and Projection

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

Geometric transformations in 3D and coordinate frames. Computer Graphics CSE 167 Lecture 3

EECS 4330/7330 Introduction to Mechatronics and Robotic Vision, Fall Lab 1. Camera Calibration

Lecture No Perspective Transformation (course: Computer Vision)

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

Computer Graphics with OpenGL ES (J. Han) Chapter IV Spaces and Transforms

Structure from Motion. Prof. Marco Marcon

Today. Today. Introduction. Matrices. Matrices. Computergrafik. Transformations & matrices Introduction Matrices

Perspective projection and Transformations

CSE328 Fundamentals of Computer Graphics

Computer Graphics: Geometric Transformations

Camera calibration. Robotic vision. Ville Kyrki

CS4670: Computer Vision

Rectification. Dr. Gerhard Roth

Projective Geometry and Camera Models

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

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

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

Today. Stereo (two view) reconstruction. Multiview geometry. Today. Multiview geometry. Computational Photography

Pin Hole Cameras & Warp Functions

Stereo Vision. MAN-522 Computer Vision

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Fundamental Matrix & Structure from Motion

Early Fundamentals of Coordinate Changes and Rotation Matrices for 3D Computer Vision

CAP 5415 Computer Vision. Fall 2011

Flexible Calibration of a Portable Structured Light System through Surface Plane

Announcements. The equation of projection. Image Formation and Cameras

Structure from motion

Field of View (Zoom)

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

Transcription:

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 pixels

Application: Object Transfer Source Image Target Image

More Results Source Image Target Image

More Results

Application in Film Industry

Pose Estimation Given 3D model of object, and its image (2D projection) determine the location and orientation (translation & rotation) of object such that when projected on the image plane it will match with the image. http://www.youtube.com/watch?v=znhrh00umvk

Transformations

3-D Translation

Scaling

Rotation Y R X X Y R Y X Z

Rotation matrices are orthonormal matrices

Euler Angles Rotation around an arbitrary axis: if angles are small cos 1 sin

Perspective Projection (origin at the lens center) Image Plane f Lens (X,Y,Z) World point image y 0 Z y Y y f Z fy Z x fx Z

Perspective Projection (origin at image center) Image Plane 0 y image f Lens (X,Y,Z) World point Z

Perspective Image coordinates World coordinates

Perspective

Camera Model Camera is at the origin of the world coordinates first Then translated by some amount(g), Then rotated around Z axis in counter clockwise direction, Then rotated again around X in counter clockwise direction, and Then translated by C. Since we are moving the camera instead of object we need to use inverse transformations

Camera Model

Camera Model

Camera Model Ch 3 is not needed, we have 12 unknowns.

Camera Model How to determine camera matrix? Select some known 3D points (X,Y,Z), and find their corresponding image points (x,y). Solve for camera matrix elements using least squares fit.

Camera Model Ch 3 is not needed, we have 12 unknowns.

Camera Model

Camera Model One point n points 2n equations, 12 unknowns

Camera Model This is a homogenous system, no unique solution Select

Camera Model Pseudo inverse Least squares fit

Finding Camera Location Take one 3D point X 1 and find its image homogenous coordinates. Set the third component of homogenous coordinates to zero, find corresponding World coordinates of that point, X 11 Connect X 1 and X 11 to get a line in 3D. Repeat this for another 3D point X 2 and find another line Two lines will intersect at the location of camera.

Camera Location

Camera Orientation Only time the image will be formed at infinity if Ch 4 =0. This is equation of a plane, going through the lens, which is parallel to image plane.

Application Camera location: intersection of California and Mason streets, at an elevation of 435 feet above sea level. The camera was oriented at an angle of 8 0 above the horizon. fs x =495, fs y =560.

Application Camera location: at an elevation of 1200 feet above sea level. The camera was oriented at an angle of 4 0 above the horizon. fs x =876, fs y =999. Recovering the camera parameters from a transformation matrix TM Strat - Readings in Computer Vision, 1987

Camera Parameters Extrinsic parameters Parameters that define the location and orientation of the camera reference frame with respect to a known world reference frame 3-D translation vector A 3 by 3 rotation matrix Intrinsic parameters Parameters necessary to link the pixel coordinates of an image point with the corresponding coordinates in the camera reference frame Perspective projection (focal length) Transformation between camera frame coordinates and pixel coordinates

Camera Model Revisited: Rotation & Translation

Perspective Projection: Revisited Lens Image Plane y (X,Y,Z) World Y point f Z Origin at the lens Image plane in front of the lens

Camera Model Revisited: Perspective Origin at the lens Image plane in front of the lens

Camera Model Revisited: Image and Camera coordinates image coordinates camera coordinates image center (in pixels) effective size of pixels (in millimeters) in the horizontal and vertical directions.

Camera Model Revisited

Camera Model Revisited

Camera Model Revisited f x effective focal length expressed in effective horizontal pixel size

Computing Camera Parameters Using known 3-D points and corresponding image points, estimate camera matrix employing pseudo inverse method of section 1.6 (Fundamental of Computer Vision). Compute camera parameters by relating camera matrix with estimated camera matrix. Extrinsic Translation Rotation Intrinsic Horizontal f x and f y vertical focal lengths Translation o x and o y

Comparison

Computing Camera Parameters estimated Since M is defined up to a scale factor Because rotation matrix is orthonormal Divide each entry of by.

Computing Camera Parameters

Computing Camera Parameters: estimating third row of rotation matrix and translation in depth Since we can determine T z >0 (origin of world reference is in front) Or T z <0(origin of world reference is in back) we can determine sign.

Computing Camera Parameters Let

Computing Camera Parameters: origin of image Therefore:

Computing Camera Parameters: vertical and horizontal focal lengths Therefore:

Computing Camera Parameters: remaining rotation and translation parameters

Reading Material Chapter 1, Fundamental Of Computer Vision, Mubarak Shah Chapter 6, Introductory Techniques, E. Trucco and A. Verri, Prentice Hall, 1998. Recovering the camera parameters from a transformation matrix, TM Strat - Readings in Computer Vision, 1987