Top Banner
Color and color constancy 6.869, MIT (Bill Freeman) Antonio Torralba Sept. 12, 2013 Wednesday, September 11, 13
170

Color and color constancy - MIT

Feb 12, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Color and color constancy - MIT

Color and color constancy

6.869, MIT(Bill Freeman)

Antonio Torralba

Sept. 12, 2013

Wednesday, September 11, 13

Page 2: Color and color constancy - MIT

Why does a visual system need color?

http://www.hobbylinc.com/gr/pll/pll5019.jpg

Wednesday, September 11, 13

Page 3: Color and color constancy - MIT

Why does a visual system need color?(an incomplete list…)

Wednesday, September 11, 13

Page 4: Color and color constancy - MIT

Why does a visual system need color?(an incomplete list…)

• To tell what food is edible.

Wednesday, September 11, 13

Page 5: Color and color constancy - MIT

Why does a visual system need color?(an incomplete list…)

• To tell what food is edible.• To distinguish material changes from shading

changes.

Wednesday, September 11, 13

Page 6: Color and color constancy - MIT

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.

Wednesday, September 11, 13

Page 7: Color and color constancy - MIT

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.

Wednesday, September 11, 13

Page 8: Color and color constancy - MIT

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.

Wednesday, September 11, 13

Page 9: Color and color constancy - MIT

Lecture outline

• Color physics.• Color perception.

Wednesday, September 11, 13

Page 10: Color and color constancy - MIT

Lecture outline

• Color physics.• Color perception.

Wednesday, September 11, 13

Page 11: Color and color constancy - MIT

color

www.popularpersons.org

Wednesday, September 11, 13

Page 12: Color and color constancy - MIT

7

Wednesday, September 11, 13

Page 13: Color and color constancy - MIT

8

Wednesday, September 11, 13

Page 14: Color and color constancy - MIT

Spectral colors

http://hyperphysics.phy-astr.gsu.edu/hbase/vision/specol.html#c2

Wednesday, September 11, 13

Page 15: Color and color constancy - MIT

Horn, 1986

Radiometry for color

Wednesday, September 11, 13

Page 16: Color and color constancy - MIT

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

Wednesday, September 11, 13

Page 17: Color and color constancy - MIT

11

Wednesday, September 11, 13

Page 18: Color and color constancy - MIT

12

Wednesday, September 11, 13

Page 19: Color and color constancy - MIT

Simplified rendering models:BRDF reflectance

For diffuse reflections, we replace the BRDF calculation with a wavelength-by-wavelength scalar multiplier

.* =

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

Wednesday, September 11, 13

Page 20: Color and color constancy - MIT

.* =

Simplified rendering models: transmittance

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

Wednesday, September 11, 13

Page 21: Color and color constancy - MIT

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

Wednesday, September 11, 13

Page 22: Color and color constancy - MIT

Color names for cartoon spectra

Wednesday, September 11, 13

Page 23: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

Wednesday, September 11, 13

Page 24: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

red

Wednesday, September 11, 13

Page 25: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

400 500 600 700 nm

red

Wednesday, September 11, 13

Page 26: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

400 500 600 700 nm

red

gree

n

Wednesday, September 11, 13

Page 27: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

400 500 600 700 nm

400 500 600 700 nm

red

gree

n

Wednesday, September 11, 13

Page 28: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

400 500 600 700 nm

400 500 600 700 nm

red

gree

nbl

ue

Wednesday, September 11, 13

Page 29: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

400 500 600 700 nm

400 500 600 700 nm

red

gree

nbl

ue

400 500 600 700 nm

Wednesday, September 11, 13

Page 30: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

400 500 600 700 nm

400 500 600 700 nm

red

gree

nbl

ue

cyan

400 500 600 700 nm

min

us

red

Wednesday, September 11, 13

Page 31: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

400 500 600 700 nm

400 500 600 700 nm

red

gree

nbl

ue

cyan

400 500 600 700 nm

400 500 600 700 nm

min

us

red

Wednesday, September 11, 13

Page 32: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

400 500 600 700 nm

400 500 600 700 nm

red

gree

nbl

ue

cyan

mag

enta

400 500 600 700 nm

400 500 600 700 nm

min

us

red

min

us

gree

n

Wednesday, September 11, 13

Page 33: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

400 500 600 700 nm

400 500 600 700 nm

red

gree

nbl

ue

400 500 600 700 nm

cyan

mag

enta

