1 light and color. 2/118 topics the human visual system displaying intensity and luminance display...

124
1 Light and Color

Upload: brent-lloyd

Post on 05-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

1

Light and Color

Page 2: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

2/118

Topics

The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display of Color Color Models

Page 3: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

3/118

Structure of the Human Eye

Image taken from http://hyperphysics.phy-astr.gsu.edu/hbase/vision/eye.html

Page 4: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

4/118

Main Parts of the Eye

Cornea

Page 5: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

5/118

Main Parts of the Eye

Cornea Provides most refraction

Page 6: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

6/118

Main Parts of the Eye

Cornea Iris

Page 7: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

7/118

Main Parts of the Eye

Cornea Iris

Opens and Closes to let in more/less light

Page 8: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

8/118

Main Parts of the Eye

Cornea Iris

Opens and Closes to let in more/less lightHole is the pupil

Page 9: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

9/118

Main Parts of the Eye

Cornea Iris Lens

Page 10: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

10/118

Main Parts of the Eye

Cornea Iris Lens

Flexible - muscles adjust shape

Page 11: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

11/118

Main Parts of the Eye

Cornea Iris Lens

Flexible - muscles adjust shapeAllows fine-detail focus

Page 12: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

12/118

Main Parts of the Eye

Cornea Iris Lens Retina

Page 13: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

13/118

Main Parts of the Eye

Cornea Iris Lens Retina

Layer of receptor cells at back of eye

Page 14: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

14/118

Main Parts of the Eye

Cornea Iris Lens Retina

Layer of receptor cells at back of eye Center of focus is the fovea

Page 15: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

15/118

Main Parts of the Eye

Cornea Iris Lens Retina

Layer of receptor cells at back of eye Center of focus is the fovea Optic nerve collects information from retina, and

brings to the back of the brainCauses a blind spot!Cephalopods (octopus) do not have blind spots

Page 16: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

16/118

Focusing Light

For a point in focal plane, all light emitting from that point goes to same point on retina

Page 17: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

17/118

Focusing Light

For a point not in focal plane, light gets spread across retina

Page 18: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

18/118

Display Screens and Focus

For the usual (current) display systems, we maintain one focus planeEven for stereo displaysEven if the image tries to simulate

differing focusThis is different than nature…

Page 19: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

19/118

Rods

Distinguish brightness only Best response to blue-green light Prevalent except at fovea (more peripheral) About 100x more sensitive than cones About 100 million in retina

Page 20: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

20/118

Cones

Color response Centered around fovea

About 147,000 cones/mm2 at fovea2mm away from fovea: 9,500 cones/mm2

6.3 - 6.8 million in retina

Page 21: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

21/118

How We See

Individual receptors give response Vision is limited by density of cells in part of

brainHigh detail, good color at center of visionPeripheral vision can see dimmer light, but

mainly black & white, and low resolution

Page 22: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

22/118

Vision in the Brain

Signals are carried by optic nerve to brain Brain processes to reconstruct image

Best understood part of brain function, but still many ill-understood parts

Many aspects of vision are “hard-wired”Can lead to optical effects with significant

graphics impact• Mach banding.• Filling in of “blind spot”

Page 23: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

23/118

Topics

The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display of Color Color Models

Page 24: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

24/118

Intensity and Luminance

Intensity/Luminance: How much light energy there isThe amount of energy carried by photons

Page 25: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

25/118

Intensity and Luminance

Intensity/Luminance: How much light energy there isThe amount of energy carried by photons

Brightness: the perceived intensityEye does not respond to equal intensity

changes equallyEye notices the ratio of intensities

Page 26: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

26/118

Brightness Levels

Intensity changes of 1->2, 2->4, 4->8 appear the sameExample: 3-way lightbulb

50->100 seems like bigger change than 100 -> 150

Display devices might limit the number of discrete intensity levels available

Page 27: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

27/118

Brightness in Display Devices

Assume:The maximum intensity of a display is 1.0The minimum is I0

