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.

Slides:



Advertisements
Similar presentations
Single-view Metrology and Camera Calibration
Advertisements

Computational Photography: Color perception, light spectra, contrast Connelly Barnes.
Color Image Processing
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Fall 2014.
Chapter 26 Properties of Light. Origin and Nature of Light Light originates with accelerated motion of electrons. It is an electromagnetic wave phenomenon.
Projection Readings Szeliski 2.1. Projection Readings Szeliski 2.1.
Modeling Light : Rendering and Image Processing Alexei Efros.
Lecture 30: Light, color, and reflectance CS4670: Computer Vision Noah Snavely.
Announcements. Projection Today’s Readings Nalwa 2.1.
Basic Principles of Imaging and Lenses. Light Light Photons ElectromagneticRadiation.
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2006 Some figures from Steve Seitz, Steve Palmer, Paul Debevec,
Announcements Mailing list (you should have received messages) Project 1 additional test sequences online Talk today on “Lightfield photography” by Ren.
CSCE641: Computer Graphics Image Formation Jinxiang Chai.
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 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.
Colors and sensors Slides from Bill Freeman, Fredo Durand, Rob Fergus, and David Forsyth, Alyosha Efros.
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 02/26/15 1.
Recap from Friday Pinhole camera model Perspective projections Lenses and their flaws Focus Depth of field Focal length and field of view.
Light and Color Computational Photography Derek Hoiem, University of Illinois 09/08/11 “Empire of Light”, Magritte.
EEM 561 Machine Vision Week 10 :Image Formation and Cameras
Building a Real Camera.
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
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 01/25/11 1.
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.
Light and Shading Computer Vision Derek Hoiem, University of Illinois 01/19/12 “Empire of Light”, Magritte.
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.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
776 Computer Vision Jan-Michael Frahm Fall Last class.
CSE 185 Introduction to Computer Vision Cameras. Camera models –Pinhole Perspective Projection –Affine Projection –Spherical Perspective Projection Camera.
Histograms and Color Balancing Computational Photography Derek Hoiem, University of Illinois 09/10/15 “Empire of Light”, Magritte.
3D Imaging Midterm Review.
Pixels and Image Filtering Computer Vision Derek Hoiem, University of Illinois 02/01/11 Graphic:
Histograms and Color Balancing Computational Photography Derek Hoiem, University of Illinois 09/13/11 “Empire of Light”, Magritte.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Instructor: Mircea Nicolescu Lecture 3 CS 485 / 685 Computer Vision.
More with Pinhole + Single-view Metrology
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.
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 18: Cameras CS4670 / 5670: Computer Vision KavitaBala Source: S. Lazebnik.
CSE 185 Introduction to Computer Vision
PNU Machine Vision Lecture 2a: Cameras Source: S. Lazebnik.
Welcome to a class with some content!
Capturing Light… in man and machine
Capturing Light… in man and machine
Color Image Processing
Color Image Processing
Physiology of Vision: a swift overview
Capturing Light… in man and machine
Color Image Processing
Pixels and Image Filtering
Welcome to a class with some content!
CS 2770: Computer Vision Linear Algebra and Matlab
CS 1674: Intro to Computer Vision Linear Algebra Review
Lecture 13: Cameras and geometry
Color Image Processing
Capturing Light… in man and machine
Announcements Midterm out today Project 1 demos.
Projection Readings Nalwa 2.1.
Projection Readings Szeliski 2.1.
Announcements Midterm out today Project 1 demos.
Computational Photography Derek Hoiem, University of Illinois
Histograms and Color Balancing
Presentation transcript:

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 textbook: Chapter 2 of Szeliski

Slide Credit: Saverese Recap - Projection matrix x: Image Coordinates: (u,v,1) K: Intrinsic Matrix (3x3) R: Rotation (3x3) t: Translation (3x1) X: World Coordinates: (X,Y,Z,1) OwOw iwiw kwkw jwjw R,T

Slide Credit: Saverese Recap - Projection matrix x: Image Coordinates: (u,v,1) K: Intrinsic Matrix (3x3) R: Rotation (3x3) t: Translation (3x1) X: World Coordinates: (X,Y,Z,1)

Adding a lens A lens focuses light onto the film There is a specific distance at which objects are “in focus” –other points project to a “circle of confusion” in the image Changing the shape of the lens changes this distance “circle of confusion”

Focal length, aperture, depth of field A lens focuses parallel rays onto a single focal point focal point at a distance f beyond the plane of the lens Aperture of diameter D restricts the range of rays focal point F optical center (Center Of Projection) Slide source: Seitz

Depth of field Changing the aperture size or focal length affects depth of field f / 5.6 f / 32 Flower images from Wikipedia Slide source: Seitz

Shrinking the aperture Why not make the aperture as small as possible? Less light gets through Diffraction effects Slide by Steve Seitz

Shrinking the aperture Slide by Steve Seitz

