Light and Color Jehee Lee Seoul National University With a lot of slides stolen from Alexei Efros, Stephen Palmer, Fredo Durand and others.

Slides:



Advertisements
Similar presentations
13- 1 Chapter 13: Color Processing 。 Color: An important descriptor of the world 。 The world is itself colorless 。 Color is caused by the vision system.
Advertisements

1 Color Kyongil Yoon VISA Color Chapter 6, “Computer Vision: A Modern Approach” The experience of colour Caused by the vision system responding.
Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
Computational Photography: Color perception, light spectra, contrast Connelly Barnes.
Color Image Processing
School of Computing Science Simon Fraser University
Algorithms and Applications in Computer Vision Lihi Zelnik-Manor
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2006 Some figures from Steve Seitz, Steve Palmer, Paul Debevec,
What is color for?.
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.
COLOR and the human response to light
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Colors and sensors Slides from Bill Freeman, Fredo Durand, Rob Fergus, and David Forsyth, Alyosha Efros.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Recap from Friday Pinhole camera model Perspective projections Lenses and their flaws Focus Depth of field Focal length and field of view.
CS559-Computer Graphics Copyright Stephen Chenney Color Recap The physical description of color is as a spectrum: the intensity of light at each wavelength.
Why Care About Color? Accurate color reproduction is commercially valuable - e.g. Kodak yellow, painting a house Color reproduction problems increased.
Color Monday, Feb 7 Prof. Kristen Grauman UT-Austin.
Color Models AM Radio FM Radio + TV Microwave Infrared Ultraviolet Visible.
Light and Color Computational Photography Derek Hoiem, University of Illinois 09/08/11 “Empire of Light”, Magritte.
Colour in Computer Graphics Mel Slater. Outline: This time Introduction Spectral distributions Simple Model for the Visual System Simple Model for an.
Light, Color and Imaging. Light The Electromagnetic Spectrum: E = h.
9/14/04© University of Wisconsin, CS559 Spring 2004 Last Time Intensity perception – the importance of ratios Dynamic Range – what it means and some of.
Color Computational Photography MIT Feb. 14, 2006 Bill Freeman and Fredo Durand.
1 Light and the EM spectrum The H.V.S. and Color Perception.
Any questions about the current assignment? (I’ll do my best to help!)
Chapter 3: Colorimetry How to measure or specify color? Color dictionary?
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
Physiology of Vision: a swift overview : Learning-Based Methods in Vision A. Efros, CMU, Spring 2009 Some figures from Steve Palmer.
Physiology of Vision: a swift overview : Advanced Machine Perception A. Efros, CMU, Spring 2006 Some figures from Steve Palmer.
Color. Contents Light and color The visible light spectrum Primary and secondary colors Color spaces –RGB, CMY, YIQ, HLS, CIE –CIE XYZ, CIE xyY and CIE.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
CSC361/ Digital Media Burg/Wong
COLORCOLOR Angel 1.4 and 2.4 J. Lindblad
Color Processing : Rendering and Image Processing Alexei Efros …with most figures shamelessly stolen from Forsyth & Ponce and Gonzalez & Woods.
Sensory Information Processing
Mixing the broad distributions of green and red yields yellow. Although the resulting spectral distribution is very different from spectral yellow. If.
Three-Receptor Model Designing a system that can individually display thousands of colors is very difficult Instead, colors can be reproduced by mixing.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
CS-321 Dr. Mark L. Hornick 1 Color Perception. CS-321 Dr. Mark L. Hornick 2 Color Perception.
Chapter 4: Color in Image and Video
Capturing Light… in man and machine CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2015.
Hebrew University Image Processing Exercise Class 12: Color Many slides from Freeman and Durand Color Exercise Class 12.
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Color Models Light property Color models.
Half Toning Dithering RGB CMYK Models
Capturing Light… in man and machine
Color September, 30.
Color Image Processing
Color Image Processing
(c) University of Wisconsin, CS559 Spring 2002
COLOR space Mohiuddin Ahmad.
Physiology of Vision: a swift overview
Capturing Light… in man and machine
Color Image Processing
Color & Light CMSC 435/634.
© University of Wisconsin, CS559 Spring 2004
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Color Image Processing
Capturing Light… in man and machine
Slides taken from Scott Schaefer
Color Models l Ultraviolet Infrared 10 Microwave 10
Color Theory What is color? How do we perceive it?
Presentation transcript:

Light and Color Jehee Lee Seoul National University With a lot of slides stolen from Alexei Efros, Stephen Palmer, Fredo Durand and others

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

The Retina

Retina up-close Light

© 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 The famous sock-matching problem…

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

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

Radiometry

Radiant exitance Irradiance

Radiometry Radiance Radiant intensity

Photometry

Horn, 1986 Radiometry for color Spectral radiance: power in a specified direction, per unit area, per unit solid angle, per unit wavelength Spectral irradiance: incident power per unit area, per unit wavelength

Simplified rendering models: reflectance Often are more interested in relative spectral composition than in overall intensity, so the spectral BRDF computation simplifies a wavelength-by-wavelength multiplication of relative energies..* = Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

.* = Simplified rendering models: transmittance Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

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

More Spectra metamers

Metameric Whites

Metameric lights Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

Color Matching

Color matching experiment 1

p 1 p 2 p 3

Color matching experiment 1 p 1 p 2 p 3

Color matching experiment 1 p 1 p 2 p 3 The primary color amounts needed for a match

Color matching experiment 2

p 1 p 2 p 3

Color matching experiment 2 p 1 p 2 p 3

