Académique Documents
Professionnel Documents
Culture Documents
Elements of Colour
Color Fundamentals
Color Fundamentals
Color Fundamentals
6 to 7 million cones in the human eye can be divided into three principal sensing categories, corresponding roughly to red, green, and blue. 65%: red 33%: green 2%: blue (blue cones are the most sensitive)
Color Fundamentals
all depends on how much the different cones are stimulated It is possible to have two different spectra that stimulate cones the same way
o Called a metamer
To
a person, these colors look the same, but they are (in some sense) completely different
will never be a purple laser Purple comes from blue (short wavelength) and red (long wavelength) light
o More precisely, the sensation that we call purple comes from the blue and red cones being stimulated
And no others!
Human Eye
The photosensitive part of the eye is called the retina. The retina is largely composed of two types of cells, called rods and cones. Only the cones are responsible for color perception.
Cones
Cones are most densely packed within a region of the eye called the fovea There are three types of cones, referred to as S, M, and L. They are roughly equivalent to blue, green, and red sensors, respectively.
o Their peak sensitivities are located at approximately 430nm, 560nm, and 610nm for the "average" observer.
Spectrum is encoded into three values that correspond to each type of cone - trichromacy
10
Non-uniform distribution
Blue Red
cones are about 33%, fairly evenly distributed Green are 64% in the fovea, about 55% elsewhere
Color constancy
As
the spectrum of the illuminating light changes, so does the pattern of cone stimulus
o Yet your red coat looks the same as you walk outside! o No one has a good (computational) understanding of this problem
white, black, red, green, yellow, blue, brown, purple, pink, orange, gray
is colored because of the spectrum it absorbs (subtracts from the incident light)
o Red paint absorbs non-red photons o Color filters are another example
Lights
The
Subtractive colors
Additive colors
CCD
19
Color in Cameras, Scanners and Monitors is generated from 3 primary colors - Red, Green and Blue
NOTE: The 3 sensors generate 3 monochrome images (the color is created in the brain)
In printers, the inks subtract the light using three Subtractive primaries
Red Yellow Magenta
Device Independent
XYZ CIE L*a*b*
Reflector R()
CIE Chromaticity diagram shows all the colors we see (color gamut of eye)
L* = Lightness (Luminance) (0-100) a* = colors (Chrominance1) from Red to Green b*= (Chrominance2) colors from blue to yellow
Color Spaces
Device dependent Device In-dependent
R G B
X Y Z
CIE Lab
is a combination of Source, Subject and Detector Color Spaces are universally agreed upon, numerical representations of color
o Rgb AND Cmyk are device dependent color spaces o RGB + source + eye = XYZ (a device independent color space) o XYZ + perceptual uniformity =Lab
Lets
manage color !!
Representing Colour
How
can a particular colour be precisely and unambiguously described? Verbal descriptions such as Dark blue, Bright red, Slimy green are too broad Description of its spectral density curve, by specifying its level at a number of wavelengths is awkward, and too specific, as many different spectral shapes produce the same perceived colour
every colour should be described uniquely in some numeric way How many numbers are required to define a colour? What coding scheme can be used to map colours into numbers, and vice versa? There are several different conventions for coding colours, what are they, and how do they relate to each other? International standard for colour description?
Color Fundamentals
The characteristics generally used to distinguish one color from another are brightness, hue, and saturation brightness: the achromatic notion of intensity. hue: dominant wavelength in a mixture of light waves, represents dominant color as perceived by an observer. saturation: relative purity or the amount of white light mixed with its hue.
30
on the variety of spectra that produce the same perceived colour Specifies a spectrum having this simple shape: B D A
400 620 700
Luminance is the total power in the light: o L = (D - A)B + AW (W = ?) Hue is the location of the dominant wavelength, i.e. the colour of the main pure light present (in previous e.g. its red) Saturation is the purity of the light, i.e. the percentage of luminance that resides in the dominant component: o
S=
(D - A)B L
X 100%
dominant wavelength, luminance and saturation fully define a colour When D = A, saturation is 0, and white light is seen. When A=0, a pure light is seen. Pastel colours contain much white light, and are therefore unsaturated. The eye can distinguish about 200 different hues, and about 20 different saturations (depending on the hue).
luminance and hue are useful concepts for describing colour However, not very easy to measure these values when presented with a sample colour It does, however, illustrate the fact that colour perception is three-dimensional, i.e. that any colour may be described uniquely by exactly three numbers Any colour can be represented as a point in a three-dimensional colour space.
In order to achieve a representation which uses only positive mixing coefficients, the CIE ("Commission Internationale d'Eclairage in 1931) defined three new hypothetical light sources, x, y, and z, which yield positive matching curves:
If we are given a spectrum and wish to find the corresponding X, Y, and Z quantities, we can do so by integrating the product of the spectral power and each of the three matching curves over all wavelengths. The weights X,Y,Z form the three-dimensional CIE XYZ space, as shown above.
CIE Standard
Standard based on three primaries which are able to produce ALL visible colours. Often it is convenient to work in a 2D color space This is commonly done by projecting the 3D color space onto the plane X+Y+Z=1, yielding a CIE chromaticity diagram CIE chromaticity diagram is the view you would get looking at the plane X+Y+Z=1, straight down the blue axis Provides a standard reference for comparing other color systems
37
complementary colors
colors which can be mixed together to yield white light. For example, colors on segment CD are complementary to the colors on segment CB. The spectral color which can be mixed with white light in order to reproduce the desired color. color B in the above figure is the dominant wavelength for color A. colors not having a dominant wavelength. For example, color E in the above figure.
dominant wavelength
non-spectral colors
38
Color Gamuts
Color gamuts are represented on the chromaticity diagram as straight line segments or polygons Three primaries (from the vertices of the orange triangle) can only generate colors on the edges or inside the bounding edges of the triangle. Hence, no set of 3 primaries can be additively combined to generate all perceived colors
o Because no triangle within the diagram can encompass all colors
Color gamuts traditionally used to compare video monitors and hard-copy devices
39
Tri-stimulus theory
Any colour can be constructed as a linear combination of three primary colours, e.g. C = n1R + n2G + n3B (n1, n2, n3 scalars) (doesnt have to be red, green and blue, can be any three primaries) e.g. RGB(0,1,0) would be pure green, CMY(.2,.3,.5) would be a yellow Problem! To produce all perceivable colours, some of the above scalars must be negative. This makes no physical sense. Light cannot be removed that isnt there.
40
42
43
Pixel depth The total number of colors in a 24-bit RGB image is (28)3 = 16,777,216
44
45
Safe RGB colors (or safe Web colors) are reproduced faithfully, reasonably independently of viewer hardware 46 capabilities
47
C 1 R M = 1 G Y 1 B
Equal amounts of the pigment primaries, cyan, magenta, and yellow should produce black. In practice, combining these colors for printing produces a muddy-looking black. To produce true black, the predominant color in printing, the fourth color, black, is added, giving rise to the CMYK color model.
Digital Image Processing
48
49
50
51
52
53
Given an image in RGB color format, the H component of each RGB pixel is obtained using the equation
H = 360
if B G if B>G
3 S = 1 [min( R, G, B)] ( R + G + B)
55
1 I = ( R + G + B) 3
56
H = H 120 R = I (1 S )
H = H 240 G = I (1 S )
60
61
62