Equation of Perspective Projection. Projective Geometry. Conversion Euclidean -> Homogenous -> Euclidean. Image Formation and Cameras

Similar documents
Image Formation. 7-year old s question. Reference. Lecture Overview. It receives light from all directions. Pinhole

The Geometry of Perspective Projection

Geometric Camera Parameters

Understanding astigmatism Spring 2003

2) A convex lens is known as a diverging lens and a concave lens is known as a converging lens. Answer: FALSE Diff: 1 Var: 1 Page Ref: Sec.

Lecture 12: Cameras and Geometry. CAP 5415 Fall 2010

Geometric Optics Converging Lenses and Mirrors Physics Lab IV

Projective Geometry. Projective Geometry

Reflection and Refraction

Lecture 2: Homogeneous Coordinates, Lines and Conics

Geometric Transformation CS 211A

B4 Computational Geometry

521493S Computer Graphics. Exercise 2 & course schedule change

4. CAMERA ADJUSTMENTS

CHAPTER FIVE. 5. Equations of Lines in R 3

Relating Vanishing Points to Catadioptric Camera Calibration

Experiment 3 Lenses and Images

1. You stand two feet away from a plane mirror. How far is it from you to your image? a. 2.0 ft c. 4.0 ft b. 3.0 ft d. 5.0 ft

CS 4204 Computer Graphics

(a) We have x = 3 + 2t, y = 2 t, z = 6 so solving for t we get the symmetric equations. x 3 2. = 2 y, z = 6. t 2 2t + 1 = 0,

Projective Geometry: A Short Introduction. Lecture Notes Edmond Boyer

Imaging Systems Laboratory II. Laboratory 4: Basic Lens Design in OSLO April 2 & 4, 2002

WAVELENGTH OF LIGHT - DIFFRACTION GRATING

Lecture 8 : Coordinate Geometry. The coordinate plane The points on a line can be referenced if we choose an origin and a unit of 20

C) D) As object AB is moved from its present position toward the left, the size of the image produced A) decreases B) increases C) remains the same

9/16 Optics 1 /11 GEOMETRIC OPTICS

Epipolar Geometry. Readings: See Sections 10.1 and 15.6 of Forsyth and Ponce. Right Image. Left Image. e(p ) Epipolar Lines. e(q ) q R.

Experimental and modeling studies of imaging with curvilinear electronic eye cameras

Optics and Geometry. with Applications to Photography Tom Davis November 15, 2004

PHYS 39a Lab 3: Microscope Optics

Figure 1.1 Vector A and Vector F

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors

View of ΣIGMA TM (Ref. 1)

Camera geometry and image alignment

Number Sense and Operations

THREE DIMENSIONAL GEOMETRY

waves rays Consider rays of light from an object being reflected by a plane mirror (the rays are diverging): mirror object

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

Optical Systems Design with Zemax OpticStudio. Lecture 1

Lecture 17. Image formation Ray tracing Calculation. Lenses Convex Concave. Mirrors Convex Concave. Optical instruments

Lecture Notes for Chapter 34: Images

L 2 : x = s + 1, y = s, z = 4s Suppose that C has coordinates (x, y, z). Then from the vector equality AC = BD, one has

Equations Involving Lines and Planes Standard equations for lines in space

Polarization of Light

Revision problem. Chapter 18 problem 37 page 612. Suppose you point a pinhole camera at a 15m tall tree that is 75m away.

Solving Equations Involving Parallel and Perpendicular Lines Examples

Convex Mirrors. Ray Diagram for Convex Mirror

12.5 Equations of Lines and Planes

3D Scanner using Line Laser. 1. Introduction. 2. Theory

Chapter 3.1 Angles. Geometry. Objectives: Define what an angle is. Define the parts of an angle.

Section 1.4. Lines, Planes, and Hyperplanes. The Calculus of Functions of Several Variables

Basic Problem: Map a 3D object to a 2D display surface. Analogy - Taking a snapshot with a camera

Light and its effects

2-View Geometry. Mark Fiala Ryerson University

Size Of the Image Nature Of the Image At Infinity At the Focus Highly Diminished, Point Real and Inverted

Geometrical Optics - Grade 11

Vector Notation: AB represents the vector from point A to point B on a graph. The vector can be computed by B A.

Solution Guide III-C. 3D Vision. Building Vision for Business. MVTec Software GmbH

= y y 0. = z z 0. (a) Find a parametric vector equation for L. (b) Find parametric (scalar) equations for L.

Schneider Kreuznach PC Tilt/Shift Lenses

Lenses and Telescopes

INTRODUCTION TO RENDERING TECHNIQUES

discuss how to describe points, lines and planes in 3 space.