400 500 600 700 nm

400 500 600 700 nm

min

us

red

min

us

gree

n

Wednesday, September 11, 13

Page 34: Color and color constancy - MIT

Color names for cartoon spectra

400 500 600 700 nm

400 500 600 700 nm

400 500 600 700 nm

red

gree

nbl

ue

400 500 600 700 nm

cyan

mag

enta

yello

w

400 500 600 700 nm

400 500 600 700 nm

min

us

red

min

us

gree

nm

inus

bl

ue

Wednesday, September 11, 13

Page 35: Color and color constancy - MIT

Additive color mixing

Wednesday, September 11, 13

Page 36: Color and color constancy - MIT

Additive color mixing

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.

Wednesday, September 11, 13

Page 37: Color and color constancy - MIT

Additive color mixing

400 500 600 700 nm

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.

Wednesday, September 11, 13

Page 38: Color and color constancy - MIT

Additive color mixing

400 500 600 700 nm

red

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.

Wednesday, September 11, 13

Page 39: Color and color constancy - MIT

Additive color mixing

400 500 600 700 nm

400 500 600 700 nm

red

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.

Wednesday, September 11, 13

Page 40: Color and color constancy - MIT

Additive color mixing

400 500 600 700 nm

400 500 600 700 nm

red

gree

n

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.

Wednesday, September 11, 13

Page 41: Color and color constancy - MIT

Additive color mixing

400 500 600 700 nm

400 500 600 700 nm

red

gree

n

Red and green make…

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.

Wednesday, September 11, 13

Page 42: Color and color constancy - MIT

Additive color mixing

400 500 600 700 nm

400 500 600 700 nm

red

gree

n

Red and green make…

400 500 600 700 nm

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.

Wednesday, September 11, 13

Page 43: Color and color constancy - MIT

Additive color mixing

400 500 600 700 nm

400 500 600 700 nm

red

gree

n

Red and green make…

400 500 600 700 nm

yello

w

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.

Wednesday, September 11, 13

Page 44: Color and color constancy - MIT

Subtractive color mixing

Wednesday, September 11, 13

Page 45: Color and color constancy - MIT

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.

Wednesday, September 11, 13

Page 46: Color and color constancy - MIT

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.

400 500 600 700 nm

Wednesday, September 11, 13

Page 47: Color and color constancy - MIT

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.

cyan

400 500 600 700 nm

Wednesday, September 11, 13

Page 48: Color and color constancy - MIT

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.

400 500 600 700 nm

cyan

400 500 600 700 nm

Wednesday, September 11, 13

Page 49: Color and color constancy - MIT

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.

400 500 600 700 nm

cyan

yello

w

400 500 600 700 nm

Wednesday, September 11, 13

Page 50: Color and color constancy - MIT

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.

400 500 600 700 nm

cyan

yello

w

400 500 600 700 nm

Cyan and yellow (in crayons,called “blue” and yellow) make…

Wednesday, September 11, 13

Page 51: Color and color constancy - MIT

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.

400 500 600 700 nm

cyan

yello

w

400 500 600 700 nm

Cyan and yellow (in crayons,called “blue” and yellow) make…

400 500 600 700 nm

Wednesday, September 11, 13

Page 52: Color and color constancy - MIT

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.

400 500 600 700 nm

cyan

yello

w

400 500 600 700 nm

Cyan and yellow (in crayons,called “blue” and yellow) make…

400 500 600 700 nmGreen!gr

een

Wednesday, September 11, 13

Page 53: Color and color constancy - MIT

Overhead projector demo

Wednesday, September 11, 13

Page 54: Color and color constancy - MIT

Overhead projector demo

Subtractive color mixing

Wednesday, September 11, 13

Page 55: Color and color constancy - MIT

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:

Wednesday, September 11, 13

Page 56: Color and color constancy - MIT

Macbeth Color Checker

21

Wednesday, September 11, 13

Page 57: Color and color constancy - MIT

22http

://w

ww

.flic

kr.c

om/p

hoto

s/er

ikan

eola

/223

1647

456/

My Macbeth Color Checker Tattoo

I think I have all the other color checker photos beat...

Yes, the tattoo is real.No, it is not a rubik's cube.

THIS PHOTOGRAPH IS COPYRIGHT 2007 THE X-RITE CORPORATION!

A photograph from this session can be viewed on the X-Rite Website: www.xrite.com/top_munsell.aspx

