Color Models
Color Models
Color Models
1
Color Models
Color model is an orderly system for creating a whole range of colors
3
Color Models
The RGB Color Model
4
Color Models
YCbCr (YPbPr)
YUV
YIQ
5
The RGB Color Model
The RGB color model is one of the most widely used color
6
The RGB Color Model
Color image has 3 planes representing 3 primary (or additive) colors of
light:
R (Red), G (Green), and B (Blue).
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.
7
The RGB Color Model
The number of bits to represent a pixel is called pixel depth.
If each element of a plane has 8-bit depth, each RGB color pixel has 24-
bit depth.
The term full-color image is used often to denote a 24-bit RGB color
image.
With 24 bits, we can have 224 = 16,777,216 colors.
of red, green and blue forms the cube shaped RGB color space.
8
9
The RGB Color Model
10
The RGB Color Model
The corner of RGB color cube that is at the origin of the coordinate
gray colors between black and white, which is also known as gray axis.
In the RGB color model, an arbitrary color within the cubic color space
11
The RGB Color Model
Color specification using the RGB model is an additive process.
12
RGB-24 Bit Color Cube
13
CMY Color Model
CMY
C = Cyan,
M= Magenta,
Y= Yellow
14
CMY Color Model
The CMY color model use a subtraction process and this concept is
used in the printer.
In CMY model, we begin with white and take away the appropriate
15
CMY Color Model
Example
If we subtract red from white, what remains consists of green and blue
which is cyan.
16
CMY Color Model
17
CMY Color Model
The corner of the CMY color cube that is at (0, 0, 0) corresponds to
white, whereas the corner of the cube that is at (1, 1, 1) represents black.
The following formulas summarize the conversion between the two
color models:
18
CMY Color Model Cont…
Printers and copiers use CMY data.
19
CMYK Color Model
CMYK
C = Cyan,
M= Magenta,
Y= Yellow
K= Black
20
21
CMYK Color Model Cont…
This model uses K for black as additional to the CMY
Model
22
HSI Color Model
HSI
H = Hue
S= Saturation
I= Intensity
23
HSI Color Model
Hue describes the pure color
Saturation gives measure to which pure color is
diluted by white light
Intensity is a synonym of Brightness
24
RGB to HSI Conversion
25
RGB to HIS Conversion Cont…
26
With RGB values as:
(100,100,100) (150,0,0) (0,150,0)
(255,0,0) (255, 255, 255) (0,0,0)
(100,150, 200) (0,0, 255) (100, 200,150)
27
RGB to HSI Conversion:
Compute HSI value of pixel (100,150,200)
28
29