Computer Vision CS 776 Spring 2014 Cameras & Photogrammetry 1 Prof. Alex Berg (Slide credits to many folks on individual slides)

Slides:



Advertisements
Similar presentations
Image formation. Image Formation Vision infers world properties form images. How do images depend on these properties? Two key elements –Geometry –Radiometry.
Advertisements

C280, Computer Vision Prof. Trevor Darrell Lecture 2: Image Formation.
The Camera : Computational Photography Alexei Efros, CMU, Fall 2006.
CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu Lecture 4 – Image formation(part I)
CS 691 Computational Photography Instructor: Gianfranco Doretto 3D to 2D Projections.
Paris town hall.
The Camera CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2014.
Camera calibration and epipolar geometry
Cameras. Overview The pinhole projection model Qualitative properties Perspective projection matrix Cameras with lenses Depth of focus Field of view Lens.
Modeling Light : Rendering and Image Processing Alexei Efros.
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 15: Single-view modeling CS6670: Computer Vision Noah Snavely.
Lecture 12: Projection CS4670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
Lecture 6: Image Warping and Projection CS6670: Computer Vision Noah Snavely.
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
Today: The Camera. Overview The pinhole projection model Qualitative properties Perspective projection matrix Cameras with lenses Depth of focus Field.
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 02/26/15 1.
The Camera : Computational Photography Alexei Efros, CMU, Fall 2008.
Cameras, lenses, and calibration
Image formation and cameras
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?
Northeastern University, Fall 2005 CSG242: Computational Photography Ramesh Raskar Mitsubishi Electric Research Labs Northeastern University September.
Lecture 14: Projection CS4670 / 5670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
776 Computer Vision Jan-Michael Frahm Fall Camera.
776 Computer Vision Jan-Michael Frahm Spring 2012.
Geometric Models & Camera Calibration
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.
COMPUTER VISION D10K-7C02 CV02: Camera Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 01/25/11 1.
Peripheral drift illusion. Multiple views Hartley and Zisserman Lowe stereo vision structure from motion optical flow.
Computational Photography Derek Hoiem, University of Illinois
Single-view geometry Odilon Redon, Cyclops, 1914.
Projection Readings Nalwa 2.1 Szeliski, Ch , 2.1
Jinxiang Chai CSCE 441 Computer Graphics 3-D Viewing 0.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 5: Viewing
More with Pinhole + Single-view Metrology
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.
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.
Outline 3D Viewing Required readings: HB 10-1 to 10-10
CSE 185 Introduction to Computer Vision
CS682, Jana Kosecka Rigid Body Motion and Image Formation Jana Kosecka
CS5670: Computer Vision Lecture 9: Cameras Noah Snavely
Jan-Michael Frahm Fall 2016
The Camera : Computational Photography
Announcements Project 1 Project 2
CSCE 441 Computer Graphics 3-D Viewing
CS 790: Introduction to Computational Vision
Overview Pin-hole model From 3D to 2D Camera projection
CS4670 / 5670: Computer Vision Lecture 12: Cameras Noah Snavely
Lecture 13: Cameras and geometry
Lecturer: Dr. A.H. Abdul Hafez
The Camera : Computational Photography
Announcements Midterm out today Project 1 demos.
Projection Readings Nalwa 2.1.
Credit: CS231a, Stanford, Silvio Savarese
Announcements Midterm out today Project 1 demos.
The Camera.
Presentation transcript:

Computer Vision CS 776 Spring 2014 Cameras & Photogrammetry 1 Prof. Alex Berg (Slide credits to many folks on individual slides)

Cameras & Photogrammetry 1 Albrecht Dürer early 1500sBrunelleschi, early 1400s

Overview of next two lectures The pinhole projection model Qualitative properties Perspective projection matrix Cameras with lenses Depth of focus Field of view Lens aberrations Digital cameras Sensors Color Artifacts

Let’s design a camera Idea 1: put a piece of film in front of an object Do we get a reasonable image? Slide by Steve Seitz