Wednesday, September 11, 13

Page 58: Color and color constancy - MIT

Basis functions for Macbeth color checker

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

Wednesday, September 11, 13

Page 59: Color and color constancy - MIT

Fitting color spectra with low-dimensional linear models

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

n = 3

n = 2

n = 1

Wednesday, September 11, 13

Page 60: Color and color constancy - MIT

Fitting color spectra with low-dimensional linear models

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

n = 3

n = 2

n = 1

Wednesday, September 11, 13

Page 61: Color and color constancy - MIT

Fitting color spectra with low-dimensional linear models

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

n = 3

n = 2

n = 1

Wednesday, September 11, 13

Page 62: Color and color constancy - MIT

Lecture outline

• Color physics.• Color perception.

Wednesday, September 11, 13

Page 63: Color and color constancy - MIT

Color standards are important in industry

Wednesday, September 11, 13

Page 64: Color and color constancy - MIT

Wednesday, September 11, 13

Page 65: Color and color constancy - MIT

Color trademarks

28

MARK/COLOR(S)/OWNER:

BANK OF AMERICA 500blue, red & greyBank of America Corporation

NATIONAL CAR RENTALgreenNCR Affiliate Servicer, Inc.

FORDblueFord Motor Company

VISTEONorangeFord Motor Company

76red & blueConocoPhillips Company

VWsilver, metallic blue, black and whiteVolkswagen Aktiengesellschaft Corp.

CURRENTLY REGISTERED COLOR TRADEMARKS

A color trademark is a non-conventional trademark where at least one color is used to identify the commercial origin of a product or service. A color trademark must meet the same requirements of a conventional trademark. Thus, the color trademark must either be inherently distinctive or have acquired secondary meaning. To be inherently distinctive, the color must be arbitrarily or suggestively applied to a product or service. In contrast, to acquire secondary meaning, consumers must associate the color used on goods or services as originating from a single source. Below is a selection of some currently registered color trademarks in the U.S. Trademark Office:

THE HOME DEPOTorangeHomer TLC, Inc.

HONDAredHonda Motor Co., Ltd.

M MARATHONbrown, orange, yellowMarathon Oil Company

M MARATHONgray, black & whiteMarathon Oil Company

COSTCOredCostco Wholesale Membership, Inc.

TEENAGE MUTANT NINJA TURTLES MUTANTS & MONSTERSred, green, yellow, black, grey and whiteMirage Studios, Inc.

TARGETredTarget Brands, Inc.

AT&Tlight blue, dark blue and grayAT&T Corp.

Filed under: Trademark by admin

http://blog.patents-tms.com/?p=52

Wednesday, September 11, 13

Page 66: Color and color constancy - MIT

What we need from a color measurement system

• Given a color, how do you assign a number to it? • Given an input power spectrum, what is its numerical color

value, and how do we control our printing/projection/cooking system to match it?

29

Wednesday, September 11, 13

Page 67: Color and color constancy - MIT

What’s the machinery in the eye?

Wednesday, September 11, 13

Page 68: Color and color constancy - MIT

Eye Photoreceptor responses

(Where do you think the light comes in?)

Wednesday, September 11, 13

Page 69: Color and color constancy - MIT

Human Photoreceptors

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

Wednesday, September 11, 13

Page 70: Color and color constancy - MIT

Human eye photoreceptor spectral sensitivities

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

Wednesday, September 11, 13

Page 71: Color and color constancy - MIT

Lecture outline

• Color physics.• Color perception

– part 1: assume perceived color only depends on light spectrum.

– part 2: the more general case.

Wednesday, September 11, 13

Page 72: Color and color constancy - MIT

The assumption for color perception, part 1

Wednesday, September 11, 13

Page 73: Color and color constancy - MIT

The assumption for color perception, part 1

• We know color appearance really depends on:

Wednesday, September 11, 13

Page 74: Color and color constancy - MIT

The assumption for color perception, part 1

• We know color appearance really depends on:– The illumination

Wednesday, September 11, 13

Page 75: Color and color constancy - MIT

The assumption for color perception, part 1

• We know color appearance really depends on:– The illumination– Your eye’s adaptation level

Wednesday, September 11, 13

Page 76: Color and color constancy - MIT

The assumption for color perception, part 1

• We know color appearance really depends on:– The illumination– Your eye’s adaptation level– The colors and scene interpretation surrounding the

observed color.

Wednesday, September 11, 13

