Recap from Friday Pinhole camera model Perspective projections Lenses and their flaws Focus Depth of field Focal length and field of view.

Slides:



Advertisements
Similar presentations
Computational Photography: Color perception, light spectra, contrast Connelly Barnes.
Advertisements

Multiscale Analysis of Images Gilad Lerman Math 5467 (stealing slides from Gonzalez & Woods, and Efros)
Ted Adelson’s checkerboard illusion. Motion illusion, rotating snakes.
Slides from Alexei Efros
CS 691 Computational Photography
Computational Photography: Sampling + Reconstruction Connelly Barnes Slides from Alexei Efros and Steve Marschner.
Computational Photography CSE 590 Tamara Berg Filtering & Pyramids.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Fall 2014.
Image Filtering, Part 2: Resampling Today’s readings Forsyth & Ponce, chapters Forsyth & Ponce –
Sampling and Pyramids : Rendering and Image Processing Alexei Efros …with lots of slides from Steve Seitz.
Announcements. Projection Today’s Readings Nalwa 2.1.
Basic Principles of Imaging and Lenses. Light Light Photons ElectromagneticRadiation.
Edges and Scale Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski – From Sandlot ScienceSandlot.
Image transformations, Part 2 Prof. Noah Snavely CS1114
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2006 Some figures from Steve Seitz, Steve Palmer, Paul Debevec,
Image Sampling Moire patterns
Announcements Mailing list (you should have received messages) Project 1 additional test sequences online Talk today on “Lightfield photography” by Ren.
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 4: Image Resampling CS4670: Computer Vision Noah Snavely.
15-463: Computational Photography Alexei Efros, CMU, Fall 2011 Many slides from Steve Marschner Sampling and Reconstruction.
Lecture 4a: Cameras CS6670: Computer Vision Noah Snavely Source: S. Lazebnik.
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2010.
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2008.
Lecture 12: Projection CS4670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
1 Computer Science 631 Lecture 6: Color Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
Lecture 3: Image Resampling CS4670: Computer Vision Noah Snavely Nearest-neighbor interpolation Input image 3x upsample hq3x interpolation (ZSNES)
Colors and sensors Slides from Bill Freeman, Fredo Durand, Rob Fergus, and David Forsyth, Alyosha Efros.
Slides from Alexei Efros, Steve Marschner Filters & fourier theory.
What is wrong with this picture? Recap from Lecture 2 Pinhole camera model Perspective projections Focal length and field of view Remember to use your.
Image Sampling Moire patterns -
Image Pyramids and Blending
Light and Color Computational Photography Derek Hoiem, University of Illinois 09/08/11 “Empire of Light”, Magritte.
Color Based on Kristen Grauman's Slides for Computer Vision.
Lenses: Focus and Defocus A lens focuses light onto the film – There is a specific distance at which objects are “in focus” other points project to a “circle.
Physiology of Vision: a swift overview Pixels to Percepts A. Efros, CMU, Spring 2011 Some figures from Steve Palmer.
Computational Photography Derek Hoiem, University of Illinois
Image Resampling CS4670: Computer Vision Noah Snavely.
Physiology of Vision: a swift overview : Learning-Based Methods in Vision A. Efros, CMU, Spring 2009 Some figures from Steve Palmer.
Light and Color Jehee Lee Seoul National University With a lot of slides stolen from Alexei Efros, Stephen Palmer, Fredo Durand and others.
Physiology of Vision: a swift overview : Advanced Machine Perception A. Efros, CMU, Spring 2006 Some figures from Steve Palmer.
Image Resampling CS4670: Computer Vision Noah Snavely.
Lecture 3: Edge detection CS4670/5670: Computer Vision Kavita Bala From Sandlot ScienceSandlot Science.
Recap from Lecture 2 Pinhole camera model Perspective projections Lenses and their flaws Focus Depth of field Focal length and field of view Chapter 2.
776 Computer Vision Jan-Michael Frahm Fall Last class.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Capturing Light… in man and machine CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2015.
COMPUTER VISION D10K-7C02 CV03: Light and Optics Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Projects Project 1a due this Friday Project 1b will go out on Friday to be done in pairs start looking for a partner now.
CSE 185 Introduction to Computer Vision
Recall: Gaussian smoothing/sampling G 1/4 G 1/8 Gaussian 1/2 Solution: filter the image, then subsample Filter size should double for each ½ size reduction.
Image Resampling & Interpolation
Capturing Light… in man and machine
Capturing Light… in man and machine
Color Image Processing
CS 4501: Introduction to Computer Vision Sparse Feature Detectors: Harris Corner, Difference of Gaussian Connelly Barnes Slides from Jason Lawrence, Fei.
Physiology of Vision: a swift overview
Capturing Light… in man and machine
Physiology of Vision: a swift overview
Image Sampling Moire patterns
Image Sampling Moire patterns
Multiscale Analysis of Images
More Image Manipulation
Capturing Light… in man and machine
Samuel Cheng Slide credits: Noah Snavely
Filtering Part 2: Image Sampling
Image Sampling Moire patterns
Image Resampling & Interpolation
Resampling.
Samuel Cheng Slide credits: Noah Snavely
Computational Photography Derek Hoiem, University of Illinois
Presentation transcript:

Recap from Friday Pinhole camera model Perspective projections Lenses and their flaws Focus Depth of field Focal length and field of view

What is wrong with this picture?

What is wrong with this picture?

Capturing Light… in man and machine Many slides by Alexei A. Efros CS 195g: Computational Photography James Hays, Brown, Spring 2010

