Professional Documents
Culture Documents
UNIT-I - Color Model
UNIT-I - Color Model
MULTIMEDIA
UNIT-I
ILLUMINATION AND COLOR
MODELS
•Color Models
2
WHAT IS COLOR ?
4
5
6
VISIBLE LIGHT IS AN
ELECTROMAGNETIC WAVE IN THE
RANGE 400-700 NM
Lightness or
brightness
refers to the
amount of
light the
color reflects
or transmits.
14
CIE
S = AX + BY + CZ can be normalized to
x = A/(A+B+C)
y = B/(A+B+C)
z = C/(A+B+C)
s = xX + yY + zZ, where x + y + z = 1
s lies in the plane x + y + z = 1 in 3D
=670 15
x =400 z
Chromaticity values depend only on dominant
wavelength and saturation and are independent of the
amount of luminous energy.
The points in the boundary are pure colors in the
electromagnetic spectrum, labeled according to
wavelength in nanometer from the red end to the violet
end of the spectrum.
A standard white light is formally defined by a light
source illuminant C marked by the center dot.
It identifies the complementary colors.
16
CIE chromaticity diagram
s'()= (x(), y())
By plotting x and y for all
visible colors, we obtain the
CIE chromaticity diagram.
The horseshoe shaped region
represent all visible
chromaticity values.
=670 17
x =400 z
CIE CHROMATICITY DIAGRAM
18
CIE CHROMATICITY DIAGRAM
19
USES OF CIE CHROMATICITY DIAGRAM
Any colors on the line l between two colors a and b
Is a convex combination of a and b
Is a legitimate color
can be generated by shining various amounts of a and b onto a
screen (like “tweening”)
Complementary colors
Any two colors on a line passing through white and added up to be
white are complementary e.g., e and f
redcyan greenmagenta blueyellow
20
USES OF CIE CHROMATICITY DIAGRAM
Define color gamuts
Range of colors that can be produced on a device
CRT monitor’s gamut is different from printer’s
Any choice of three primaries can never encompass all
visible colors
RGB are natural choices for primaries as they can cover the
largest part of the “horseshoe”
21
INTUITIVE COLOR CONCEPTS
tints
white pure color
tones
grays shades
black
lightness reduced
Tone: consequence of adding both white and black pigments to
pure pigments 22
INTUITIVE COLOR CONCEPTS
Tints, shades, and tones different colors of same hue
are produced
Grays
23
RGB COLOR MODEL
It is additive color model.
The RGB color model is one of the most widely used
color representation method in computer graphics. It use
a color coordinate system with three primary colors.
R(red), G(green), B(blue)
The primary purpose is for the display of images in
electronic systems such as television screens, computer
monitors and also used in digital photography.
24
RGB COLOR MODEL
Each primary color can take an intensity value ranging
from 0(lowest) to 1(highest). Mixing these three primary
colors at different intensity levels produces a variety of
colors. The collection of all the colors obtained by such a
linear combination of red, green and blue forms the cube
shaped RGB color space.
Additive
Result = individual contributions of each primary color added
together
C = rR + gG + bB, where r, g, b [0, 1]
R = (1, 0, 0)
G = (0, 1, 0)
B = (0, 0, 1) 25
RGB COLOR MODEL
26
COLOR CUBE
27
The corner of RGB color cube that is at the origin of the
coordinate system corresponds to black, whereas the
corner of the cube that is diagonally opposite to the
origin represents white.
The diagonal line connecting black and white
corresponds to all the gray colors between black and
white, which is also known as gray axis.
We begin with black and add on the appropriate primary
components to yield a desired color.
28
RGB COLOR MODEL
Color Cube
R + G = (1, 0, 0) + (0, 1, 0) = (1, 1, 0) = Y
R + B = (1, 0, 0) + (0, 0, 1) = (1, 0, 1) = M
B + G = (0, 0, 1) + (0, 1, 0) = (0, 1, 1) = C
R + G + B = (1, 1, 1) = W
1 – W = (0, 0, 0) = BLK
Grays = (x, x, x), where x (0, 1)
29
CMY COLOR MODEL
CMY: Complements of RGB
In this model cyan, magenta and yellow colors are used
as primary colors.
Used in light absorbing devices
Hardcopy output devices
this concept is used in the printer.
Subtractive
Color specified by what is subtracted from white light
If we subtract red from white, what remains consists of green
and blue which is cyan. The coordinate system of CMY
model use the three primaries’ complementary colors
C(cyan), M(magenta) and Y(yellow)
30
CMY COLOR MODEL
31
COLOR CUBE
32
CMY COLOR MODEL
W = (0, 0, 0) B = (1, 1, 1)
Conversion from RGB to CMY
C R
M 1 G
Y B
R C
G
1 M 33
B Y
CMY COLOR MODEL
34
YIQ COLOR MODEL
The luminance-inphase-quadrature model is a recording of
RGB for color television.
This model was designed to separate chrominance(the
information that defines the color of a television image)
(நிறப்பொலிவு) from luminance(brightness of the
image) (ஒளிர்வு).
This is used for color TV. Here is the luminance (the only
component necessary for B&W-TV).
Y-Channel contains Luminance information
35
YIQ COLOR MODEL
YIQ
Y: luminance
I, Q: chromaticity
Only Y shown in black-and-white TV
37
HSV COLOR MODEL
HSV = Hue, Saturation, and Value
A.k.a. HSB, where B is Brightness
RGB, CMY, and YIQ: hardware-oriented
HSV and HLS: user-oriented
38
HSV COLOR MODEL
Color Cube Hexcone
39
HSV COLOR MODEL
W = (-, 0, 1)
B = (-, 0, 0)
R = (0, 1, 1)
Y = (60, 1, 1)
:
M = (300, 1, 1)
Adding white pigments S
40
HSV COLOR MODEL
True color system: 16 million colors
Q: Do we need that many?
41
HLS COLOR MODEL
HLS: Hue, Lightness, and Saturation
Cylinder coordinate system
Space: double cone
base is from the hexagon as in HSV
(h, l, s), where h [0, 360) and s, v [0, 1]
hue: angle round the base
lightness: axis through the center
W = (-, 0, 1)
B = (-, 0, 0)
42
HLS COLOR MODEL
Double cones
white
pure h
color
black 43