It can display n+1 intensity levels Then, to get equal brightness increments, it

should display levels: I0, rI0, r2I0, …, rnI0=1.0

Page 28: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

28/118

Brightness Levels

Human eye generally can notice r>1.01 So, to have a “smooth” display, we need to make

sure that r<1.01i.e. we need enough “levels” of display

For a given display, we need

1.01nI0=1.0

1.01n = 1.0/I0

n log 1.01 = - log I0

n = -log I0 / log 1.01

n = -log1.01I0

Page 29: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

29/118

Gamma Correction

Designed to compensate for how humans perceive intensity of light Iout = k Iin

Iin, Iout = intensityk, are device-specific terms

Typically, = 2.0 to 2.5 (most displays use 2.2) Combining colors/intensity is not linear! Must

convert to linear space, combine, convert back

Page 30: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

30/118

Original 1080p

Page 31: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

31/118

YouTube 360p

Page 32: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

32/118

Gamma Corrected 360p

Page 33: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

33/118

Original 1080p

Page 34: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

34/118

Gamma and non-CRT Displays

Gamma is meant to model CRTs only Other displays (e.g. LCD) may have very different

response curves between intensity and value sent They do not match the gamma curve Often manufacturers adjust responses to try to

mimic CRT behavior Rarely is any device’s response curve exactly

what is desired/modeled This can get much more complicated

Major effort just to compensate for gamma

Page 35: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

35/118

Dynamic Range

1/I0 is called dynamic range The ratio of maximum to minimum intensity

(remember, we set 1.0 = max) Varies by display device This is the maximum a device can possibly

display vs. the minimum it can display.

Page 36: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

36/118

Dynamic Range

1/I0 is called dynamic range The ratio of maximum to minimum intensity

(remember, we set 1.0 = max) Varies by display device This is the maximum a device can possibly

display vs. the minimum it can display. Contrast: the maximum vs. minimum it can display

at the same time. i.e. for one image on screen, maximum vs.

minimum.

Page 37: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

37/118

Topics

The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display of Color Color Models

Page 38: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

38/118

Limited Display Levels

We can’t always get a continuous range of display levels Printing: either ink is there or not there

We can adjust amount of ink (i.e. how much space it takes), but not its intensity

Other display might limit the number of levels – e.g. 256 levels of intensity.

We need ways to mimic continuous colors with discrete levels

Page 39: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

39/118

Example

Page 40: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

40/118

Example

Page 41: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

41/118

Halftoning/Dithering

Idea: Eyes integrate over an areaAll light hitting one receptor cell is

combined.Eye only cares about the integrated

information from an entire area So, we can get varying intensity by filling in

fractions of areas

vs.

Page 42: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

42/118

Halftoning

Subdivide image into blocks of pixels. You will lose resolution! e.g. a 100x100 region divided into 4x4 blocks of

pixels can only display a 25x25 image. The number of intensity levels is related to the

number of pixels in a block 2x2 = 5 intensity levels 3x3 = 10 intensity levels nxn = n2+1 intensity levels

Page 43: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

43/118

Example: 2x2 block

Level 0: Intensities 0.0 – 0.2

Level 1: Intensities 0.2 – 0.4

Level 2: Intensities 0.4 – 0.6

Level 3: Intensities 0.6 – 0.8

Level 4: Intensities 0.8 – 1.0

Page 44: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

44/118

Example Image

0.00 0.20 1.00 0.02 0.50 0.20

0.15 0.05 0.01 0.05 0.08 0.90

0.20 0.25 0.25 0.45 0.70 0.60

0.22 0.25 0.60 0.90 0.50 0.80

0.30 0.50 0.80 0.90 1.00 0.90

0.40 0.20 0.61 0.61 0.75 0.95

Page 45: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

45/118

Example Image

0.00 0.20 1.00 0.02 0.50 0.20

0.15 0.05 0.01 0.05 0.08 0.90

