Color and Color Models Werner Purgathofer Color problem - - PDF document

color and color models
SMART_READER_LITE
LIVE PREVIEW

Color and Color Models Werner Purgathofer Color problem - - PDF document

Einfhrung in Visual Computing 186.822 186.822 Color and Color Models Werner Purgathofer Color problem specification light and perception colorimetry l i t device color systems color ordering systems color symbolism 1 Werner


slide-1
SLIDE 1

1

Einführung in Visual Computing

186.822 186.822

Color and Color Models

Werner Purgathofer Color problem specification light and perception l i t colorimetry device color systems color ordering systems color symbolism

Werner Purgathofer 1

slide-2
SLIDE 2

2

Color - Why Do We Care? Computer Graphics is all about the generation and the manipulation of color images proper understanding and handling of color is proper understanding and handling of color is necessary at every step

Werner Purgathofer 2

What is Light? “light” = narrow frequency band of electromagnetic spectrum red border: 380 THz ≈ 780 nm violet border: 780 THz ≈ 380 nm

M radio M radio nd TV icrowaves frared traviolet

  • rays

visible

Werner Purgathofer 3

frequency (Hz)

102 104 106 108 1010 1012 1014 1016 1018 1020

AM FM an m inf ult X-

1016 1014 1012 1010 108 106 104 102 100 10-2

wavelength (nm)

… …

slide-3
SLIDE 3

3

Light - An Electromagnetic Wave light is electromagnetic energy monochrome light can be described either by frequency f or wavelength  q y g c =  f (c = speed of light) shorter wavelength equals higher frequency

E t 

frequency red  700 nm violet  400 nm

Werner Purgathofer 4

Light – Spectrum normally, a ray of light contains many different waves with individual frequencies the associated distribution of wavelength g intensities per wavelength is referred to as the spectrum

  • f a given ray
  • f a given ray
  • r light source

Werner Purgathofer 5

slide-4
SLIDE 4

4

Dominant Wavelength | Frequency white light

energy energy greenish light ED

dominant wavelength | frequency (hue color)

wave- length 700 nm 400 nm wave- length dominant wavelength EW

dominant wavelength | frequency (hue, color) brightness (area under the curve) purity

Werner Purgathofer 6

D W D

E E E 

ED...dominant energy density EW...white light energy density

The Human Eye retina contains

rods: b/w cones: color

aqueous [Augenkammer] cornea [Hornhaut] iris [Regen- bogen-

cones: color

rods

lens visual axis

  • ptical axis

bogen haut] vitreous humor [Glaskörper]

  • ptic disc

Werner Purgathofer 7

cones

fovea macula lutea [gelber Fleck] nerve retina [Netzhaut] p [Papille]

slide-5
SLIDE 5

5

The Human Eye 3 types of cones diff t different wavelength sensitivities:

red green

fraction of absorbed light 2% 4% 8% 16%

green blue

Werner Purgathofer 8

1%

400 440 480 520 560 600 640 680

λ

Color Blindness red/green blindness

red & green cones too similar

fraction of absorbed light 2% 4% 8% 16%

Werner Purgathofer 9

1%

400 440 480 520 560 600 640 680

λ

slide-6
SLIDE 6

6

Color Blindness red/green blindness

red & green cones too similar

blue blindness

no blue cones

  • ther

fraction of absorbed light 2% 4% 8% 16%

  • ther

cones missing cones too similar

Werner Purgathofer 10

1%

400 440 480 520 560 600 640 680

λ

Color Blindness Tests

Werner Purgathofer 11

5 = normal nothing = red/green blind 2 = red/green weak nothing = normal

slide-7
SLIDE 7

7

Color Blindness Tests

Werner Purgathofer 12

8 = normal 3 = red/green weak nothing = r/g blind 8 = red/green blind 12 = blue/yellow blind 182 = normal Color Spaces (CS) Color Metric Spaces (CIE XYZ, L*a*b*)