Image Formation Digital Camera Film The Eye

Digital camera A digital camera replaces film with a sensor array Each cell in the array is light-sensitive diode that converts photons to electrons Two common types Charge Coupled Device (CCD) CMOS http://electronics.howstuffworks.com/digital-camera.htm Slide by Steve Seitz

Sensor Array CMOS sensor

Sampling and Quantization

Interlace vs. progressive scan http://www.axis.com/products/video/camera/progressive_scan.htm Slide by Steve Seitz

Progressive scan http://www.axis.com/products/video/camera/progressive_scan.htm Slide by Steve Seitz

Interlace http://www.axis.com/products/video/camera/progressive_scan.htm Slide by Steve Seitz

The Eye The human eye is a camera! Iris - colored annulus with radial muscles Pupil - the hole (aperture) whose size is controlled by the iris What’s the “film”? photoreceptor cells (rods and cones) in the retina Slide by Steve Seitz

The Retina

Retina up-close Tapetum lucidum Light

Two types of light-sensitive receptors Cones cone-shaped less sensitive operate in high light color vision Rods rod-shaped highly sensitive operate at night gray-scale vision © Stephen E. Palmer, 2002

Rod / Cone sensitivity The famous sock-matching problem…

Distribution of Rods and Cones Night Sky: why are there more stars off-center? © Stephen E. Palmer, 2002

Eye Movements Saccades Microsaccades Ocular microtremor (OMT)

Electromagnetic Spectrum At least 3 spectral bands required (e.g. R,G,B) Human Luminance Sensitivity Function http://www.yorku.ca/eye/photopik.htm

…because that’s where the Visible Light Why do we see light of these wavelengths? …because that’s where the Sun radiates EM energy © Stephen E. Palmer, 2002

The Physics of Light Any patch of light can be completely described physically by its spectrum: the number of photons (per time unit) at each wavelength 400 - 700 nm. © Stephen E. Palmer, 2002

The Physics of Light Some examples of the spectra of light sources © Stephen E. Palmer, 2002

The Physics of Light Some examples of the reflectance spectra of surfaces Red 400 700 Yellow 400 700 Blue 400 700 Purple 400 700 % Photons Reflected Wavelength (nm) © Stephen E. Palmer, 2002

The Psychophysical Correspondence There is no simple functional description for the perceived color of all lights under all viewing conditions, but …... A helpful constraint: Consider only physical spectra with normal distributions mean area variance © Stephen E. Palmer, 2002

The Psychophysical Correspondence Mean Hue # Photons Wavelength © Stephen E. Palmer, 2002

The Psychophysical Correspondence Variance Saturation Wavelength # Photons © Stephen E. Palmer, 2002

The Psychophysical Correspondence Area Brightness # Photons Wavelength © Stephen E. Palmer, 2002

Physiology of Color Vision Three kinds of cones: Why are M and L cones so close? Why are there 3? © Stephen E. Palmer, 2002

More Spectra metamers

Color Sensing in Camera (RGB) 3-chip vs. 1-chip: quality vs. cost Why more green? Why 3 colors? http://www.cooldictionary.com/words/Bayer-filter.wikipedia Slide by Steve Seitz

Practical Color Sensing: Bayer Grid Estimate RGB at ‘G’ cells from neighboring values http://www.cooldictionary.com/ words/Bayer-filter.wikipedia Slide by Steve Seitz

RGB color space RGB cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation? Slide by Steve Seitz

HSV Hue, Saturation, Value (Intensity) RGB cube on its vertex Decouples the three components (a bit) Use rgb2hsv() and hsv2rgb() in Matlab Slide by Steve Seitz

Project #1 How to compare R,G,B channels? No right answer Sum of Squared Differences (SSD): Normalized Correlation (NCC):

Image half-sizing This image is too big to fit on the screen. How can we reduce it? How to generate a half- sized version?

Image sub-sampling 1/8 1/4 Throw away every other row and column to create a 1/2 size image - called image sub-sampling Slide by Steve Seitz

Image sub-sampling 1/2 1/4 (2x zoom) 1/8 (4x zoom) Aliasing! What do we do? Slide by Steve Seitz

Gaussian (lowpass) pre-filtering Solution: filter the image, then subsample Filter size should double for each ½ size reduction. Why? Slide by Steve Seitz

Subsampling with Gaussian pre-filtering Slide by Steve Seitz

Compare with... 1/2 1/4 (2x zoom) 1/8 (4x zoom) Slide by Steve Seitz

Gaussian (lowpass) pre-filtering Solution: filter the image, then subsample Filter size should double for each ½ size reduction. Why? How can we speed this up? Slide by Steve Seitz

Image Pyramids In computer graphics, a mip map [Williams, 1983] Known as a Gaussian Pyramid [Burt and Adelson, 1983] In computer graphics, a mip map [Williams, 1983] A precursor to wavelet transform Slide by Steve Seitz

A bar in the big images is a hair on the zebra’s nose; in smaller images, a stripe; in the smallest, the animal’s nose Figure from David Forsyth

What are they good for? Improve Search Pre-computation Search over translations Like project 1 Classic coarse-to-fine strategy Search over scale Template matching E.g. find a face at different scales Pre-computation Need to access image at different blur levels Useful for texture mapping at different resolutions (called mip-mapping)

Gaussian pyramid construction filter mask Repeat Filter Subsample Until minimum resolution reached can specify desired number of levels (e.g., 3-level pyramid) The whole pyramid is only 4/3 the size of the original image! Slide by Steve Seitz