Page 77: Color and color constancy - MIT

The assumption for color perception, part 1

• We know color appearance really depends on:– The illumination– Your eye’s adaptation level– The colors and scene interpretation surrounding the

observed color.

Wednesday, September 11, 13

Page 78: Color and color constancy - MIT

The assumption for color perception, part 1

• We know color appearance really depends on:– The illumination– Your eye’s adaptation level– The colors and scene interpretation surrounding the

observed color.

• But for now we will assume that the spectrum of the light arriving at your eye completely determines the perceived color.

Wednesday, September 11, 13

Page 79: Color and color constancy - MIT

36

test lightproject

Cone sensitivities

L, M, S responses

Wednesday, September 11, 13

Page 80: Color and color constancy - MIT

Cone response curves as basis vectors in a 3-d subspace of light power spectra

37

2-d depiction of the 3-d subspace of sensor responses

3-d depiction of the high-dimensional space of all possible power spectra

Spectral sensitivities of L, M, and S cones

Wednesday, September 11, 13

Page 81: Color and color constancy - MIT

Color matching experiment

Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995Wednesday, September 11, 13

Page 82: Color and color constancy - MIT

Color matching experiment 1

Wednesday, September 11, 13

Page 83: Color and color constancy - MIT

Color matching experiment 1

p1 p2 p3

Wednesday, September 11, 13

Page 84: Color and color constancy - MIT

Color matching experiment 1

p1 p2 p3

Wednesday, September 11, 13

Page 85: Color and color constancy - MIT

Color matching experiment 1

p1 p2 p3

Wednesday, September 11, 13

Page 86: Color and color constancy - MIT

Color matching experiment 1

p1 p2 p3

The primary color amounts needed for a match

Wednesday, September 11, 13

Page 87: Color and color constancy - MIT

Color matching experiment 2

Wednesday, September 11, 13

Page 88: Color and color constancy - MIT

Color matching experiment 2

p1 p2 p3

Wednesday, September 11, 13

Page 89: Color and color constancy - MIT

Color matching experiment 2

p1 p2 p3

Wednesday, September 11, 13

Page 90: Color and color constancy - MIT

46

Primary light 1

Primary light 2

sensor response to target light

Color matching with positive amounts of the primaries

Wednesday, September 11, 13

Page 91: Color and color constancy - MIT

46

Primary light 1

Primary light 2

sensor response to target light

Match the sensors’ response to the target light to the sum of responses to the primary lights

Color matching with positive amounts of the primaries

Wednesday, September 11, 13

Page 92: Color and color constancy - MIT

Color matching with positive amounts of the primaries

47

Wednesday, September 11, 13

Page 93: Color and color constancy - MIT

48

Primary light 1

Primary light 2

Color matching with a negative amount of primary 1

Wednesday, September 11, 13

Page 94: Color and color constancy - MIT

48

Primary light 1

Primary light 2

Match sensors’ response to the target light plus some amount of primary light 1 to the response to some of primary light 2

Color matching with a negative amount of primary 1

Wednesday, September 11, 13

Page 95: Color and color constancy - MIT

Color matching experiment--handle negative light by adding light to the test.

Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995Wednesday, September 11, 13

Page 96: Color and color constancy - MIT

Color matching experiment 2

p1 p2 p3 p1 p2 p3

We say a “negative” amount of p2 was needed to make the match, because we added it to the test color’s side.

Wednesday, September 11, 13

Page 97: Color and color constancy - MIT

Color matching experiment 2

p1 p2 p3 p1 p2 p3

We say a “negative” amount of p2 was needed to make the match, because we added it to the test color’s side.

The primary color amounts needed for a match:

Wednesday, September 11, 13

Page 98: Color and color constancy - MIT

Color matching experiment 2

p1 p2 p3 p1 p2 p3

We say a “negative” amount of p2 was needed to make the match, because we added it to the test color’s side.

The primary color amounts needed for a match:

p1 p2 p3

Wednesday, September 11, 13

Page 99: Color and color constancy - MIT

Color matching superposition (Grassman’s laws)

51

If A1 matches B1

and A2 matches B2

then A1 +A2 matches B1 +B2

Wednesday, September 11, 13

Page 100: Color and color constancy - MIT

To measure a color

1. Choose a set of 3 primary colors (three power spectra).2. Determine how much of each primary needs to be added to

a probe signal to match the test light.

52

Wednesday, September 11, 13

Page 101: Color and color constancy - MIT