used to measure absolute values and differences - roots in colorimetry

Device Color Spaces (RGB, CMY, CMYK)

used in conjunction with device

Color Ordering Spaces (HSV, HLS)

used to find colors according to some criterion

the distinction between them is somewhat

  • bscured by the prevalence of multi-purpose

RGB in computer graphics

Werner Purgathofer 13

slide-8
SLIDE 8

8

What is our Goal? to be able to quantify color in a meaningful, expressive consistent and reproducible way expressive, consistent and reproducible way. problem: color is a perceived quantity, not a direct, physical observable

Werner Purgathofer 14

Color - A Visual Sensation light nerve

  • bject

light stimulus eye brain nerve signal electromagnetic rays color sensation

Werner Purgathofer 15

realm of direct

  • bservables

realm of psychology

slide-9
SLIDE 9

9

Colorimetry CM is the branch of color science concerned with numerically specifying the color of a physically defined visual stimulus in such physically defined visual stimulus in such manner that

stimuli with the same specification look alike under the same viewing conditions stimuli that look alike have the same ifi ti specification the numbers used are continuous functions of the physical parameters

Werner Purgathofer 16

Colorimetry Properties Colorimetry only considers the visual discriminability of physical beams of radiation f th f C l i t l “ i for the purposes of Colorimetry a „color“ is an equivalence class of mutually indiscriminable beams colors in this sense cannot be said to be “red”, “green” or any other “color name” green or any other color name discriminability is decided before the brain

  • Colorimetry is not psychology

Werner Purgathofer 17

slide-10
SLIDE 10

10

  • bservers had to match monochromatic

test lights by combining 3 fixed primaries Color Matching Experiments

green test

test R+G+B

Werner Purgathofer 18

goal: find the unique RGB coordinates for each stimulus

1 1 1

Color Matching Experiments

  • bservers had to match monochromatic

test lights by combining 3 fixed primaries

R = 700.0 nm G = 546.1 nm B = 435.8 nm

viewer controls independently variable primary

Werner Purgathofer 19

viewing screen test source masking screen p y sources

slide-11
SLIDE 11

11

Tristimulus Values the values RQ, GQ and BQ

  • f a stimulus Q that fulfill

green test test R+G+B

are called the tristimulus values of Q i h f h i i l

Q  RQ  R  GQ  G  BQ  B

Werner Purgathofer 20

in the case of a monochromatic stimulus Q, the values R, G and B are called the spectral tristimulus values Color Matching Procedure (1) test field = 700 nm-red with radiance Pref

  • bserver adjusts luminance of R (G=0, B=0)

(2) test light wavelength is decreased in (2) test light wavelength is decreased in constant steps (radiance Pref stays the same)

  • bserver adjusts R, G, B

(3) repeat for entire visible range

Werner Purgathofer

visible range

400 450 500 550 600 650 700 nm 350

slide-12
SLIDE 12

12

Color Matching Result !?

100

no match possible !?!?

400 450 500 550 600 650 700 nm 350

Werner Purgathofer 22

400 450 500 550 600 650 700 nm 350

  • bservers want to „subtract“

red light from the match side...!? for some colors observers want to reduce red light to negative values…!? but there is no negative light…! Color Matching Experiment Problem g g

green test

test +G+B

Werner Purgathofer 23

1

t R+

1 1

?

slide-13
SLIDE 13

13

“Negative” Light in a Color Matching Exp. if a match using only positive RGB values proved impossible, observers could simulate a subtraction of red from the match side by subtraction of red from the match side by adding it to the test side

green test

st + R G+B

Werner Purgathofer 24

tes G

1 1 1 1 100

CIE RGB Color Matching Functions

r(λ) b(λ)

?

g(λ)

Werner Purgathofer 25

350 400 450 500 550 600 650 700 nm 435.8 nm 546.1 nm 700.0 nm

slide-14
SLIDE 14

14

