Credit: CS231a, Stanford, Silvio Savarese

Slides:



Advertisements
Similar presentations
C280, Computer Vision Prof. Trevor Darrell Lecture 2: Image Formation.
Advertisements

Last 4 lectures Camera Structure HDR Image Filtering Image Transform.
The Camera : Computational Photography Alexei Efros, CMU, Fall 2006.
CS 691 Computational Photography Instructor: Gianfranco Doretto 3D to 2D Projections.
Computer Vision CS 776 Spring 2014 Cameras & Photogrammetry 1 Prof. Alex Berg (Slide credits to many folks on individual slides)
Computer vision: models, learning and inference
Camera Models A camera is a mapping between the 3D world and a 2D image The principal camera of interest is central projection.
Announcements. Projection Today’s Readings Nalwa 2.1.
Lecture 5: Projection CS6670: Computer Vision Noah Snavely.
Announcements Mailing list (you should have received messages) Project 1 additional test sequences online Talk today on “Lightfield photography” by Ren.
CS485/685 Computer Vision Prof. George Bebis
Computer Vision - A Modern Approach
Announcements Mailing list Project 1 test the turnin procedure *this week* (make sure it works) vote on best artifacts in next week’s class Project 2 groups.
Lecture 13: Projection, Part 2
Lecture 12: Projection CS4670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
Lecture 6: Image Warping and Projection CS6670: Computer Vision Noah Snavely.
The Pinhole Camera Model
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 02/26/15 1.
Image Formation III Chapter 1 (Forsyth&Ponce) Cameras “Lenses”
The Camera : Computational Photography Alexei Efros, CMU, Fall 2008.
Cameras, lenses, and calibration
Perspective projection
EEM 561 Machine Vision Week 10 :Image Formation and Cameras
Building a Real Camera.
Image formation How are objects in the world captured in an image?
Lecture 14: Projection CS4670 / 5670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
776 Computer Vision Jan-Michael Frahm Fall Camera.
Recap from Wednesday Two strategies for realistic rendering capture real world data synthesize from bottom up Both have existed for 500 years. Both are.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Sebastian Thrun CS223B Computer Vision, Winter Stanford CS223B Computer Vision, Winter 2005 Lecture 2 Lenses and Camera Calibration Sebastian Thrun,
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 01/25/11 1.
Geometric Camera Models
Peripheral drift illusion. Multiple views Hartley and Zisserman Lowe stereo vision structure from motion optical flow.
Single-view geometry Odilon Redon, Cyclops, 1914.
CS-498 Computer Vision Week 7, Day 2 Camera Parameters Intrinsic Calibration  Linear  Radial Distortion (Extrinsic Calibration?) 1.
0 Assignment 1 (Due: 3/9) The projections of two parallel lines, l 1 and l 2, which lie on the ground plane G, onto the image plane I converge at a point.
1 Chapter 2: Geometric Camera Models Objective: Formulate the geometrical relationships between image and scene measurements Scene: a 3-D function, g(x,y,z)
Image Formation III Chapter 1 (Forsyth&Ponce) Cameras “Lenses” Guido Gerig CS-GY 6643, Spring 2016 (slides modified from Marc Pollefeys, UNC Chapel Hill/
Announcements Project 1 grading session this Thursday 2:30-5pm, Sieg 327 –signup ASAP:signup –10 minute slot to demo your project for a TA »have your program.
Example: warping triangles Given two triangles: ABC and A’B’C’ in 2D (12 numbers) Need to find transform T to transfer all pixels from one to the other.
Lecture 14: Projection CS4670 / 5670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
Lecture 18: Cameras CS4670 / 5670: Computer Vision KavitaBala Source: S. Lazebnik.
Computer vision: geometric models Md. Atiqur Rahman Ahad Based on: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince.
CS682, Jana Kosecka Rigid Body Motion and Image Formation Jana Kosecka
Calibrating a single camera
Prof. Adriana Kovashka University of Pittsburgh October 3, 2016
Geometric Model of Camera
Lenses Converging and Diverging Lenses.
CS5670: Computer Vision Lecture 9: Cameras Noah Snavely
Jan-Michael Frahm Fall 2016
The Camera : Computational Photography
Announcements Project 1 Project 2
Digital Visual Effects, Spring 2007 Yung-Yu Chuang 2007/4/17
CSCE 441 Computer Graphics 3-D Viewing
Announcements Project 1 Project 2 Due Wednesday at 11:59pm
Overview Pin-hole model From 3D to 2D Camera projection
Lecture 13: Cameras and geometry
Geometric Camera Models
Lecturer: Dr. A.H. Abdul Hafez
The Camera : Computational Photography
14-2 Thin lenses.
Announcements Midterm out today Project 1 demos.
Projection Readings Nalwa 2.1.
Projection Readings Szeliski 2.1.
Single-view geometry Odilon Redon, Cyclops, 1914.
Camera Calibration Reading:
Announcements Midterm out today Project 1 demos.
Presentation transcript:

Credit: CS231a, Stanford, Silvio Savarese Camera Models Reading: [FP] Chapter 1, “Geometric Camera Models” [HZ] Chapter 6 “Camera Models” Credit: CS231a, Stanford, Silvio Savarese

Agenda Pinhole cameras Cameras & lenses The geometry of pinhole cameras

Agenda Pinhole cameras Cameras & lenses The geometry of pinhole cameras

Pinhole camera f o f = focal length o = aperture = pinhole = center of the camera

ìx'= f x ïîy' = f z Pinhole camera ï í z y ï [Eq. 1] f ï í z [Eq. 1] y ï ïîy' = f z Derived using similar triangles

Pinhole camera f [Eq. 2] i f P = [x, z] x¢ x k = f z O P’=[x’, f ]

Pinhole camera Is the size of the aperture important? Kate lazuka ©

Shrinking aperture size -What happens if the aperture is too small? -Less light passes through Adding lenses!

Agenda Pinhole cameras Cameras & lenses The geometry of pinhole cameras

Cameras & Lenses image P P’ A lens focuses light onto the film

Cameras & Lenses A lens focuses light onto the film f focal point f A lens focuses light onto the film All rays parallel to the optical (or principal) axis converge to one point (the focal point) on a plane located at the focal length f from the center of the lens. Rays passing through the center are not deviated

Issues with lenses: Radial Distortion – Deviations are most noticeable for rays that pass through the edge of the lens No distortion Pin cushion Barrel (fisheye lens) Image magnification decreases with distance from the optical axis

Agenda Pinhole cameras Cameras & lenses The geometry of pinhole cameras Intrinsic Extrinsic

ìx'= f x ïîy' = f z Pinhole camera Â3®Â2 ï z í y ï f E f = focal length o = center of the camera

From retina plane to images Digital image Pixels, bottom-left coordinate systems

Coordinate systems yc xc 1. Offset (x, y, z) ® (f x + c , f y + c ) z z x y C’’=[cx, cy] [Eq. 5] x

Converting to pixels

Is this projective transformation linear? P = (x, y, z) → P ' = (α x + c , β y + c ) x y z z yc y [Eq. 7] xc Is this a linear transformation? No — division by z is nonlinear Can we express it in a matrix form? C=[cx, cy] x

Homogeneous coordinates homogeneous image coordinates homogeneous scene coordinates Converting back from homogeneous coordinates

Projective transformation in the homogenous coordinate system

The Camera Matrix

Camera Skewness

World reference system intrinsic extrinsic

The projective transformation

Properties of projective transformations Points project to points Lines project to lines Distant objects look smaller

Properties of Projection Angles are not preserved Parallel lines meet! Parallel lines in the world intersect in the image at a “vanishing point”

Horizon line (vanishing line) Angles are not preserved Parallel lines meet! Parallel lines in the world intersect in the image at a “vanishing point”

Horizon line (vanishing line)