To measure a color

1. Choose a set of 3 primary colors (three power spectra).2. Determine how much of each primary needs to be added to

a probe signal to match the test light.

52

Con

e se

nsiti

vitie

s

a1 +a3a2 +

Prim

arie

s

weighted sum of

primariesproject

L, M, S responsestest lightproject

Cone sensitivities

Wednesday, September 11, 13

Page 102: Color and color constancy - MIT

What we need from a color measurement system

• Given a color, how do you assign a number to it? • Given an input power spectrum, what is its numerical color

value, and how do we control our printing/projection/cooking system to match it?

53

Wednesday, September 11, 13

Page 103: Color and color constancy - MIT

What we need from a color measurement system

• Given a color, how do you assign a number to it? • Given an input power spectrum, what is its numerical color

value, and how do we control our printing/projection/cooking system to match it?

53

http://www.roobaroo.net/2006/06/25/how-to-clean-and-repair-projection-tv/

Wednesday, September 11, 13

Page 104: Color and color constancy - MIT

“Color matching functions” let us find other basis vectors for the eye response subspace of light power spectra

p1 = 645.2 nmp2 = 525.3 nmp3 = 444.4 nm

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

Wednesday, September 11, 13

Page 105: Color and color constancy - MIT

“Color matching functions” let us find other basis vectors for the eye response subspace of light power spectra

p1 = 645.2 nmp2 = 525.3 nmp3 = 444.4 nm

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

Wednesday, September 11, 13

Page 106: Color and color constancy - MIT

“Color matching functions” let us find other basis vectors for the eye response subspace of light power spectra

p1 = 645.2 nmp2 = 525.3 nmp3 = 444.4 nm

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

Wednesday, September 11, 13

Page 107: Color and color constancy - MIT

“Color matching functions” let us find other basis vectors for the eye response subspace of light power spectra

p1 = 645.2 nmp2 = 525.3 nmp3 = 444.4 nm

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

Wednesday, September 11, 13

Page 108: Color and color constancy - MIT

Using the color matching functions to predict the primary match to a new spectral signal

Wednesday, September 11, 13

Page 109: Color and color constancy - MIT

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.

Wednesday, September 11, 13

Page 110: Color and color constancy - MIT

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.

Wednesday, September 11, 13

Page 111: Color and color constancy - MIT

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.

Wednesday, September 11, 13

Page 112: Color and color constancy - MIT

Using the color matching functions to predict the primary match to a new spectral signal

Wednesday, September 11, 13

Page 113: Color and color constancy - MIT

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

Wednesday, September 11, 13

Page 114: Color and color constancy - MIT

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.

Wednesday, September 11, 13

Page 115: Color and color constancy - MIT

Using the color matching functions to predict the primary match to a new spectral signal

Then the amounts of each primary needed to match t are:

Store the color matching functions in the rows of the matrix, C

Let the new spectral signal be described by the vector t.

Wednesday, September 11, 13

Page 116: Color and color constancy - MIT

Using the color matching functions to predict the primary match to a new spectral signal

Then the amounts of each primary needed to match t are:

Store the color matching functions in the rows of the matrix, C

Let the new spectral signal be described by the vector t.

c1(λ j )t(λ j )

c2 (λ j )t(λ j )

c3(λ j )t(λ j )

⎜⎜⎜⎜

⎟⎟⎟⎟

j∑ = C

t

Wednesday, September 11, 13

Page 117: Color and color constancy - MIT

Comparison of color matching functions with best 3x3 transformation of cone responses

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

Wednesday, September 11, 13

Page 118: Color and color constancy - MIT

CIE XYZ color space

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

Wednesday, September 11, 13

Page 119: Color and color constancy - MIT

CIE XYZ color space

• Commission Internationale d’Eclairage, 1931 (International Commission on Illumination).

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

Wednesday, September 11, 13

Page 120: Color and color constancy - MIT

CIE XYZ color space

• Commission Internationale d’Eclairage, 1931 (International Commission on Illumination).

• “…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.”

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

Wednesday, September 11, 13

Page 121: Color and color constancy - MIT

CIE XYZ color space

• Commission Internationale d’Eclairage, 1931 (International Commission on Illumination).

• “…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

Wednesday, September 11, 13

Page 122: Color and color constancy - MIT

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., 1995Wednesday, September 11, 13

Page 123: Color and color constancy - MIT

Wednesday, September 11, 13

