warmup: what is your favorite color? · 2015. 12. 23. · some implications… 1. sensing counts...

82
Warmup: What is your favorite color?

Upload: others

Post on 22-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Warmup:What is your favorite color?

Page 2: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Perception and ColorLecture 23November 22, 2015

Page 3: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from
Page 4: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Light

Comes from a sourceTravels in a straight line

Hits things and …bouncesis “absorbed”

(turned into something else)

Page 5: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Light

Particle model

Comes in packets (photons)Each contains a wavelength

(over-simplification warning!)

Page 6: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Some implications…

1. Sensing counts photons in a place

2. You don’t know where they came from

Page 7: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Measuring Light (simplified)

Amount (intensity)number of photons

Propertieskinds of those photons

Page 8: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

It’s raining photons…

Page 9: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Measure the rate in different places

Page 10: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Kinds of buckets

Chemical

Semiconductor

Biological

Page 11: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Strategy 1 (chemical, eletronic)

1. Open the lid for a period of time2. Close the lid3. Measure how much is in each bucket

4. Empty the buckets and repeat

Page 12: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Sensitivitybig buckets catch more photonscatch enough to count (otherwise noisy)

Resolutionbig buckets take up more spaceless spatial measurements

Page 13: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Strategy 2 (biological)

1. Photon “cracks” molecule in half2. Molecule gives off charge when cracked3. Molecule gets “repaired”

(put back together)4. Repeat

Output is a pulse train – faster = higher rate

Page 14: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Varieties of Photo-receptors

Retinal CellsHave photo-pigments (rhodopsin)

Two kinds: RodsCones

Page 15: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Wandell,“FoundationsofVision”(left)

120millionrods 5-6millioncones

DavidR.Williams,Univ.ofRochester(right)15

Page 16: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

E.B.Goldstein“SensationandPerception”(AdaptedfromLindsay&Norman, 1977)

Page 17: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Ware201017

Page 18: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

RodsBigSensitiveSpread outAll one type

Night visionPeripheral motion

ConesSmallLess-sensitiveConcentrated in places3 different types

Normal vision

Page 19: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Without Color: Brightness

How do we encode amount of light?

In a way that makes sense perceptually

Page 20: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

How many different levels?

Side by Side – can you distinguish next to each other?

1% differences (in ideal case)1.01x=100 (x approx 460)

Note: 1.01, 1.0201, ….. 98.02, 99, 100In practice 2^8 = 256 is more than enough

Page 21: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Non-Linear

1.01, 1.0201, ….. 98.02, 99, 100

256 steps OK – if the right 256 steps

Gamma CorrectionConvert levels to “display amounts”

Page 22: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Display Calibration

Tune so it looks right

Setting Gammawhite = 100%black = 0%50% grey = 50%

(black&white checks)

Page 23: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from
Page 24: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

(warning resampling messes things up)

http://epaperpress.com/monitorcal/gamma.html

Page 25: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

http://www.normankoren.com/Gammanew_1_3.jpg

Page 26: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Why is color so complicated?

Page 27: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Different Ways we get at Color

Physics of Color

Sensing Color

Representing / Reproducing Color

Specifying Color

Page 28: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Different Ways we get at Color

Physics of ColorWhy a vector space for colors?

Sensing ColorWhy is 3 numbers enough?

Representing / Reproducing ColorWhich 3 numbers?

Specifying Color

Page 29: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

The physics view of color

Page 30: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Frequency vs. Wavelength

Page 31: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from
Page 32: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Physics of Color

Spectral Colorsall one kind of photon

Distributions of colorsBlackWhiteOther

Page 33: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Physicists: Spectral Distribution

From Stone’s A Field Guide to Digital Color

Page 34: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

To a physicist:A Color is…A distribution over the spectrumF(w) (w in wavelengths)

350 750 350 750 350 750

“White” Neonlaser(red) Red-lookingcolor

Page 35: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Colors of Materials

What colors of light are reflected/absorbed

If you shine white light on it, what bounces off

All kinds of other issues…

Page 36: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

PerceptionHow do we sense color?

Page 37: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Measuring Light (simplified)

Amount (intensity)number of photons

Propertieskinds of those photons

Page 38: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Measure the rate in different places

Page 39: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Measure the rate in different places

Page 40: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from
Page 41: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Once converted to something else,Color information is lost

Page 42: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Filter so different buckets get different colors

Page 43: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from
Page 44: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Strategies

Put filters over the buckets

Design buckets to only count certain colors

Stack the buckets on top of each other and make the bottoms leak some colors

Use a prism to split the light

Give up spatial resolution to get color resolution

Use Fancy Optics and Materials

Page 45: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Different Responses to Wavelengths

350 750

RedBucket

350 750

GreenBucket

Page 46: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Different Responses to Wavelengths

Green Photons Count