Pinhole camera Add a barrier to block off most of the rays Slide by Steve Seitz

Pinhole camera Captures pencil of rays – all rays through a single point: aperture, center of projection, focal point, camera center The image is formed on the image plane Slide by Steve Seitz

Pinhole cameras everywhere Tree shadow during a solar eclipse photo credit: Nils van der Burg Slide by Steve Seitz

Figures © Stephen E. Palmer, 2002 Dimensionality reduction: from 3D to 2D 3D world2D image What is preserved? Straight lines, incidence What is not preserved? Angles, lengths Slide by A. Efros

Modeling projection To compute the projection P’ of a scene point P, form the visual ray connecting P to the camera center O and find where it intersects the image plane All scene points that lie on this visual ray have the same projection in the image Are there scene points for which this projection is undefined? x y z f Source: J. Ponce, S. Seitz

Modeling projection The coordinate system The optical center ( O ) is at the origin The image plane is parallel to xy-plane (perpendicular to z axis) Source: J. Ponce, S. Seitz x y z f Projection equations Derived using similar triangles:

Projection of a line What if we have another line in the scene parallel to the first one? image plane camera center line in the scene vanishing point Slide by Steve Seitz

Vanishing points Each direction in space has its own vanishing point All lines going in that direction converge at that point Exception: directions parallel to the image plane

Vanishing points Each direction in space has its own vanishing point All lines going in that direction converge at that point Exception: directions parallel to the image plane What about the vanishing line of a plane? Slide by Steve Seitz

The horizon Vanishing line of the ground plane –All points at the same height as the camera project to the horizon –Points higher than the camera project above the horizon –Provides way of comparing height of objects camera center ground plane Slide by Steve Seitz

The horizon Slide by Steve Seitz

Perspective cues Slide by Steve Seitz

Perspective cues Slide by Steve Seitz

Perspective cues Slide by Steve Seitz

Comparing heights VanishingPoint Slide by Steve Seitz

Measuring height Camera height What is the height of the camera? Slide by Steve Seitz

Perspective in art Masaccio, Trinity, Santa Maria Novella, Florence, One of the first consistent uses of perspective in Western art Slide Svetlana Lazebnik

(at least partial) Perspective projections in art well before the Renaissance From ottobwiersma.nl Also some Greek examples, So apparently pre-renaissance…

Perspective distortion What does a sphere project to? M. H. Pirenne

Perspective distortion What does a sphere project to?

Perspective distortion The exterior columns appear bigger The distortion is not due to lens flaws Problem pointed out by Da Vinci Slide by F. Durand

Perspective distortion: People

Modeling projection Projection equation: Source: J. Ponce, S. Seitz x y z f

Homogeneous coordinates Is this a linear transformation? Trick: add one more coordinate: homogeneous image coordinates homogeneous scene coordinates Converting from homogeneous coordinates no—division by z is nonlinear Slide by Steve Seitz

divide by the third coordinate Perspective Projection Matrix Projection is a matrix multiplication using homogeneous coordinates In practice: lots of coordinate transformations… World to camera coord. trans. matrix (4x4) Perspective projection matrix (3x4) Camera to pixel coord. trans. matrix (3x3) = 2D point (3x1) 3D point (4x1)

Whole “pipeline” World to camera coord. trans. matrix (4x4) Perspective projection matrix (3x4) Camera to pixel coord. trans. matrix (3x3) = 2D point (3x1) 3D point (4x1) Just one matrix (+ dehomogenization) but with a special structure

Orthographic Projection Special case of perspective projection Distance from center of projection to image plane is infinite Also called “parallel projection” What’s the projection matrix? Image World Slide by Steve Seitz

More reading & thought problems Shape from Chebyshev netsShape from Chebyshev nets, Koendereink & van Dorn Accidental pinhole and pinspeck camerasAccidental pinhole and pinspeck cameras. Torralba & Freeman Show that a sphere can look like a non-circular under perspective projection. What does a pinhole camera image look like as you make the pinhole larger?