Page 124: Color and color constancy - MIT

Pure wavelength in chromaticity diagram

• Blue: big value of Z, therefore x and y smallx=X/(X+Y+Z) y=Y/(X+Y+Z)

Wednesday, September 11, 13

Page 125: Color and color constancy - MIT

Pure wavelength in chromaticity diagram

• Then y increases x=X/(X+Y+Z) y=Y/(X+Y+Z)

Wednesday, September 11, 13

Page 126: Color and color constancy - MIT

Pure wavelength in chromaticity diagram

• Green: y is big x=X/(X+Y+Z) y=Y/(X+Y+Z)

Wednesday, September 11, 13

Page 127: Color and color constancy - MIT

Pure wavelength in chromaticity diagram

• Yellow: x & y are equal x=X/(X+Y+Z) y=Y/(X+Y+Z)

Wednesday, September 11, 13

Page 128: Color and color constancy - MIT

Pure wavelength in chromaticity diagram

• Red: big x, but y is not null x=X/(X+Y+Z) y=Y/(X+Y+Z)

Wednesday, September 11, 13

Page 129: Color and color constancy - MIT

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.

Wednesday, September 11, 13

Page 130: Color and color constancy - MIT

Color metamerism: different spectra looking the same color

Two spectra, t and s, perceptually match when

where C are the color matching functions for some set of primaries.

Wednesday, September 11, 13

Page 131: Color and color constancy - MIT

Color metamerism: different spectra looking the same color

Two spectra, t and s, perceptually match when

where C are the color matching functions for some set of primaries.

C CGraphically,

Wednesday, September 11, 13

Page 132: Color and color constancy - MIT

Metameric lightsFoundations of Vision, by Brian Wandell, Sinauer Assoc., 1995

2-d depiction of the 3-d subspace of sensor responses

3-d depiction of the high-dimensional space of all possible power spectra

Wednesday, September 11, 13

Page 133: Color and color constancy - MIT

Concepts in color measurement

• 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?

– Standardize on a few sets of primaries.– Translate colors between systems of primaries.

Wednesday, September 11, 13

Page 134: Color and color constancy - MIT

Another psychophysical fact: luminance and chrominance

channels in the brain

From W. E. Glenn, in Digital Images and Human Vision, MIT Press, edited by Watson, 1993

Wednesday, September 11, 13

Page 135: Color and color constancy - MIT

NTSC color components: Y, I, Q

YIQ

⎜⎜⎜

⎟⎟⎟=

0.299 0.587 0.1140.596 −0.274 −0.3220.211 −0.523 0.312

⎜⎜

⎟⎟

RGB

⎜⎜

⎟⎟

Wednesday, September 11, 13

Page 136: Color and color constancy - MIT

NTSC - RGB

Wednesday, September 11, 13

Page 137: Color and color constancy - MIT

Spatial resolution and color

R

G

Boriginal

Wednesday, September 11, 13

Page 138: Color and color constancy - MIT

Blurring the G component

R

G

B

original processed

Wednesday, September 11, 13

Page 139: Color and color constancy - MIT

Blurring the G component

R

G

B

original processed

Wednesday, September 11, 13

Page 140: Color and color constancy - MIT

Blurring the R component

original processed

R

G

B

Wednesday, September 11, 13

Page 141: Color and color constancy - MIT

Blurring the R component

original processed

R

G

B

Wednesday, September 11, 13

Page 142: Color and color constancy - MIT

Blurring the B component

original

R

G

B

Wednesday, September 11, 13

Page 143: Color and color constancy - MIT

Blurring the B component

original

R

G

Bprocessed

Wednesday, September 11, 13

Page 144: Color and color constancy - MIT

From W. E. Glenn, in Digital Images and Human Vision, MIT Press, edited by Watson, 1993

Wednesday, September 11, 13

Page 145: Color and color constancy - MIT

Lab color components

L

a

b

A rotation of the color coordinates into directions that are more perceptually meaningful: L: luminance, a: red-green, b: blue-yellow

Wednesday, September 11, 13

Page 146: Color and color constancy - MIT

Blurring the L Lab component

L

a

boriginal

Wednesday, September 11, 13

Page 147: Color and color constancy - MIT

Blurring the L Lab component

L

a

boriginal processed

Wednesday, September 11, 13

Page 148: Color and color constancy - MIT

original

Blurring the a Lab component

L

a

b

Wednesday, September 11, 13

Page 149: Color and color constancy - MIT

