color theory - computer science and...

23
Color Theory h l What is color? How do we perceive How do we perceive How do we describe Color spaces e it? e it? e and match colors?

Upload: others

Post on 27-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

Color Theory

‣ h l‣ What is color?

‣ How do we perceiveHow do we perceive

‣ How do we describe

‣ Color spaces

e it?e it?

e and match colors?

Page 2: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

What is color?

‣ Interaction of lightInteraction of light system

‣ Light: electromagn‣ Light: electromagn• Discerned by differe

and eye-brainand eye brain

etic phenomenonetic phenomenonent wavelength

Page 3: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

Color Spectra

Pure colors - single waavelength

Page 4: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

Color Spectra

Sample lights:Sample lights:

How do we perceive them?perceive them?

Page 5: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

Human VisualVisual System

Rods- black & white receptorsblack & white receptors- peripheral vision- sensitive

Cones- 3 type tuned to different ypfrequencies- 3 cones have different sensitivitiessensitivities- central vision- less sensitive

Page 6: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

Tristimulus The

Important principle:Any color spectra is perceived byAny color spectra is perceived by response frequencies!

Tristimulus theory of color:Color is inherently a three-dimens

Metamers:If two colors produce the same triIf two colors produce the same triare visually indistinguishable

eory of Color

sensors with 3 differentsensors with 3 different

ional space

stimulus values then theystimulus values, then they

Page 7: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

Spectral ResponSpectral ResponHuman Visual S

nse ofnse of System

Page 8: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

Color Spectra

Sample lights:Sample lights:

How to describethem numerically?them numerically?

Page 9: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

Color Spectra

I t t i i lImportant principle:

Any color spectra is perceived asy p p- a single dominant wavelength - mixed with a certain amount o- of a certain intensity or brightn- of a certain intensity or brightn

:- its huef white light (saturation)

nessness

Page 10: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

Dominant Wave

‣ St ti th b‣ Stating the numbers- Dominant wavelength - Luminance (total power)

- Saturation(purity) (p y)

elength

(hue)

Page 11: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

Luminance and

‣ Luminance (L) = (DLuminance (L) = (D‣ Saturation = (D-A)

Whit li ht D A- White light: D = A,

Saturation

D-A)B + AWD A)B + AWB/L * 100% i S t 0i.e., Sat. = 0

Page 12: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

RGB color descr

‣ Use three primaryUse three primary - C(⎣) = r(⎣)R + g(⎣)G

g(⎣)b(⎣)b(⎣)

ription

color (r,g,b)color (r,g,b)G + b(⎣)B

r(⎣)negative!!

Page 13: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

RGB Primary Coolors

Page 14: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

RGB Color Spacce

Page 15: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

CMY Color Mode

‣ C: Cyan; M: Magenty ; g‣ Subtractive primaries

Yellow are the compli‣ Specified by what is b

white‣ E l C l‣ Example: Cyan color

removed; CMY: (1,1,0removed => what coremoved => what co

‣ Sometimes CMYK - K

el

ta; Y: Yellow ;- Cyan, Magenta, and

iment of Red, Green Bluebeing removed from

(1 0 0) d i= (1,0,0) means red is 0) -> red and green is

olor?olor? : Black

Page 16: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

CMY <-> RGB

C 1 M = 1 Y 1

R - G B

Page 17: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

CIE Primary “Co‣ (X,Y,Z) - Not real colo‣ The combinationThe combination

coefficients are positive‣ P l‣ Perceptual space

C(⎣) = x(⎣)X + y(⎣)Y + z(⎣)Z

olors”rs

e

Page 18: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

CIE Primary Collors

Page 19: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

CIE Chromaticit

Project to xy plane

ty Chart

Page 20: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

CIE Gamut

- The range of colors that can b

Green

CRT GamutCRT Gamut

Blue

e produced on a device

Red

Page 21: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

Color Spaces

‣ CIE model is a goo‣ Not necessarily the‣ Many other color sMany other color s

- RGB - HLSHLS - CMY - HSVHSV - YIQ- ......

od color referencee most natural one paces are usedpaces are used

Page 22: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

HLS Color Spacee

Page 23: Color Theory - Computer Science and Engineeringweb.cse.ohio-state.edu/~parent.1/classes/581/Lectures/8.Color.pdf · Any color spectra is perceived byAny color spectra is perceived

HLS Color Spacee (2)