Lecture 20: Light, color, and reflectance CS6670: Computer Vision Noah Snavely.

Slides:



Advertisements
Similar presentations
Single-view geometry Odilon Redon, Cyclops, 1914.
Advertisements

Single-view Metrology and Camera Calibration
Computer Vision, Robert Pless
Last 4 lectures Camera Structure HDR Image Filtering Image Transform.
More Mosaic Madness : Computational Photography Alexei Efros, CMU, Fall 2011 © Jeffrey Martin (jeffrey-martin.com) with a lot of slides stolen from.
RANSAC and mosaic wrap-up cs195g: Computational Photography James Hays, Brown, Spring 2010 © Jeffrey Martin (jeffrey-martin.com) most slides from Steve.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Fall 2014.
Single-view metrology
Announcements Midterm out today due in a week Project2 no demo session artifact voting TBA.
Light Readings Forsyth, Chapters 4, 6 (through 6.2) by Ted Adelson.
Lecture 30: Light, color, and reflectance CS4670: Computer Vision Noah Snavely.
CS6670: Computer Vision Noah Snavely Lecture 17: Stereo
Lecture 19: Single-view modeling CS6670: Computer Vision Noah Snavely.
Lecture 5: Projection CS6670: Computer Vision Noah Snavely.
Announcements Project 2 questions Midterm out on Thursday
Lecture 7: Image Alignment and Panoramas CS6670: Computer Vision Noah Snavely What’s inside your fridge?
Projective geometry Slides from Steve Seitz and Daniel DeMenthon
Light by Ted Adelson Readings Forsyth, Chapters 4, 6 (through 6.2)
Lecture 11: Structure from motion CS6670: Computer Vision Noah Snavely.
Lecture 13: Projection, Part 2
Panorama signups Panorama project issues? Nalwa handout Announcements.
Lecture 16: Single-view modeling, Part 2 CS6670: Computer Vision Noah Snavely.
Single-view geometry Odilon Redon, Cyclops, 1914.
Panoramas and Calibration : Rendering and Image Processing Alexei Efros …with a lot of slides stolen from Steve Seitz and Rick Szeliski.
Camera Calibration from Planar Patterns Homework 2 Help SessionCS223bStanford University Mitul Saha (courtesy: Jean-Yves Bouguet, Intel)
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 02/26/15 1.
CSE 576, Spring 2008Projective Geometry1 Lecture slides by Steve Seitz (mostly) Lecture presented by Rick Szeliski.
CSCE 641: Computer Graphics Image-based Rendering Jinxiang Chai.
VZvZ r t b image cross ratio Measuring height B (bottom of object) T (top of object) R (reference point) ground plane H C scene cross ratio  scene points.
CS 558 C OMPUTER V ISION Lecture IX: Dimensionality Reduction.
Today: Calibration What are the camera parameters?
Single-view Metrology and Cameras Computational Photography Derek Hoiem, University of Illinois 10/8/13.
Single-view metrology
Projective Geometry and Single View Modeling CSE 455, Winter 2010 January 29, 2010 Ames Room.
Single-view modeling, Part 2 CS4670/5670: Computer Vision Noah Snavely.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Camera Geometry and Calibration Thanks to Martial Hebert.
Last Lecture (optical center) origin principal point P (X,Y,Z) p (x,y) x y.
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 01/25/11 1.
Image-based rendering Michael F. Cohen Microsoft Research.
Camera calibration Digital Visual Effects Yung-Yu Chuang with slides by Richard Szeliski, Steve Seitz,, Fred Pighin and Marc Pollefyes.
Project 2 –contact your partner to coordinate ASAP –more work than the last project (> 1 week) –you should have signed up for panorama kitssigned up –sign.
Peripheral drift illusion. Multiple views Hartley and Zisserman Lowe stereo vision structure from motion optical flow.
Panorama artifacts online –send your votes to Li Announcements.
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
Lecture 34: Light, color, and reflectance CS4670 / 5670: Computer Vision Noah Snavely.
Calibration.
Last Two Lectures Panoramic Image Stitching
More with Pinhole + Single-view Metrology
Single-view geometry Odilon Redon, Cyclops, 1914.
Project 1 Due NOW Project 2 out today –Help session at end of class Announcements.
Image-Based Rendering Geometry and light interaction may be difficult and expensive to model –Think of how hard radiosity is –Imagine the complexity of.
Project 2 went out on Tuesday You should have a partner You should have signed up for a panorama kit Announcements.
Lecture 14: Projection CS4670 / 5670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
CS5670: Computer Vision Noah Snavely Light & Perception.
Calibrating a single camera
Single-view metrology
Think-Pair-Share What visual or physiological cues help us to perceive 3D shape and depth?
CS5670: Computer Vision Lecture 9: Cameras Noah Snavely
Depth from disparity (x´,y´)=(x+D(x,y), y)
Digital Visual Effects, Spring 2007 Yung-Yu Chuang 2007/4/17
Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/4/19
Digital Visual Effects, Spring 2008 Yung-Yu Chuang 2008/4/15
More Mosaic Madness : Computational Photography
More Mosaic Madness © Jeffrey Martin (jeffrey-martin.com)
Digital Visual Effects Yung-Yu Chuang
Projective geometry Readings
Multi-view geometry.
Announcements Project 2 extension: Friday, Feb 8
Presentation transcript:

