Jorge Salvador Marques, geometric camera model

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

CS6670: Computer Vision

MAPI Computer Vision

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

Projective Geometry and Camera Models

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

Projective Geometry and Camera Models

Image formation - About the course. Grading & Project. Tentative Schedule. Course Content. Students introduction

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

Chapter K. Geometric Optics. Blinn College - Physics Terry Honan

Geometric Model of Camera

Affine and Projective Transformations

CSE 252B: Computer Vision II

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

Lecture 8: Camera Models

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

Modeling Light. On Simulating the Visual Experience

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

θ R = θ 0 (1) -The refraction law says that: the direction of refracted ray (angle θ 1 from vertical) is (2)

Section 3. Imaging With A Thin Lens

Cameras and Stereo CSE 455. Linda Shapiro

Visual Recognition: Image Formation

Computer Vision CS 776 Fall 2018

Robotics - Projective Geometry and Camera model. Marcello Restelli

DD2429 Computational Photography :00-19:00

19.2 Surface Area of Prisms and Cylinders

Announcements. Equation of Perspective Projection. Image Formation and Cameras

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

NOTES: A quick overview of 2-D geometry

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

3D Computer Vision II. Reminder Projective Geometry, Transformations. Nassir Navab. October 27, 2009

N-Views (1) Homographies and Projection