CIE XYZ problem solution: XYZ color system tristimulus system derived from RGB b d 3 i i i i based on 3 imaginary primaries all 3 primaries are imaginary colors

  • nly positive XYZ

values can occur! Y values can occur! 1931 by CIE (Commission Internationale de l’Eclairage)

Werner Purgathofer 26

X Z RGB vs. XYZ negative component disappears y() is the achromatic luminance sensitivity

r(λ) g(λ) b(λ) x(λ) y(λ) z(λ)

1

RGB system XYZ system

Werner Purgathofer 27

350 400 450 500 550 600 650 700 nm 350 400 450 500 550 600 650 700 nm

amounts of RGB primaries needed to display spectral colors amounts of CIE primaries needed to display spectral colors

slide-15
SLIDE 15

15

CIE Color Model Formulas XYZ color model C() = XX + YY + ZZ (X, Y, Z are primaries) normalized chromaticity values x y normalized chromaticity values x, y ( z = 1 – x – y ) Z Y X X x    Z Y X Y y   

1

Y complete description

  • f color: x, y, Y

Werner Purgathofer 28

1 1

X Z CIE Chromaticity Diagram identifying complementary colors

spectral colors

determining dominant wavelength, purity comparing color gamuts

Werner Purgathofer 29

spectral color positions are along the boundary curve

purple line

slide-16
SLIDE 16

16

Properties of CIE Diagram (2)

representing p g complementary colors on the chromaticity diagram

C1 C

Werner Purgathofer 30

C2 Properties of CIE Diagram (3)

determining dominant wavelength and purity with the

Cs

and purity with the chromaticity diagram C1 → Cs C2 → Cp?

C1 C Csp

Werner Purgathofer 31

2 p

→ complement Csp

C2 Cp

slide-17
SLIDE 17

17

Color Spaces (CS) Color Metric Spaces (CIE XYZ, L*a*b)

used to measure absolute values and differences - roots in colorimetry y

Device Color Spaces (RGB, CMY, CMYK)

used in conjunction with device

Color Ordering Spaces (HSV, HLS)

used to find colors according to some criterion

the distinction between them is somewhat

  • bscured by the prevalence of multi-purpose

RGB in computer graphics

Werner Purgathofer 32

RGB Color Model primary colors red, green, blue

white yellow (1,1,0) green (0,1,0) cyan

additive color model (for monitors)

white (1,1,1) red (1,0,0) cyan (0,1,1) blue (0,0,1) black (0,0,0)

Werner Purgathofer 33

C( C() = R ) = RR + G + GG + B + BB

magenta (1,0,1)

slide-18
SLIDE 18

18

RGB Color Model Images

Werner Purgathofer 34

3 views of the RGB color cube Gamuts of RGB Monitors monitor gamuts can be very different no monitor can no monitor can display all colors

Werner Purgathofer 35 Werner Purgathofer 35

slide-19
SLIDE 19

19

CMY Color Model primary colors cyan, magenta, yellow

red (0 1 1) magenta (0,1,0) blue (1,1,0) black

yellow subtractive color model (for hardcopy devices)

C=G+B, using C

yellow (0,0,1) (0,1,1) cyan (1,0,0) black (1,1,1) white (0,0,0)

“subtracts” R

Werner Purgathofer 36

                                B G R Y M C 1 1 1

green (1,0,1)

CMY Color Model Images

Werner Purgathofer 37

3 views of the CMY color cube

slide-20
SLIDE 20

20

Gamuts of CMY(K) Printers printer gamuts can be very different no printer can no printer can display all colors

Werner Purgathofer 38 Werner Purgathofer 38

Color Spaces (CS) Color Metric Spaces (CIE XYZ, L*a*b)

used to measure absolute values and differences - roots in colorimetry

Device Color Spaces (RGB, CMY, CMYK)

used in conjunction with device

Color Ordering Spaces (HSV, HLS)

used to find colors according to some criterion

the distinction between them is somewhat

  • bscured by the prevalence of multi-purpose