Monash University Clayton s School of Information Technology CSE3313 Computer Graphics Sample Exam Questions 2007

1 of 9 2/9/2010 3:38 PM

Numerical Analysis Lecture Notes

Chapter 2 ELECTRON OPTICS. 2.1 Properties of an Ideal Image

Section 12.6: Directional Derivatives and the Gradient Vector

Algebra 2 Chapter 1 Vocabulary. identity - A statement that equates two equivalent expressions.

Optical Terminology 192

First let us consider microscopes. Human eyes are sensitive to radiation having wavelengths between

Lesson 29: Lenses. Double Concave. Double Convex. Planoconcave. Planoconvex. Convex meniscus. Concave meniscus

TS-E24mm f/3.5l TS-E45mm f/2.8 TS-E90mm f/2.8 Instructions

x x y y Then, my slope is =. Notice, if we use the slope formula, we ll get the same thing: m =

Master Anamorphic T1.9/35 mm

Metric Measurements on a Plane from a Single Image

Solving Simultaneous Equations and Matrices

Learning Optics using Vision

Flat-Field IR Mega-Pixel Lens

A presentation to Aberdare Camera Club

Solution Derivations for Capa #14

How an electronic shutter works in a CMOS camera. First, let s review how shutters work in film cameras.

DOING PHYSICS WITH MATLAB COMPUTATIONAL OPTICS RAYLEIGH-SOMMERFELD DIFFRACTION INTEGRAL OF THE FIRST KIND

Plate waves in phononic crystals slabs

Geometry of Vectors. 1 Cartesian Coordinates. Carlo Tomasi

Optical laser beam scanner lens relay system

Name Class. Date Section. Test Form A Chapter 11. Chapter 11 Test Bank 155

LIGHT REFLECTION AND REFRACTION

Introduction to Optics

Chapter 17: Light and Image Formation

Section 9.5: Equations of Lines and Planes

( 1) = 9 = 3 We would like to make the length 6. The only vectors in the same direction as v are those

Chapter 23. The Reflection of Light: Mirrors

CHAPTER 8, GEOMETRY. 4. A circular cylinder has a circumference of 33 in. Use 22 as the approximate value of π and find the radius of this cylinder.

EXPERIMENT 6 OPTICS: FOCAL LENGTH OF A LENS

4BA6 - Topic 4 Dr. Steven Collins. Chap. 5 3D Viewing and Projections

Geometry in architecture and building

A NEW LOOK AT RISLEY PRISMS. By Craig Schwarze Senior Systems Engineer OPTRA Inc.

Essential Mathematics for Computer Graphics fast

Aspherical Lens Design by Using a Numerical Analysis

Transcription:

Equation of Perspective Projection Image Formation and Cameras Guest Professor: Dr. Ana Murillo CSE 252A Lecture 4 Cartesian coordinates: We have, by similar triangles, that (x, y, z) -> (f x/z, f y/z, f ) Establishing an image plane coordinate system at C aligned with i and j, we get (x, y,z) ( f ' x z, f ' y z ) Projective geometry provides an elegant means for handling these different situations in a unified way and homogenous coordinates are a way to represent entities (points & lines) in projective spaces. Projective Geometry Axioms of Projective Plane 1. Every two distinct points define a line 2. Every two distinct lines define a point (intersect at a point) 3. There exists three points, A,B,C such that C does not lie on the line defined by A and B. Different than Euclidean (affine) geometry Projective plane is bigger than affine plane includes line at infinity Projective Plane Affine = Plane + Line at Infinity Conversion Euclidean -> Homogenous -> Euclidean In 2-D Euclidean -> Homogenous: (x, y) -> k (x,y,1) Homogenous -> Euclidean: (x, y, z) -> (x/z, y/z) In 3-D Euclidean -> Homogenous: (x, y, z) -> k (x,y,z,1) Homogenous -> Euclidean: (x, y, z, w) -> (x/w, y/w, z/w) Z 1 Y X (x,y,1) (x,y) The equation of projection: Euclidean & Homogenous Coordinates Cartesian coordinates: (x,y,z) ( f x z, f y z ) Homogenous Coordinates and Camera matrix U X 1 0 0 0 V = 0 1 0 0 Y W 0 0 1 Z f 0 T 1