More Mosaic Madness. CS194: Image Manipulation & Computational Photography. Steve Seitz and Rick Szeliski. Jeffrey Martin (jeffrey-martin.

Interference and Diffraction of Light

Announcements. The equation of projection. Image Formation and Cameras

12.2 Investigate Surface Area

Local features and image matching May 8 th, 2018

1 Affine and Projective Coordinate Notation

Introduction to Homogeneous coordinates

13.5 DIRECTIONAL DERIVATIVES and the GRADIENT VECTOR

Section 1.2 The Slope of a Tangent

Image Formation I Chapter 2 (R. Szelisky)

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

Multiple Views Geometry

CS4670: Computer Vision

2D transformations Homogeneous coordinates. Uses of Transformations

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

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

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

3.6 Directional Derivatives and the Gradient Vector

Image Formation I Chapter 1 (Forsyth&Ponce) Cameras

Interactive Computer Graphics. Hearn & Baker, chapter D transforms Hearn & Baker, chapter 5. Aliasing and Anti-Aliasing

Outline The Refraction of Light Forming Images with a Plane Mirror 26-3 Spherical Mirror 26-4 Ray Tracing and the Mirror Equation

Computer Vision Project-1

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

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

Computer Vision cmput 428/615

Geometric camera models and calibration

Pin Hole Cameras & Warp Functions

Camera model and calibration

ECE Digital Image Processing and Introduction to Computer Vision. Outline

2 The Derivative. 2.0 Introduction to Derivatives. Slopes of Tangent Lines: Graphically

Refraction and Lenses. Honors Physics

CS231M Mobile Computer Vision Structure from motion

How to achieve this goal? (1) Cameras

PROJECTIVE SPACE AND THE PINHOLE CAMERA

Chapter 31: Images and Optical Instruments

521466S Machine Vision Exercise #1 Camera models

CS 418: Interactive Computer Graphics. Projection

3-D D Euclidean Space - Vectors

Experiment 7 Geometric Optics

The Lens. Refraction and The Lens. Figure 1a:

Chapter 34. Images. Two Types of Images. A Common Mirage. Plane Mirrors, Extended Object. Plane Mirrors, Point Object

Chapter 34. Images. In this chapter we define and classify images, and then classify several basic ways in which they can be produced.

VideoText Interactive

You Try: A. Dilate the following figure using a scale factor of 2 with center of dilation at the origin.

Perception II: Pinhole camera and Stereo Vision

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

Perspective Projection in Homogeneous Coordinates

CS-9645 Introduction to Computer Vision Techniques Winter 2019

Robotics - Projective Geometry and Camera model. Matteo Pirotta

But First: Multi-View Projective Geometry

Capturing Light: Geometry of Image Formation

General Physics II. Mirrors & Lenses

COMP30019 Graphics and Interaction Three-dimensional transformation geometry and perspective

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

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

1 Projective Geometry

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Computer Vision I Name : CSE 252A, Fall 2012 Student ID : David Kriegman Assignment #1. (Due date: 10/23/2012) x P. = z

Ch. 26: Geometrical Optics

Bounding Tree Cover Number and Positive Semidefinite Zero Forcing Number

2.3 Additional Relations

Projections. Brian Curless CSE 457 Spring Reading. Shrinking the pinhole. The pinhole camera. Required:

Chapter 3 Geometric Optics

Perspective Projection Transformation

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

Geometry of image formation

Pin Hole Cameras & Warp Functions

3D Geometry and Camera Calibration

Transcription:

geometric camera model

image acquisition 6 years ago today curc of te Holy Spirit, Brunellesci, 436 te camera projects 3D points into an image plane

geometric primitives and transformations

How do we see te world? Let s design a camera Idea : put a piece of film in front of an object Do we get a reasonable image? Slide by Steve Seitz

Pinole camera Add a barrier to block off most of te rays is reduces blurring e opening known as te aperture How does tis transform te image? Slide by Steve Seitz

Pinole camera model Pinole model: Captures pencil of rays all rays troug a single point e point is called Center of Projection (COP) e image is formed on te Image Plane Effective focal lengt f is distance from COP to Image Plane Slide by Steve Seitz

Dimensionality Reduction Macine (3D to 2D) 3D world 2D image Point of observation Wat ave we lost? Angles Distances (lengts) Figures Stepen E. Palmer, 22

Funny tings appen

Parallel lines aren t Figure by David Forsyt

Distances can t be trusted... Figure by David Forsyt

but umans adopt! Müller-Lyer Illusion We don t make measurements in te image plane ttp://www.micaelbac.de/ot/sze_muelue/inde.tml

How to Build a Camera? Camera Obscura Camera Obscura, Gemma Frisius, 558 e first camera Known to Aristotle Dept of te room is te effective focal lengt

Home-made pinole camera Wy so blurry? ttp://www.debevec.org/pinole/

Srinking te aperture Less ligt gets troug Wy not make te aperture as small as possible? Less ligt gets troug Diffraction effects Slide by Steve Seitz

Srinking te aperture

e reason for lenses Slide by Steve Seitz

Image Formation using Lenses Ideal Lens: Same projection as pinole but gaters more ligt! i o P P f Lens Formula: i + o f f is te focal lengt of te lens determines te lens s ability to bend (refract) ligt f different from te effective focal lengt f discussed before! Slide by Sree Nayar

Modeling Projections

Modeling gprojection e coordinate system We will use te pin-ole model as an approimation Put te optical center (Center Of Projection) at te origin Put te image plane (Projection Plane) in front of te COP Wy? e camera looks down te negative z ais we need tis if we want rigt-anded-coordinates d di t Slide by Steve Seitz

Modeling gprojection Projection equations Compute intersection wit PP of ray from (,y,z) to COP Derived using similar triangles (on board) We get te projection by trowing out te last coordinate: Slide by Steve Seitz

Homogeneous coordinates Is tis a linear transformation? no division by z is nonlinear rick: add one more coordinate: omogeneous image coordinates omogeneous scene coordinates Converting from omogeneous coordinates Slide by Steve Seitz

Perspective Projection Projection is a matri multiply using omogeneous coordinates: divide by tird coordinate is is known as perspective projection e matri is te projection matri Can also formulate as a 44 divide by fourt coordinate Slide by Steve Seitz

Ortograpic Projection Special case of perspective projection Distance from te COP to te PP is infinite Image World Also called parallel projection Wat s te projection matri? Slide by Steve Seitz

geometric primitives: 2D points y Cartesian coordinates (, y ) IR y 2 omogeneous coordinates λ (, y,) λ y IR 3 \ {} λ te same 2D point can be represented by several (infinite) omogeneous vectors. Points of te form (a,b,) are called points at infinity since tey do not correspond to (finite) 2D points.

geometric primitives: 2D lines 2D line l a + by + c y d n normalization: l ( nˆ, d) nˆ - normal vector ( nˆ ) d - distance to te origin line at infinity l (,, ) (includes all points at infinity) intersection of two lines line joining two points l l 2 l 2

geometric primitives: 3D points Cartesian coordinates (, y, z) y IR z 3 z omogeneous coordinates y λ (, y, z,) λ IR 4 \ {} λ z y te same 2D point can be represented by several (infinite) omogeneous vectors. Points of te form (a,b,c,) are called points at infinity since tey do not correspond to (finite) 2D points.

geometric primitives: 3D lines and planes plane l a + by + cy + d z nˆ l ( n ˆ, d ) ( nˆ - normal vector ( nˆ ) d - distance to te origin y z line αp + ( α ) q p, q - two points p q α p + β q y

geometric transformations in te plane translation rotation +translation affine projective invariance lines paralelism lengt orientation Y Y Y Y +R Y Y Y N A Y Y N N P Y N N N

transformation of points in te plane translation ' + t ' I t rotation +translation ' R + t ' R t R cosθ sinθ - sinθ cosθ affine ' A + t ' A t a a A a a projective ' 2 + + 2 y + y + + y + y' + 2 22 2 2 + 2 y + 22 ' H

transformation of lines Previous transformations can be written as ' H can we use tis equation to transform lines? l I I H ' l ' ' tis is te equation of a line in te transformed space wit l ' H I

transformation of points in 3d space translation ' + t ' I t rotation +translation R t ' R + t ' R R RR I affine ' A + t ' A t a a A a a projective ' y' y' 3 3 2 3 + + + + + + 3 3 2 3 y + y + y + y + y + y + 2 32 2 32 22 32 + + + + + + 3 33 2 33 23 33 ' H

camera model

camera model arbitrary position internal parameters: focal lengt, scaa factors, principal point O

pin-ole model P f y p Y O Z Inverted image point in space: [ Y Z] [ y] point in te image: perspective projection f Z y f Y Z

Perspective projection wit frontal plane non inverted image point in space: [ Y Z] [ y] point in te image: perspective projection f y Z f Y Z

omogeneous coordinates Y α y, arbitrary (, β α β α β Z ) All tese vectors represent te same point in space

Perspective projection (ideal case) p p j ( ) Y Z Y y Z [ ] I Π Π λ Π λ

etrinsic parameters aamera a in arbitrary ab aypositiono Z R + t Cartesian coordinates Y Z world Y g omogeneous coordinates g R t λ Π g λ λ [ R t ] λ R, são parâmetros etrínsecos da câmara

Intrinsic parameters o y ' 2 ' 2 o internal model: conversion from metric coordinates to piels ' y' fs fs y + o y + o y (,y ) in piels ' fs o y ' fsy oy y ' K K upper triangular matri

comment Matri K is usually considered as a upper triangular matriz witout additional constraints is is equivalent to assuming tat te angle θ between te two coordinate ais can be sligtly different from 9º. K α α cotθ β sinθ c c2 ' 2 θ '

Full perspective p model Camera model: Π Π K[ R ] Π is a 3 4 matri denoted as camera matri. te camera model is linear in omogeneous coordinates!

Camera model in Cartesian equations q Cartesian coordinates Π 2 Y π π π Π 3 2 3 2 3 Z, 2, π π π π graus de liberdade Matri P é specified apart from a scale factor!

Projection of straigt lines general case special cases

vanising point gp α + y Z Y Z Y z Z Z Π + Π α Wen a goes to infinity Π π π 2 Π y 3 2 3 π π e vanising point does not depend on. Eac set of parallel lines as its on valising point. gp p p gp

Optical center plane 3 C plane plane 2 optical center ΠC

optical ray How to obtain te optical ray projected on? C is line is defined by 2 pontos e.g., te optical center C and Π ( ΠΠ )

Projective transformation from te plane Z C + p Y + p 2 4 p3 + p32y + p34 Z p2 + p22y + p y 24 p3 + p32y + p34 p em coordenadas omogéneas H ' ' ' [ Y ] 2 3 H 2 22 23 3 32 33 ij p ij, i, 2 3 j p 4 j e converse i also true ' H'

projective transformation from a plane C in omogeneous coordinates ' H H 2 2 22 3 32 3 23 33

Camera calibration ( i, i ) Calibration involves te estimation of te intrinsic and etrinsic parameters K, R, t from eperimental data. data: we assume tat we know several pairs of corresponding points in 3D and in te image plane 3 i R, i {(, ), i,..., n} R i i 2

linear metod P j ti dl Projective model 3 π π ( 3 ) π π y 3 2 3 π π π ) ( ) ( 3 2 3 yπ π Há um par de equações lineares que relacionam e. Conecendo n pares ( i, i ) obtém-se π M y M M M M 2 π π π Mπ n n n n n n y M M M M 3 2 π π π

Linear metod II Minimize te norm of te residual r Mπ π 2 Solução: π é o vector próprio (unitário) associado ao menor valor próprio de M M.