Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible...

29
Color Models

Transcript of Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible...

Page 1: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Color Models

Page 2: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Color models,cont’d

Different meanings of color:

• painting

• wavelength of visible light

• human eye perception

Page 3: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Physical properties of light

Visible light is part of the electromagnetic radiation (380-750 nm)

1 nm (nanometer) = 10-10 m (=10-7 cm)

1 Å (angstrom) = 10 nm

Radiation can be expressed in wavelength () or frequency (f), c=f, where c=3.1010 cm/sec

Page 4: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Physical properties of light

White light consists of a spectrum of all visible colors

Page 5: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Physical properties of light

All kinds of light can be described by the energy of each wavelength

The distribution showing the relation between energy and wavelength (or frequency) is called energy spectrum

Page 6: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Physical properties of light

This distribution may indicate:

1) a dominant wavelength (or frequency) which is the color of the light (hue), cp. ED

2) brightness (luminance), intensity of the light (value), cp. the area A

3) purity (saturation), cp. ED - EW

Page 7: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Physical properties of light

Energy spectrum for a light source with a dominant frequency near the red color

Page 8: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Material properties

The color of an object depends on the so called spectral curves for transparency and reflection of the material

The spectral curves describe how light of different wavelengths are refracted and reflected (cp. the material coefficients introduced in the illumination models)

Page 9: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Properties of reflected light

Incident white light upon an object is for some wavelengths absorbed, for others reflected

E.g. if all light is absorbed => blackIf all wavelengths but one are absorbed

=> the one color is observed as the color of the object by the reflection

Page 10: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Color definitions

Complementary colors - two colors combine to produce white light

Primary colors - (two or) three colors used for describing other colors

Two main principles for mixing colors:

• additive mixing

• subtractive mixing

Page 11: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Additive mixing

• pure colors are put close to each other => a mix on the retina of the human eye (cp. RGB)

• overlapping gives yellow, cyan, magenta and white• the typical technique on color displays

Page 12: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Subtractive mixing

• color pigments are mixed directly in some liquid, e.g. ink

• each color in the mixture absorbs its specific part of the incident light

• the color of the mixture is determined by subtraction of colored light, e.g. yellow absorbs blue => only red and green, i.e. yellow, will reach the eye (yellow because of addition)

Page 13: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Subtractive mixing,cont’d

• primary colors: cyan, magenta and yellow, i.e. CMY

• the typical technique in printers/plotters

• connection between additive and subtractive primary colors (cp. the color models RGB and CMY)

Page 14: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Additive/subtractive mixing

Page 15: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Human color seeing

The retina of the human eye consists of cones (7-8M),”tappar”, and rods (100-120M), ”stavar”, which are connected with nerve fibres to the brain

Page 16: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Human color seeing,cont’d

Theory: the cones consist of various light absorbing material

The light sensitivity of the cones and rods varies with the wavelength, and between persons

The ”sum” of• the energy spectrum of the light• the reflection spectrum of the object• the response spectrum of the eyedecides the color perception for a person

Page 17: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Overview of color models

The human eye can perceive about 382000(!) different colors

Necessary with some kind of classification sys-tem; all using three coordinates as a basis:

1) CIE standard2) RGB color model3) CMY color model (also, CMYK)4) HSV color model5) HLS color model

Page 18: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

CIE standard

Commission Internationale de L’Eclairage (1931)

• not a computer model

• each color = a weighted sum of three imaginary primary colors

Page 19: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

RGB model

• all colors are generated from the three primaries

• various colors are obtained by changing the amount of each primary

• additive mixing (r,g,b), 0≤r,g,b≤1

Page 20: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

RGB model,cont’d

• the RGB cube• 1 bit/primary => 8 colors, 8 bits/primary => 16M colors

Page 21: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

CMY model

• cyan, magenta and yellow are comple-mentary colors of red,green and blue, respectively

• subtractive mixing• the typical printer

technique

Page 22: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

CMY model,cont’d

• almost the same cube as with RGB; only black<-> white

• the various colors are obtained by reducing light, e.g. if red is absorbed => green and blue are added, i.e cyan

Page 23: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

RGB vs CMY

If the intensities are represented as 0≤r,g,b≤1 and 0≤c,m,y≤1 (also coordinates 0-255 can be used), then the relation between RGB and CMY can be described as:

cmy

111

rgb

Page 24: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

CMYK model

For printing and graphics art industry, CMY is not enough; a fourth primary, K which stands for black, is added.

Conversions between RGB and CMYK are possible, although they require some extra processing.

Page 25: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

HSV model

• HSV stands for Hue-Saturation-Value• described by a hexcone derived from the

RGB cube

Page 26: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

HSV model,cont’d

• Hue (0-360°); ”the color”, cp. the dominant wave-length (128)

• Saturation (0-1); ”the amount of white” (130)

• Value (0-1); ”the amount of black” (23)

Page 27: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

HSV model,cont’d

The numbers given after each ”primary” are estimates of how many levels a human being is capable to distinguish between, which (in theory) gives the total number of color nuances:

128*130*23 = 382720

In Computer Graphics, usually enough with:

128*8*15 = 16384

Page 28: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

HLS model

Another model similar to HSV

L stands for Lightness

Page 29: Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.

Color models

Some more facts about colors:

The distance between two colors in the color cube is not a measure of how far apart the colors are perceptionally!

Humans are more sensitive to shifts in blue (and green?) than, for instance, in yellow