Capturing Light… in man and machine CS 143: Computer Vision James Hays, Brown, Fall 2013 Many slides by Alexei A. Efros

Image Formation Digital Camera The Eye Film

A photon’s life choices Absorption Diffusion Reflection Transparency Refraction Fluorescence Subsurface scattering Phosphorescence Interreflection λ light source ?

A photon’s life choices Absorption Diffusion Reflection Transparency Refraction Fluorescence Subsurface scattering Phosphorescence Interreflection λ light source

A photon’s life choices Absorption Diffuse Reflection Reflection Transparency Refraction Fluorescence Subsurface scattering Phosphorescence Interreflection λ light source

A photon’s life choices Absorption Diffusion Specular Reflection Transparency Refraction Fluorescence Subsurface scattering Phosphorescence Interreflection λ light source

A photon’s life choices Absorption Diffusion Reflection Transparency Refraction Fluorescence Subsurface scattering Phosphorescence Interreflection λ light source

A photon’s life choices Absorption Diffusion Reflection Transparency Refraction Fluorescence Subsurface scattering Phosphorescence Interreflection λ light source

A photon’s life choices Absorption Diffusion Reflection Transparency Refraction Fluorescence Subsurface scattering Phosphorescence Interreflection λ1λ1 light source λ2λ2

A photon’s life choices Absorption Diffusion Reflection Transparency Refraction Fluorescence Subsurface scattering Phosphorescence Interreflection λ light source

A photon’s life choices Absorption Diffusion Reflection Transparency Refraction Fluorescence Subsurface scattering Phosphorescence Interreflection t=1 light source t=n

A photon’s life choices Absorption Diffusion Reflection Transparency Refraction Fluorescence Subsurface scattering Phosphorescence Interreflection λ light source (Specular Interreflection)

Lambertian Reflectance In computer vision, surfaces are often assumed to be ideal diffuse reflectors with know dependence on viewing direction.

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 Slide by Steve Seitz

Sensor Array CMOS sensor

Sampling and Quantization

Interlace vs. progressive scan by Steve Seitz

Progressive scan by Steve Seitz

Interlace by Steve Seitz

Rolling Shutter

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 Light

What humans don’t have: tapetum lucidum

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

Rod / Cone sensitivity

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

Eye Movements Saccades Can be consciously controlled. Related to perceptual attention. 200ms to initiation, 20 to 200ms to carry out. Large amplitude. Microsaccades Involuntary. Smaller amplitude. Especially evident during prolonged fixation. Function debated. Ocular microtremor (OMT) involuntary. high frequency (up to 80Hz), small amplitude.

Electromagnetic Spectrum Human Luminance Sensitivity Function

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

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 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 Wavelength (nm) % Photons Reflected Red Yellow Blue Purple © 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 area mean variance © Stephen E. Palmer, 2002

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

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

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

Three kinds of cones: Physiology of Color Vision Why are M and L cones so close? Why are there 3?

Impossible Colors Can you make the cones respond in ways that typical light spectra never would?

Tetrachromatism Most birds, and many other animals, have cones for ultraviolet light. Some humans, mostly female, seem to have slight tetrachromatism. Bird cone responses

More Spectra metamers

Color Sensing in Camera (RGB) 3-chip vs. 1-chip: quality vs. cost Why more green? Why 3 colors? Slide by Steve Seitz

Practical Color Sensing: Bayer Grid Estimate RGB at ‘G’ cells from neighboring values Slide by Steve Seitz

Color Image R G B

Images in Matlab Images represented as a matrix Suppose we have a NxM RGB image called “im” –im(1,1,1) = top-left pixel value in R-channel –im(y, x, b) = y pixels down, x pixels to right in the b th channel –im(N, M, 3) = bottom-right pixel in B-channel imread(filename) returns a uint8 image (values 0 to 255) –Convert to double format (values 0 to 1) with im2double R G B row column

Color spaces How can we represent color?

Color spaces: RGB 0,1,0 0,0,1 1,0,0 Image from: Some drawbacks Strongly correlated channels Non-perceptual Default color space R (G=0,B=0) G (R=0,B=0) B (R=0,G=0)

Color spaces: HSV Intuitive color space H (S=1,V=1) S (H=1,V=1) V (H=1,S=0)

Color spaces: YCbCr Y (Cb=0.5,Cr=0.5) Cb (Y=0.5,Cr=0.5) Cr (Y=0.5,Cb=05) Y=0Y=0.5 Y=1 Cb Cr Fast to compute, good for compression, used by TV

Color spaces: L*a*b* “Perceptually uniform”* color space L (a=0,b=0) a (L=65,b=0) b (L=65,a=0)

If you had to choose, would you rather go without luminance or chrominance?

Most information in intensity Only color shown – constant intensity

Most information in intensity Only intensity shown – constant color

Most information in intensity Original image

Back to grayscale intensity

Next Lecture Image Filtering - the core idea for project 1, and all of image processing. Project 1 is much simpler than the remaining projects.