0.20 0.25 0.25 0.45 0.70 0.60

0.22 0.25 0.60 0.90 0.50 0.80

0.30 0.50 0.80 0.90 1.00 0.90

0.40 0.20 0.61 0.61 0.75 0.95

Page 46: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

0.10 0.27 0.42

0.23 0.55 0.65

0.35 0.73 0.90

46/118

Example Image

Average Intensities over Blocks Halftone Image

Page 47: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

47/118

2x2 Halftone Example

Page 48: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

48/118

2x2 Halftone Example

Page 49: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

49/118

3x3 Halftone Example

Page 50: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

50/118

Halftoning Patterns

The pattern you use to fill makes a difference.Want a “random” pattern, so that artificial

artifacts don’t appearBrain is very good at recognizing some

things, like lines

Page 51: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

51/118

Example: 3x3 block

Bad pattern:

Better pattern:

.36 .42

.45 .51

.36 .42

.45 .51

Page 52: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

52/118

3x3 Bad Halftone Example

Page 53: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

53/118

3x3 Good Halftone Example

Page 54: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

54/118

Dithering

Halftoning loses resolution – this is bad. Dithering:

Keep same resolution Change halftoning pattern into a

probability/threshold function (dither pattern) Overlay dither pattern on entire image Fill in a pixel iff it is of higher intensity than the

dither value

Page 55: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

55/118

Dither Pattern Example

Intensities 0.0 – 0.2

Intensities 0.2 – 0.4

Intensities 0.4 – 0.6

Intensities 0.6 – 0.8

Intensities 0.8 – 1.0

Halftoning Patterns

Page 56: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

56/118

Dither Pattern Example

Intensities 0.0 – 0.2

Intensities 0.2 – 0.4

Intensities 0.4 – 0.6

Intensities 0.6 – 0.8

Intensities 0.8 – 1.0

0.2 0.6

0.8 0.4

Cells are filled in only when intensity is larger than the given value

Page 57: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

57/118

Dither Pattern Example

0.34 0.45 0.56 0.67

0.42 0.65 0.78 0.88

0.21 0.33 0.57 0.77

0.01 0.22 0.44 0.55

0.2 0.6

0.8 0.4

Overlay dither pattern

Page 58: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

58/118

Dither Pattern Example

0.34 0.45 0.56 0.67

0.42 0.65 0.78 0.88

0.21 0.33 0.57 0.77

0.01 0.22 0.44 0.55

0.2 0.6

0.8 0.4

Fill those cells largerthan dither value

Page 59: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

59/118

Dither Pattern Example

0.34 0.45 0.56 0.67

0.42 0.65 0.78 0.88

0.21 0.33 0.57 0.77

0.01 0.22 0.44 0.55

0.2 0.6

0.8 0.4

Fill those cells largerthan dither value

Page 60: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

60/118

Dither Pattern Example

0.34 0.45 0.56 0.67

0.42 0.65 0.78 0.88

0.21 0.33 0.57 0.77

0.01 0.22 0.44 0.55

0.2

0.8 0.4

Fill those cells largerthan dither value

Page 61: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

61/118

Dither Pattern Example

0.34 0.45 0.56 0.67

0.42 0.65 0.78 0.88

0.21 0.33 0.57 0.77

0.01 0.22 0.44 0.55

0.2

0.4

Fill those cells largerthan dither value

Page 62: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

62/118

Dither Pattern Example

0.34 0.45 0.56 0.67

0.42 0.65 0.78 0.88

0.21 0.33 0.57 0.77

0.01 0.22 0.44 0.55

0.2

0.4

Fill those cells largerthan dither value

Page 63: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

63/118

Dither Pattern Example

0.34 0.45 0.56 0.67

0.42 0.65 0.78 0.88

0.21 0.33 0.57 0.77

0.01 0.22 0.44 0.55

0.2

0.4

Repeat for rest of image

Page 64: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

64/118

3x3 Halftone Example

Page 65: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

65/118

