Color Computational Photography MIT Feb. 14, 2006 Bill Freeman and Fredo Durand.

Slides:



Advertisements
Similar presentations
1 Color Kyongil Yoon VISA Color Chapter 6, “Computer Vision: A Modern Approach” The experience of colour Caused by the vision system responding.
Advertisements

The Ray Box: Part Two. Law of Refraction The law of refraction for light states that a light ray is bent away from its original direction when it passes.
P H Y S I C S Chapter 8: Light and Optics Section 8A: Light and Refraction.
Color Mixing Additive vs. Subtractive
The eyes have three different kinds of color receptors; One kind is most sensitive to short wavelengths, one to middle wavelengths, and one to long wavelengths.
School of Computing Science Simon Fraser University
Lecture 6 Color and Texture
Algorithms and Applications in Computer Vision Lihi Zelnik-Manor
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
Color Mixing There are two ways to control how much red, green, and blue light reaches the eye: “Additive Mixing” Starting with black, the right amount.
Computer Vision Color Marc Pollefeys COMP 256. Computer Vision Last class point source model N S N S.
What is color for?.
Colors and sensors Slides from Bill Freeman, Fredo Durand, Rob Fergus, and David Forsyth, Alyosha Efros.
Image Formation Mohan Sridharan Based on slides created by Edward Angel CS4395: Computer Graphics 1.
Basic Color Theory Susan Farnand
CSC 461: Lecture 2 1 CSC461 Lecture 2: Image Formation Objectives Fundamental imaging notions Fundamental imaging notions Physical basis for image formation.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
1/22/04© University of Wisconsin, CS559 Spring 2004 Last Time Course introduction Image basics.
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.
Exam 2: November 8 th –If you will need accommodations, please make sure you have documentation from the University Office of Disability Services –It will.
Additive Primary Colors and Subtractive Primary Colors
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.
By Talar Hagopian and Rima Debs École la Dauversière, Montreal, June 2001 Content validation and linguistic revision : Karine Lefebvre Translated from.
09/05/02© University of Wisconsin, CS559 Spring 2002 Last Time Course introduction Assignment 1 (not graded, but necessary) –View is part of Project 1.
How do we perceive colour? How do colours add?. What is colour? Light comes in many “colours”. Light is an electromagnetic wave. Each “colour” is created.
1 Light and the EM spectrum The H.V.S. and Color Perception.
Color ECE 847: Digital Image Processing Stan Birchfield Clemson University.
CS559-Computer Graphics Copyright Stephen Chenney 2001 The Human Eye Graphics is concerned with the visual transmission of information How do we see? –Light.
Digital Color Basics Rob Snyder June 2011.
1Computer Graphics Lecture 3 - Image Formation John Shearer Culture Lab – space 2
Computer Graphics I, Fall 2008 Image Formation.
1 Image Formation. 2 Objectives Fundamental imaging notions Physical basis for image formation ­Light ­Color ­Perception Synthetic camera model Other.
Color and color constancy 6.869, MIT Bill Freeman Antonio Torralba Feb. 22, 2011.
Chapter 3: Colorimetry How to measure or specify color? Color dictionary?
Light and Color Jehee Lee Seoul National University With a lot of slides stolen from Alexei Efros, Stephen Palmer, Fredo Durand and others.
9/9/04© University of Wisconsin, CS559 Spring 2004 Last Time Course introduction Digital Images –The difference between an image and a display –Ways to.
Colour Theory Helge Seetzen University of British Columbia Presentation and Outline at
Color. Color 1. SELECTIVE REFLECTION Most objects "reflect" rather than emit light. Radiations that match the resonant frequencies of the atoms are.
CSC361/ Digital Media Burg/Wong
CS654: Digital Image Analysis Lecture 29: Color Image Processing.
Three-Receptor Model Designing a system that can individually display thousands of colors is very difficult Instead, colors can be reproduced by mixing.
COLOR.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Color Theory. Which colours is white light made of?
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
Colors of Pigment The primary colors of pigment are magenta, cyan, and yellow. [
Color.
Chapter 4: Color in Image and Video
Color and Radiometry Digital Image Synthesis Yung-Yu Chuang 10/25/2007 with slides by Pat Hanrahan and Matt Pharr.
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.
Color Measurement and Reproduction Eric Dubois. How Can We Specify a Color Numerically? What measurements do we need to take of a colored light to uniquely.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Color Computer Vision Martin Jagersand Readings: – Szeliski, – Forsyth and Ponce, Chapter 6 What is the physics of color? How is color sensed? How.
Digital Image Processing Lecture 12: Color Image Processing Naveed Ejaz.
Color Models Light property Color models.
ECE 638: Principles of Digital Color Imaging Systems
IMAGE PROCESSING COLOR IMAGE PROCESSING
Color September, 30.
Design Concepts: Module A: The Science of Color
COSC579: Color and Perception
Color April 16th, 2015 Yong Jae Lee UC Davis.
What color are these paint chips?
Chapter II Color Theory.
Why does a blue shirt look blue?
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Colour Theories.
Digital Image Synthesis Yung-Yu Chuang 10/22/2009
Presentation transcript:

Color Computational Photography MIT Feb. 14, 2006 Bill Freeman and Fredo Durand

Why does a visual system need color?

Why does a visual system need color? (an incomplete list…) To tell what food is edible. To distinguish material changes from shading changes. To group parts of one object together in a scene. To find people’s skin. Check whether a person’s appearance looks normal/healthy. To compress images

Lecture outline Color physics. Color representation and matching.

color

Spectral colors

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

How measure those spectra: Spectrophotometer Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995 (just like Newton’s diagram…)

Two illumination spectra Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995 Blue sky Tungsten light bulb

Spectral albedoes for several different leaves, with color names attached. Notice that different colours typically have different spectral albedo, but that different spectral albedoes may result in the same perceived color (compare the two whites). Spectral albedoes are typically quite smooth functions. Measurements by E.Koivisto. Forsyth, 2002 Some reflectance spectra

Questions?

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.

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

Overhead projector demo Subtractive color mixing

Crayons

Questions?

Low-dimensional models for color spectra How to find a linear model for color spectra: --form a matrix, D, of measured spectra, 1 spectrum per column. --[u, s, v] = svd(D) satisfies D = u*s*v‘ --the first n columns of u give the best (least-squares optimal) n-dimensional linear bases for the data, D:

Basis functions for Macbeth color checker Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

n-dimensional linear models for color spectra Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995 n = 3 n = 2 n = 1

n-dimensional linear models for color spectra Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995 n = 3 n = 2 n = 1

n-dimensional linear models for color spectra Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995 n = 3 n = 2 n = 1

Outline Color physics. Color representation and matching.

Why specify color numerically? Accurate color reproduction is commercially valuable –Many products are identified by color (“golden” arches); Few color names are widely recognized by English speakers - –About 10; other languages have fewer/more, but not many more. –It’s common to disagree on appropriate color names. Color reproduction problems increased by prevalence of digital imaging - eg. digital libraries of art. –How do we ensure that everyone sees the same color? Forsyth & Ponce

Color standards are important in industry

An assumption that sneaks in here For now we will assume that the spectrum of the light arriving at your eye completely determines the perceived color. But we know color appearance really depends on: –The illumination –Your eye’s adaptation level –The colors and scene interpretation surrounding the observed color.

Color matching experiment Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

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

Measure color by color-matching paradigm Pick a set of 3 primary color lights. Find the amounts of each primary, e 1, e 2, e 3, needed to match some spectral signal, t. Those amounts, e 1, e 2, e 3, describe the color of t. If you have some other spectral signal, s, and s matches t perceptually, then e 1, e 2, e 3 will also match s, by Grassman’s laws. Why this is useful—it lets us: –Predict the color of a new spectral signal –Translate to representations using other primary lights.

Goal: compute the color match for any color signal for any set of primary colors Examples of why you’d want to do that: –Want to paint a carton of Kodak film with the Kodak yellow color. –Want to match skin color of a person in a photograph printed on an ink jet printer to their true skin color. –Want the colors in the world, on a monitor, and in a print format to all look the same.

How to compute the color match for any color signal for any set of primary colors Pick a set of primaries, Measure the amount of each primary, needed to match a monochromatic light, at each spectral wavelength (pick some spectral step size). These are called the color matching functions.

Color matching functions for a particular set of monochromatic primaries p 1 = nm p 2 = nm p 3 = nm Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

Using the color matching functions to predict the primary match to a new spectral signal We know that a monochromatic light of wavelength will be matched by the amounts of each primary. And any spectral signal can be thought of as a linear combination of very many monochromatic lights, with the linear coefficient given by the spectral power at each wavelength.

Using the color matching functions to predict the primary match to a new spectral signal Store the color matching functions in the rows of the matrix, C Let the new spectral signal be described by the vector t. Then the amounts of each primary needed to match t are:

Internal review So, for any set of primary colors, if we are given the spectral color matching functions for a set of primary lights We can calculate the amounts of each primary needed to give a perceptual match to any spectral signal.

Suppose you use one set of primaries and I use another? We address this in 2 ways: –Learn how to translate between primaries –Standardize on a few sets of favored primaries.

How do you translate colors between different systems of primaries? p 1 = ( … 0 1 0) T p 2 = (0 0 … ) T p 3 = ( … ) T Primary spectra, P Color matching functions, C p’ 1 = ( …. 2.1) T p’ 2 = ( … 0.3 0) T p’ 3 = ( …. 0 0) T Primary spectra, P’ Color matching functions, C’ Any input spectrum, t The amount of each primary in P needed to match the color with spectrum t. The spectrum of a perceptual match to t, made using the primaries P’ The color of that match to t, described by the primaries, P. The amount of each P’ primary needed to match t

So, how to translate from the color in one set of primaries to that in another: P’ are the old primaries C are the new primaries’ color matching functions C P’ a 3x3 matrix The values of the 3 primaries, in the primed system The values of the 3 primaries, in the unprimed system

And, by the way, color matching functions translate like this: But this holds for any input spectrum, t, so… a 3x3 matrix that transforms from the color representation in one set of primaries to that of another. P’ are the old primaries C are the new primaries’ color matching functions C P’ From earlier slide

What’s the machinery in the eye?

Eye Photoreceptor responses (Where do you think the light comes in?)

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

Human eye photoreceptor spectral sensitivities Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995 What colors would these look like?

Are the color matching functions we observe obtainable from some 3x3 matrix transformation of the human photopigment response curves? (Because that’s how color matching functions translate).

Color matching functions (for a particular set of spectral primaries

Comparison of color matching functions with best 3x3 transformation of cone responses Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

Internal summary What are colors? –Arise from power spectrum of light. How represent colors: –Pick primaries –Measure color matching functions (CMF’s) –Matrix mult power spectrum by CMF’s to find color as the 3 primary color values. How share color descriptions between people? –Translate colors between systems of primaries –Standardize on a few sets of primaries.