Red Photons Don’t

350 750

GreenBucket

Page 47: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Different Responses to Wavelengths

Green Photons Count

Red Photons Don’t

Other “Greens” Count 350 750

GreenBucket

Page 48: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Metamers

Different Colors

Same Measurement

350 750

GreenBucket

350 750 350 750 350 750

Page 49: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

A Bi-Chromat

Two receptor types2 measurements

Did you see…2 red, 2 blue4 green1 yellow, 2 blue 350 750

Page 50: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Real Animals

Some mono-chromatsDichromats (many mammals)Tri-Chromats (humans, dinosaurs)

Tetrachromats (some birds, some humans)Pentachromats (pigeons, ducks)

Page 51: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Human Vision

3 kinds of cones, Long, Medium, Short

Short WavelengthHigher Energy

Long WavelengthLower Energy

S

MRod L

Page 52: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

What does this mean?

A color sensation is 3 “measurements”response to Lresponse to Mresponse to S

Each spectral color gives a different ratio

Page 53: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Faking out a human…

You could make any color sensationwith 3 lights

If you had the right colors

Page 54: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Imaginary color systems

No color can excite just M or L cones

Short WavelengthHigher Energy

Long WavelengthLower Energy

S

MRod L

Page 55: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Real Color Systems3 primaries (RGB)

Short WavelengthHigher Energy

Long WavelengthLower Energy

S

MRod L

Page 56: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Representing Color as3 Numbers

Page 57: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

3 Numbers good enough?

For physics?No!

All human perception?3 numbers, imaginary primaries

In Practice?

Page 58: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Gre

en

“Cube” based on three primary colors

What (most) monitors use

Computer Graphics: RGB

Page 59: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Gamuts

Visible colors (grey) versus colors supported by the display (triangle)

Gamut: Colors that can be created using the three display primaries

Page 60: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Gamut Analysis

"CIExy1931Rec2020andRec709"byCIExy1931.svg:Sakuramboderivativework:GrandDrake (talk)- CIExy1931.svg.LicensedunderCCBY-SA3.0viaWikimediaCommons–http://commons.wikimedia.org/wiki/File:CIExy1931_Rec_2020_and_Rec_709.svg#mediaviewer/File:CIExy1931_Rec_2020_and_Rec_709.svg

Page 61: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from
Page 62: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Practical Concerns

Violet? Deep Red?not sensitive enough

Extra primaries?expensive!

Special for white/black

Page 63: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Some other color systems

Page 64: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Printing

Red, Green, Blue = light colorsadditive primaries

Inks subtract lightsubtractive primaries

Page 65: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Color Blending

Physical Pigments

CMYKMonitors & Light

Page 66: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

CMY and K

White – Green = Magenta (red-blue)White – Blue = Yellow (red-green)White – Red = Cyan (blue-green)

Printing black is important, so have a special fourth ink color

Page 67: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Problems with RGB (or CMY)(and some alphabet soup to replace it)

Doesn’t cover all sensations - XYZInconsistent (primaries matter) - sRGB

Not perceptually uniform – LABInconvenient for users - HSV

Page 68: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Luminance / Brightness

Roughly the sum of the 3 channels:L = R + G + B

(ok, .299R + .587G + .114B)Y’ = X + Y + Z

Page 69: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Luminance as an axis

X

Y

Page 70: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Equi-luminant

X

Y

Page 71: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Easier to analyze color space

Make one axis be “lightness”L ~~ R+G+Blet’s us say “equally bright”

Other two directions are color

Define so measurements are meaningfulEqual distance = equally distant colors

Page 72: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

CIELABL: Lightness

AB: Hue/saturation plane based on opponent responses

Euclidean distance is meaningful!

Page 73: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Why do we care?

LAB lets us talk about color differences!

Are two colors distinguishable?

Are a series of colors equally spaced?

Important for analysis.

Page 74: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Artist-friendly color systems

Page 75: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

How do people talk about color?

Page 76: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Depends on who…

Physicists (distributions)Vision scientists (cone responses)Computer graphicists (device primaries)Color theorists (perceptually uniform spaces)

Normal folks…

Page 77: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Nameable Colors

Language effects vision!

Lots of uniformity around world

Nameability adds distinctness

Page 78: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Describing Color

Luminance: How light something is

Saturation: How colorful something is

Hue: What “color” something is

Page 79: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

Artists

Think in terms of lightness/hue/saturation

Munsell Look-up Tables

From Gretag-Macbeth

Page 80: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

HSV/HSL

Page 81: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

HSV

Page 82: Warmup: What is your favorite color? · 2015. 12. 23. · Some implications… 1. Sensing counts photons in a place 2. You don’t know where they came from

It’s a cone (or double cone)

No light (black)no hueno saturation

No saturation (grey)no huewhite at fully bright