3x3 Dither Example

Page 66: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

66/118

Error Diffusion

Another way to set levels without changing resolution

Assume pixels being visited in some orderLeft to right, top to bottom

Roundoff error (from filling/not filling) gets diffused to adjacent pixels not visited yet

Can be combined with halftoning/dithering

Page 67: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

67/118

Error Diffusion

Pattern:

Example: Assume we can display levels in increments of 50.

Error 7/16

3/16 5/16 1/16

66 77 107

14 27 60 70

Given:

Page 68: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

68/118

Error Diffusion

Pattern:

Example: Assume we can display levels in increments of 50.

Error 7/16

3/16 5/16 1/16

66 77 107

14 27 60 70

Round to 50

Page 69: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

69/118

Error Diffusion

Pattern:

Example: Assume we can display levels in increments of 50.

Error 7/16

3/16 5/16 1/16

50 +16

77 107

14 27 60 70

Round to 50Error of 16

Page 70: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

70/118

Error Diffusion

Pattern:

Example: Assume we can display levels in increments of 50.

Error 7/16

3/16 5/16 1/16

50 77+7 107

14+3 27+5 60+1 70

Round to 50Error of 16

Page 71: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

71/118

Error Diffusion

Pattern:

Example: Assume we can display levels in increments of 50.

Error 7/16

3/16 5/16 1/16

50 84 107

17 32 61 70

Page 72: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

72/118

Error Diffusion

Pattern:

Example: Assume we can display levels in increments of 50.

Error 7/16

3/16 5/16 1/16

50 84 107

17 32 61 70

Round to 100

Page 73: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

73/118

Error Diffusion

Pattern:

Example: Assume we can display levels in increments of 50.

Error 7/16

3/16 5/16 1/16

50100-16

107

17 32 61 70

Round to 100Error of -16

Page 74: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

74/118

Error Diffusion

Pattern:

Example: Assume we can display levels in increments of 50.

Error 7/16

3/16 5/16 1/16

50 100 107-7

17 32-3 61-5 70-1

Round to 100Error of -16

Page 75: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

75/118

Error Diffusion

Pattern:

Example: Assume we can display levels in increments of 50.

Error 7/16

3/16 5/16 1/16

50 100 100

17 29 56 69

Page 76: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

76/118

3x3 Dither Example

Page 77: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

77/118

Error Diffusion Example

Page 78: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

78/118

Topics

The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display of Color Color Models

Page 79: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

79/118

Seeing Color

What is color?

Page 80: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

Seeing Color

http://www.johnsadowski.com/big_spanish_castle.html 80/118

Page 81: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

81/118

Light

Light is carried by photons, traveling with different wavelengths/frequencies

c=Speed of light = c (assume constant)Wavelength = Frequency = So, Wavelength & Frequency are

interchangable, and inverse of each other

Page 82: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

82/118

Visible Light

Image taken from http://www.andor.com/image_lib/lores/introduction/introduction%20(light)/intlight%201%20small.jpg

Page 83: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

83/118

Visible Light

The response of the cells in our eye let us see from ~400nm (violet) to ~700nm (red).

If all light arriving is one wavelength, we see it as one color.

Page 84: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

84/118

Visible Light

Images taken from http://www.newport.com/Information-on-Oriel-Spectral-Irradiance-Data/383232/1033/catalog.aspx

The response of the cells in our eye let us see from ~400nm (violet) to ~700nm (red).

If all light arriving is one wavelength, we see it as one color.

But, Light usually comes in as a spectrum – different intensities at all the various wavelengths.

Page 85: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

85/118

Tristimulus Theory

There are 3 kinds of cones in the eye that respond differently to different wavelengths of light.

Page 86: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

86/118

Tristimulus Theory

There are 3 kinds of cones in the eye that respond differently to different wavelengths of light.

Anything that stimulates these cones in the same way appears as the same color. This is fundamental to our ability to reproduce

different colors! A monitor can stimulate the cones to make it