RGB in computer graphics

Werner Purgathofer 39

slide-21
SLIDE 21

21

Colour Ordering Systems (COS) primary aim: enable the user to intuitively choose colour values according to colour values according to certain criteria choice can yield single

  • r multiple colour values

examples: HSV, HLS, Munsell, NCS, RAL Design, Coloroid used in bottom-up parts of a design process sometimes physical samples are provided

Werner Purgathofer 40

HSV Color Model more intuitive color specification derived from the RGB color model:

when the RGB color cube is viewed along the diagonal from white to black, the color cube

  • utline is a hexagon

Werner Purgathofer 41

RGB Color Cube Color Hexagon

slide-22
SLIDE 22

22

HSV Color Model Hexcone color components:

hue (H) ( )  [0°, 360°] saturation (S)  [0, 1] value (V)  [0 1]  [0, 1]

Werner Purgathofer 42

HSV hexcone

HSV Color Model Hexcone color components:

hue (H) ( )  [0°, 360°] saturation (S)  [0, 1] value (V)  [0 1]  [0, 1]

Werner Purgathofer 43

HSV hexcone

slide-23
SLIDE 23

23

HSV Color Definition color definition

select hue, S=1, V=1 add black pigments, p g , i.e., decrease V add white pigments, i.e., decrease S

ti f th HSV

Werner Purgathofer 44

Shades S

cross section of the HSV hexcone showing regions for shades, tints, and tones

HLS Color Model color components:

hue (H) ( )  [0°, 360°] lightness (L)  [0, 1] saturation (S)  [0 1]

Werner Purgathofer 45

HLS double cone

 [0, 1]

slide-24
SLIDE 24

24

Color Model Summary Colorimetry:

CIE XYZ: contains all visible colours

Device Color Systems:

RGB: additive device color space (monitors) CMY(K): subtractive device color space (printers) YIQ: television (NTSC) (Y=luminance I=R Y Q=B Y) (Y=luminance, I=R-Y, Q=B-Y)

Color Ordering Systems:

HSV, HLS: for user interfaces

Werner Purgathofer 46

Color Symbolism: Some Aspects 6 to 11 basic colors categories, hierarchies d d t t t / li ti dependent on context / application large variation in use

what is red? what is blue? what is white? ! what is white? !

Werner Purgathofer 47

slide-25
SLIDE 25

25

Color in Religion Islam: green Buddhism: yellow orange yellow, orange, red & purple Hinduism:

  • range, blue

& blue-violet Christs: liturgical colors without theological connex

Werner Purgathofer 48

Political Symbol Colors parties revolutions / movements fl flags

Werner Purgathofer 49

slide-26
SLIDE 26

26

at home

water pipes electrical wires

Color Labeling

electrical wires waste separation

traffic

traffic signs traffic lights traffic lights parking concepts public transport

...

Werner Purgathofer 50

Color Labeling technology

resistors thermochrome colors thermochrome colors

nature

courtship [Balz] warning colors protective mimicry protective mimicry

[Tarnfarben]

Werner Purgathofer 51

slide-27
SLIDE 27

27

Color Effect: BLUE distance faithfulness, loyality d i desire phantasy male devine peace cold …

Werner Purgathofer 52

Color Effect: RED blood energy love female rich, noble labor movement warm corrections …

Werner Purgathofer 53

slide-28
SLIDE 28

28

Color Effect: GREEN profit young love h hope prematurity, unripe poison nature l neutral environment protection …

Werner Purgathofer 54

Color Effect: YELLOW sun

  • ptimism

li ht t enlightenment jealousy [Neid] stinginess [Geiz] warning color warm …

Werner Purgathofer 55

slide-29
SLIDE 29

29

Color Effect: BLACK end, death sadness ti ti negative emotions bad luck elegance emptiness ld cold …

Werner Purgathofer 56

Einführung in Visual Computing

186.822 186.822

Color and Color Models

The End