Lecture 20: Light, color, and reflectance CS6670: Computer Vision Noah Snavely

Announcements Final projects – Everyone should have received feedback by now – Midterm reports due November 24 – Final presentations tentatively scheduled for the final exam period: Wed, December 16, 7:00 PM - 9:30 PM

Measuring height RH vzvz r b t image cross ratio H b0b0 t0t0 v vxvx vyvy

Measuring height vzvz r b t0t0 vxvx vyvy vanishing line (horizon) v t0t0 m0m0 What if the point on the ground plane b 0 is not known? Here the guy is standing on the box, height of box is known Use one side of the box to help find b 0 as shown above b0b0 t1t1 b1b1

Camera calibration Goal: estimate the camera parameters Version 1: solve for projection matrix Version 2: solve for camera parameters separately –intrinsics (focal length, principle point, pixel size) –extrinsics (rotation angles, translation) –radial distortion

Vanishing points and projection matrix = v x (X vanishing point) Z3Y2, similarly, v π v π  Not So Fast! We only know v’s up to a scale factor Can fully specify by providing 3 reference points

Calibration using a reference object Place a known object in the scene identify correspondence between image and scene compute mapping from scene to image Issues must know geometry very accurately must know 3D->2D correspondence

Chromaglyphs Courtesy of Bruce Culbertson, HP Labs

Estimating the projection matrix Place a known object in the scene identify correspondence between image and scene compute mapping from scene to image

Direct linear calibration

Can solve for m ij by linear least squares use eigenvector trick that we used for homographies

Direct linear calibration Advantage: Very simple to formulate and solve Disadvantages: Doesn’t tell you the camera parameters Doesn’t model radial distortion Hard to impose constraints (e.g., known focal length) Doesn’t minimize the right error function For these reasons, nonlinear methods are preferred Define error function E between projected 3D points and image positions –E is nonlinear function of intrinsics, extrinsics, radial distortion Minimize E using nonlinear optimization techniques –e.g., variants of Newton’s method (e.g., Levenberg Marquart)

Alternative: multi-plane calibration Images courtesy Jean-Yves Bouguet, Intel Corp. Advantage Only requires a plane Don’t have to know positions/orientations Good code available online! –Intel’s OpenCV library: –Matlab version by Jean-Yves Bouget: –Zhengyou Zhang’s web site:

Some Related Techniques Tour Into The Picture Anjyo et al., SIGGRAPH

Some Related Techniques Image-Based Modeling and Photo Editing Mok et al., SIGGRAPH Single View Modeling of Free-Form Scenes Zhang et al., CVPR

Automatic approaches Make3D, Ashutosh Saxena

Automatic approaches D. Hoiem, A.A. Efros, and M. Hebert, "Automatic Photo Pop-up", ACM SIGGRAPH 2005.

Light by Ted Adelson Readings Szeliski, 2.2, 2.3.2

Light by Ted Adelson Readings Szeliski, 2.2, 2.3.2

Properties of light Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

Radiometry What determines the brightness of an image pixel? Light source properties Surface properties

Radiometry What determines the brightness of an image pixel?

Radiometry What determines the brightness of an image pixel? Light source properties Surface shape Surface reflectance properties Optics Sensor characteristics Slide by L. Fei-Fei Exposure

What is light? Electromagnetic radiation (EMR) moving along rays in space R( ) is EMR, measured in units of power (watts) – is wavelength Light field We can describe all of the light in the scene by specifying the radiation (or “radiance” along all light rays) arriving at every point in space and from every direction

The light field Known as the plenoptic function If you know R, you can predict how the scene would appear from any viewpoint. The light field Assume radiance does not change along a ray –what does this assume about the world? Parameterize rays by intersection with two planes: Usually drop and time parameters How could you capture a light field? t is not time (different from above t !)

Capturing light fields Stanford/Cornell spherical gantry Stanford Multi-Camera Array Lego Mindstorms Gantry Handheld light field camera

Light field example

More info on light fields If you’re interested to read more: The plenoptic function Original reference: E. Adelson and J. Bergen, "The Plenoptic Function and the Elements of Early Vision," in M. Landy and J. A. Movshon, (eds) Computational Models of Visual Processing, MIT Press 1991.The Plenoptic Function and the Elements of Early Vision L. McMillan and G. Bishop, “Plenoptic Modeling: An Image-Based Rendering System”, Proc. SIGGRAPH, 1995, pp Plenoptic Modeling: An Image-Based Rendering System The light field M. Levoy and P. Hanrahan, “Light Field Rendering”, Proc SIGGRAPH 96, pp Light Field Rendering S. J. Gortler, R. Grzeszczuk, R. Szeliski, and M. F. Cohen, "The lumigraph," in Proc. SIGGRAPH, 1996, pp The lumigraph

What is light? Electromagnetic radiation (EMR) moving along rays in space R( ) is EMR, measured in units of power (watts) – is wavelength Perceiving light How do we convert radiation into “color”? What part of the spectrum do we see?

Visible light We “see” electromagnetic radiation in a range of wavelengths