appear that a particular color is being generated.

Page 87: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

87/118

Response of Cones

3 Cones, Rods respond to light differently

Image taken from http://www.unm.edu/~toolson/human_cone_response.htm

Page 88: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

88/118

Receptor Response

Though cones often called “red, green, blue”, the peak responses are actually in the yellow, yellow-green, and violet.

Altogether, overall response is Gaussian-like, centered on yellow/greenSun and plants…

Image taken from http://www.unm.edu/~toolson/human_cone_response.htm

Page 89: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

Receptor Response

89/118

Page 90: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

90/118

Tristimulus

Since 3 different cones, the space of colors is 3-dimensional.

We need a way to describe color within this 3 dimensional space.

We want something that will let us describe any visible color…

Page 91: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

91/118

Topics

The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display of Color Color Models

Page 92: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

92/118

The CIE XYZ system

CIE – Comission Internationale de l’Eclairage International Commission on Illumination Sets international standards related to light

Defined the XYZ color system as an international standard in 1931

X, Y, and Z are three Primary colors. All visible colors can be defined as a combination of these three colors. Defines the 3 dimensional color space

Page 93: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

93/118

Color Matching Functions

Given an input spectrum, , we want to find the X, Y, Z coordinates for that color.

Color matching functions, , , and

tell how to weight

the spectrum when

integrating:

dzpZ

dypY