Color matching experiment 2 p 1 p 2 p 3 We say a “negative” amount of p 2 was needed to make the match, because we added it to the test color’s side. The primary color amounts needed for a match: p 1 p 2 p 3

Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

Grassman’s Laws For color matches: –symmetry: U=V V=U –transitivity: U=V and V=W => U=W –proportionality: U=V tU=tV –additivity: if any two (or more) of the statements U=V, W=X, (U+W)=(V+X) are true, then so is the third These statements are as true as any biological law. They mean that additive color matching is linear. Forsyth & Ponce

Color Matching Functions p 1 = nm p 2 = nm p 3 = nm

Since we can define colors using almost any set of primary colors, let ’ s agree on a set of primaries and color matching functions for the world to use …

CIE XYZ color space Commission Internationale d ’ Eclairage, 1931 “… as with any standards decision, there are some irratating aspects of the XYZ color-matching functions as well … no set of physically realizable primary lights that by direct measurement will yield the color matching functions. ” “ Although they have served quite well as a technical standard, and are understood by the mandarins of vision science, they have served quite poorly as tools for explaining the discipline to new students and colleagues outside the field. ” Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

CIE XYZ: Color matching functions are positive everywhere, but primaries are “imaginary” (require adding light to the test color’s side in a color matching experiment). Usually compute x, y, where x=X/(X+Y+Z) y=Y/(X+Y+Z) Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

A qualitative rendering of the CIE (x,y) space. The blobby region represents visible colors. There are sets of (x, y) coordinates that don’t represent real colors, because the primaries are not real lights (so that the color matching functions could be positive everywhere). Forsyth & Ponce

CIE chromaticity diagram encompasses all the perceivable colors in 2D space (x,y) by ignoring the luminance

A plot of the CIE (x,y) space. We show the spectral locus (the colors of monochromatic lights) and the black- body locus (the colors of heated black-bodies). I have also plotted the range of typical incandescent lighting. Forsyth & Ponce

Pure wavelength in chromaticity diagram Blue: big value of Z, therefore x and y small

Pure wavelength in chromaticity diagram Then y increases

Pure wavelength in chromaticity diagram Green: y is big

Pure wavelength in chromaticity diagram Yellow: x & y are equal

Pure wavelength in chromaticity diagram Red: big x, but y is not null

Color Gamut The color gamut for n primaries in CIE chromaticity diagram is the convexhull of the color positions

Color Gamut

Complementary Colors Illuminant C (Average sunlight)

Dominant Wavelength The spectral color which can be mixed with white light in order to reproduce the desired color C 2 have spectral distributions with subtractive dominant wave lengths

CIE color space Can think of X, Y, Z as coordinates Linear transform from typical RGB or LMS Always positive (because physical spectrum is positive and matching curves are positives) Note that many points in XYZ do not correspond to visible colors!

Color Gamut of RGB

XYZ vs. RGB Linear transform XYZ is rarely used for storage There are tons of flavors of RGB –sRGB, Adobe RGB –Different matrices! XYZ is more standardized XYZ can reproduce all colors with positive values XYZ is not realizable physically !! –What happens if you go “ off ” the diagram –In fact, the orthogonal (synthesis) basis of XYZ requires negative values.

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

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

Color names for cartoon spectra nm red green blue nm cyan magenta yellow nm

Additive color mixing nm red green Red and green make… nm yellow Yellow! When colors combine by adding the color spectra. Example color displays that follow this mixing rule: CRT phosphors, multiple projectors aimed at a screen, Polachrome slide film.

Simplified rendering models: reflectance Often are more interested in relative spectral composition than in overall intensity, so the spectral BRDF computation simplifies a wavelength-by-wavelength multiplication of relative energies..* = Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

Subtractive color mixing When colors combine by multiplying the color spectra. Examples that follow this mixing rule: most photographic films, paint, cascaded optical filters, crayons nm cyan yellow nm Cyan and yellow (in crayons, called “blue” and yellow) make… nm Green! green

NTSC color components: Y, I, Q

NTSC - RGB

 subtractive model (colors of pigments are subtracted)  used in color output devices  CMYK color model - K for black ink for reducing the amount of ink  CMY color model

Uniform color spaces McAdam ellipses (next slide) demonstrate that differences in x,y are a poor guide to differences in color Construct color spaces so that differences in coordinates are a good guide to differences in color. Forsyth & Ponce

Variations in color matches on a CIE x, y space. At the center of the ellipse is the color of a test light; the size of the ellipse represents the scatter of lights that the human observers tested would match to the test color; the boundary shows where the just noticeable difference is. The ellipses on the left have been magnified 10x for clarity; on the right they are plotted to scale. The ellipses are known as MacAdam ellipses after their inventor. The ellipses at the top are larger than those at the bottom of the figure, and that they rotate as they move up. This means that the magnitude of the difference in x, y coordinates is a poor guide to the difference in color. Forsyth & Ponce

Perceptually Uniform Space: MacAdam In perceptually uniform color space, Euclidean distances reflect perceived differences between colors MacAdam ellipses (areas of unperceivable differences) become circles Non-linear mapping, many solutions have been proposed Source: [Wyszecki and Stiles ’82]

CIELAB (a.k.a. CIE L*a*b*) Source: [Wyszecki and Stiles ’82] The reference perceptually uniform color space L: lightness a and b: color opponents X 0, Y 0, and Z 0 are used to color- balance: they ’ re the color of the reference white

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

Practical Color Sensing: Bayer Grid Estimate RGB at ‘G’ cels from neighboring values words/Bayer-filter.wikipedia

White Balance Chromatic adaptation –If the light source is gradually changed in color, humans will adapt and still perceive the color of the surface the same

Color Temperature Blackbody radiators