original

Blurring the a Lab component

L

a

bprocessed

Wednesday, September 11, 13

Page 150: Color and color constancy - MIT

Blurring the b Lab component

original

L

a

b

Wednesday, September 11, 13

Page 151: Color and color constancy - MIT

Blurring the b Lab component

original

L

a

bprocessed

Wednesday, September 11, 13

Page 152: Color and color constancy - MIT

Lecture outline

• Color physics.• Color perception

– part 1: assume perceived color only depends on light spectrum.

– part 2: the more general case.

Wednesday, September 11, 13

Page 153: Color and color constancy - MIT

Color constancy demo

• We assumed that the spectrum impinging on your eye determines the object color. That’s often true, but not always. Here’s a counter-example…

Wednesday, September 11, 13

Page 154: Color and color constancy - MIT

84

Wednesday, September 11, 13

Page 155: Color and color constancy - MIT

85

Wednesday, September 11, 13

Page 156: Color and color constancy - MIT

Rendering equation for jth observation

86

*

.*

*

= *

photoreceptor response functions

surface spectral basis

functions

illuminant spectral basis

functions

LjMjSj

Wednesday, September 11, 13

Page 157: Color and color constancy - MIT

Color constancy solution 1: find white in the scene

87

*

.*

*

Lj

Mj

Sj

= *

Let the kth patch be the white one, with surface coefficients assumed to beThen we can solve for the illuminant coefficient,

a 3x3 matrix

Wednesday, September 11, 13

Page 158: Color and color constancy - MIT

88

Wednesday, September 11, 13

Page 159: Color and color constancy - MIT

Color constancy solution 2: assume scene colors average to grey

89

*

.*

*

Lj

Mj

Sj

= *

a 3x3 matrix

Wednesday, September 11, 13

Page 161: Color and color constancy - MIT

Bayesian approach

91

Bayes rule

Likelihood

Posterior

Wednesday, September 11, 13

Page 162: Color and color constancy - MIT

Likelihood term for a b = 1 problem

92

*

.*

*

Lj

Mj

Sj

= *

Wednesday, September 11, 13

Page 163: Color and color constancy - MIT

Bayesian approach: priors on surfaces and illuminants

93

Wednesday, September 11, 13

Page 164: Color and color constancy - MIT

Picking a single best x

94

From the supplementary notes for this lecture:

Wednesday, September 11, 13

Page 165: Color and color constancy - MIT

Two loss functions (left), and the (minus) expected losses for the 1=ab problem

95

Wednesday, September 11, 13

Page 166: Color and color constancy - MIT

MAP estimate of illumination spectrum

• Start from some illuminant candidate.• Find the surface colors that would best explain the

observed data.– Evaluate the corresponding likelihoold and prior

probability terms.• Move to another illuminant choice.

96

Wednesday, September 11, 13

Page 167: Color and color constancy - MIT

MMSE estimate of illumination spectrum

97

For the MMSE estimate, we will use a Monte Carlo method (averaging many different trials). We will take many random draws of candidate illuminant spectra, nd the corresponding surface colors that would explain the observed image data, and then check how probable that set of surface colors would be. We'll use that probability as a weight to form a weightedaverage of the sampled illumination spectra, which will be the MMSE estimate.

Wednesday, September 11, 13

Page 168: Color and color constancy - MIT

Selected Bibliography

Vision and Art : The Biology of Seeingby Margaret Livingstone, David H. Hubel Harry N Abrams; ISBN: 0810904063 208 pages (May 2002)

Vision Scienceby Stephen E. PalmerMIT Press; ISBN: 0262161834 760 pages (May 7, 1999)

Billmeyer and Saltzman's Principles of Color Technology, 3rd Editionby Roy S. Berns, Fred W. Billmeyer, Max Saltzman Wiley-Interscience; ISBN: 047119459X 304 pages 3 edition (March 31, 2000)

Wednesday, September 11, 13

Page 169: Color and color constancy - MIT

Selected BibliographyThe Reproduction of Colorby R. W. G. HuntFountain Press, 1995

Color Appearance Modelsby Mark FairchildAddison Wesley, 1998

Wednesday, September 11, 13

Page 170: Color and color constancy - MIT

Other color references

• Reading: – Chapter 6, Forsyth & Ponce– Chapter 4 of Wandell, Foundations of Vision,

Sinauer, 1995 has a good treatment of this.

Wednesday, September 11, 13