dxpX

)()(

)()(

)()(

)(x )(y )(z

)(p

Image taken from http://upload.wikimedia.org/wikipedia/commons/8/87/CIE1931_XYZCMF.png

Page 94: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

94/118

XYZ space

The visible colors form a “cone” in XYZ space.For visible colors, X,

Y, Z are all positive.But, X, Y, and Z

themselves are not visible colors!

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 95: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

95/118

Luminance and Chromaticity

The intensity (luminance) is just X+Y+Z.Scaling X, Y, Z just increases intensity.We can separate this from the remaining

part, chromaticity. Color = Luminance + Chromaticity

Chromaticity is 2D, Luminance is 1D To help us understand chromaticity, we’ll fix

intensity to the X+Y+Z=1 plane.

Page 96: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

96/118

Chromaticity Diagram

Project the X+Y+Z=1 slice along the Z-axis

Chromaticity is given by the x, y coordinates

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 97: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

97/118

White Point

White: at the center of the diagram.

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 98: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

98/118

Spectral Colors

Visible Spectrum along outside curve

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 99: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

99/118

Saturation

As you move on line from white to edge, you increase the saturation of that color.

Royal blue, red: high saturation

Carolina blue, pink: low saturation

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 100: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

100/118

Hue

Hue is the “direction” from white.

Combined with saturation, it gives another way to describe color

Also called dominant wavelength

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 101: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

101/118

Non-Spectral Colors

Non-spectral colors: do not correspond to any wavelength of light. i.e. not seen in

rainbowe.g. maroon,

purple, magenta

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 102: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

102/118

If we have two colors, A and B, by varying the relative intensity, we can generate any color on the line between A and B.

Combining Two Colors

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 103: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

103/118

Complementary Colors

Complementary colors are those that will sum to white.

That is, white is halfway between them.

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 104: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

104/118

Combining Three Colors

If we have three colors, A, B, and C, by varying the relative intensity, we can generate any color in the triangle between them.

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 105: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

105/118

Gamut

Display devices generally have 3 colors (a few have more).e.g. RGB in monitor

The display can therefore display any color created from a combination of those 3.

This range of displayable colors is called the gamut of the device.

Page 106: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

106/118

Differing Gamuts

Different devices have different gamutse.g. differing

phosphors So, RGB on one

monitor is not the same as RGB on another

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 107: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

107/118

Device Gamuts

For monitors, typically have colors in the Red, Green, Blue areasHelps cover lots of visible spectrum

But, not all (in fact, nowhere close to all) of the visible spectrum is ever represented

Since all 3 colors are visible, can’t possibly encompass full visible spectrum!

Page 108: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

108/118

Gamuts

Red: typical monitor gamut

Blue: maximum gamut with 3 phosphors

Image taken from http://fourier.eng.hmc.edu/e180/handouts/color1/node27.html

Page 109: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

What does cyan look like?

109/118

Page 110: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

110/118

Topics

The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display of Color Color Models

Page 111: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

111/118

Color Models

CIE’s XYZ system is a standard, but not very intuitive.

As we saw with saturation and hue, there’s more than one way to specify a color.

A variety of color models have been developed to help with some specifications.

Page 112: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

112/118

RGB

Red, Green, Blue Common specifications for most monitors

Tells how much intensity to use for pixels Note: Not standard – RGB means different

things for different monitors Generally used in an additive system

Each adds additional light (e.g. phosphor)Combine all three colors to get white

Page 113: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

113/118

CMY

Cyan, Magenta, Yellow Commonly used in printing Generally used in a subtractive system:

Each removes color from reflected lightCombine all three colors to get black

Conceptually, [C M Y] = [1 1 1] – [R G B]Complimentary colors to RGB

Page 114: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

114/118

CMYK

Cyan, Magenta, Yellow, Black Comes from printing process – since CMY

combine to form black, can replace equal amounts of CMY with Black, saving ink.

K = min(C, M, Y) C = C-K M = M-K Y = Y-K

Page 115: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

115/118

YIQ / YUV

NTSC, PAL standards for broadcast TV Backward compatible to Black and White TV Y is luminance – only part picked up by

Black and White Televisions Y is given most bandwidth in

signal I, Q channels (or U,V) contain

chromaticity information

Page 116: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

116/118

HSV

Hue, Saturation, Value Used as a user-friendly

way to specify color. Hue – angle around

cone Saturation – how far

from center Value (luminance) –

how high up cone (black at bottom, white at top center).

Image taken from http://www.mandelbrot-dazibao.com/HSV/HSV.htm

Page 117: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

117/118

Lab and Luv

Perceptually-based color spaces (CIE standards)

Idea: want the distance between colors in the color space to correspond to intuitive notion of how “similar” colors are

Not perfect, but much better than XYZ or RGB color spaces.

Page 118: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

118/118

Representing Color

Generally, store 3 color channels in equal bits Not necessary, though, e.g. YIQ Can sometimes get better mapping of color space

for an application by adjusting bitse.g. 10 bits R, 8 bits G, 6 bits B

Color indexing: give each color a numerical identifier, then use that as reference Good for specifying with a limited palette

Note: you can use dithering/halftoning with color channels, similar to how you would for achromatic light.

Page 119: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

119/118

Page 120: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

120/118

Dynamic Range and Contrast of Various Display Mediums

Display Type Dynamic Range Contrast

Newsprint 10

Printed Photo ~100

Slide Photo ~1000

CRT >10,000 75 - 219

LCD ~500 - 700 ~500 - 700

Plasma ~100 - 600 ~100 - 500

DLP 1381 274 - 332

Page 121: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

121/118

Main Parts of the Eye

Cornea Provides most refractionReshaped in refractive surgery

Corrects nearsightedness caused by elongation of the eyeball

Page 122: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

122/118

Main Parts of the Eye

Cornea Iris Lens

Flexible - muscles adjust shapeAllows fine-detail focusToughens with age, leading to reading

glassesCataracts form here

Page 123: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

123/118

Focusing Light

For a point not in focal plane, light gets spread across retinaAlso happens in

nearsightednessOur brain is good

at eliminating

these signals

Page 124: 1 Light and Color. 2/118 Topics The Human Visual System Displaying Intensity and Luminance Display Using Fixed Intensities Understanding Color Display

124/118

HLS

Hue, Lightness, Saturation

A variation on HSV, but with a double cone

Lightness: black at base (0), white at top (1)

Image taken from http://en.wikipedia.org/wiki/Image:Color_cones.png