Mapping from a Plane to a Plane under Perspective is given by a projective transform H Projective transformation x = Hx Also called a homography This is a mapping from 2-D to 2-D in homogenous coordinates 3 x 3 linear transformation of homogenous coordinates H is a 3x3 matrix, x is a 3x1 vector of homogenous coordinates Points map to points Lines map to lines Figure borrowed from Hartley and Zisserman Multiple View Geometry in computer vision Application: Panoramas Planar Homography: Pure Rotation Coordinates between pairs of images are related by projective transformations Transforms x = H2X = H2(H1-1 x) = (H2H1-1)x Figure borrowed from Hartley and Zisserman Multiple View Geometry in computer vision Planar Homography x =H1X More applications: CRs, scan, x =H2X x = H2X = H2(H1-1 x) = (H2H1-1)x Figure borrowed from Hartley and Zisserman Multiple View Geometry in computer vision 2

Augmented reality Vanishing Point In the projective space, parallel lines meet at a point at infinity. Region of interest Corresponding points The vanishing point is the perspective projection of that point at infinity, resulting from multiplication by the camera matrix. H matrix? Some applications Simplified Camera Models Perspective Projection Approximation Affine Camera Model Scaled rthographic Projection Figure from Handling Urban Location Recognition as a 2D Homothetic Problem G. Baatz, K. Koser1, D. Chen, R. Grzeszczuk, M. Pollefeys ECCV 2010. Affine Camera Model rthographic Projection Appropriate in Neighborhood About (x0,y0,z0) Particular case Perspective Assume that f=1, and perform a Taylor series expansion about (x0, y0, z0) Take perspective projection equation, and perform Taylor series expansion about some point P= (x0,y0,z0). Drop terms that are higher order than linear. Resulting expression is affine camera model u 1 x 0 1 x 0 1 1 = 2 ( z z0 ) + ( x x 0 ) z0 0 v z0 y 0 z0 y 0 2 1 0 1 2 x 0 + ( y y 0 ) + 3 ( z z0 ) + z0 1 2 z0 y 0 Dropping higher order terms and regrouping. x u 1 x 0 1/z0 0 x 0 /z02 y = Ap + b + 2 v z0 y 0 0 1/z0 y 0 /z0 z 3

Scaled orthographic projection Affine camera model in Euclidean Coordinates Starting with Affine Camera Model, take Taylor series about (xo, y0, z0) = (0, 0, z0) a point on the optical axis Rewrite affine camera model in terms of Homogenous Coordinates (0, 0, z0) u 1 x = v z0 y That is the z coordinate is dropped, and the image a scaling of the x and y coordinates, where the scale is 1/z0, the depth of the point of the expansion. The projection matrix for scaled orthographic projection U 1/z0 0 V = 0 1/z0 0 W 0 X 0 0 Y 0 0 Z 0 1 1 For all cameras? Parallel lines project to parallel lines Ratios of distances are preserved under orthographic projection ther camera models Some Alternative Cameras Generalized camera maps points lying on rays and maps them to points on the image plane. mnicam (hemispherical) Light Probe (spherical) 4

Beyond the pinhole Camera Beyond the pinhole Camera Getting more light Bigger Aperture Pinhole Camera Images with Variable Aperture Limits for pinhole cameras 2 mm 1mm.6 mm.35 mm.15 mm.07 mm The reason for lenses We need light, but big pinholes cause blur. Lenses 5

Thin Lens Thin Lens: Center ptical axis F Rotationally symmetric about optical axis. Spherical interfaces. All rays that enter lens along line pointing at emerge in same direction. Thin Lens: Focus Thin Lens: Image of Point F Parallel lines pass through the focus, F P F All rays passing through lens and starting at P converge upon P So light gather capability of lens is given the area of the lens and all the rays focus on P instead of become blurred like a pinhole P Thin Lens: Image of Point Thin Lens: Image Plane P F Z f Z Relation between depth of Point (Z) and the depth where it focuses (Z ) P Q F P Q Image Plane A price: Whereas the image of P is in focus, the image of Q isn t. P 6

Thin Lens: Aperture Field of View P Image Plane P Smaller Aperture -> Less Blur Pinhole -> No Blur Image Plane f Field of View Field of view is a function of f and size of image plane. Deviations from the lens model Deviations from this ideal are aberrations Two types 1. geometrical 2. chromatic spherical aberration astigmatism distortion coma Aberrations are reduced by combining lenses Spherical aberration Rays parallel to the axis do not converge uter portions of the lens yield smaller focal lengths Compound lenses Astigmatism An optical system with astigmatism is one where rays that propagate in two perpendicular planes have different focus. If an optical system with astigmatism is used to form an image of a cross, the vertical and horizontal lines will be in sharp focus at two different distances. Distortion magnification/focal length different for different angles of inclination object pincushion (tele-photo) barrel (wide-angle) Can be corrected! (if parameters are know) 7

Chromatic aberration (great for prisms, bad for lenses) Chromatic aberration rays of different wavelengths focused in different planes cannot be removed completely Vignetting Human eye nly part of the light reaches the sensor Periphery of the image is dimmer 8