Mutlimedia
Mutlimedia
❑ Color Space
o RGB color space
array or spectrum.
▪ This gives a variety of ways to describe colors that have an impact on the
5
way we process a color image.
Color Spaces
6
RGB Color Space
▪ RGB stands for Red, Green, Blue.
o Red
o Green
o Blue
▪ Absence of all colors create black and presence of the three colors form white.
▪ Pure white (255,255,255) all other colors are produced by varying the intensity of
these three primaries and mixing the colors.
7
RGB Color Space
8
CYM and CYMK Color Space
▪ The subtractive color system reproduces colors by subtracting some
wavelengths of light from white.
▪ The three subtractive color primaries are cyan, magenta, and yellow (CMY).
▪ If none of these colors is present, the color produced is white because nothing
has been subtracted from the white light.
▪ If all the colors are present at their maximum amounts, the color produced is
black because all of the light has been subtracted from the white light.
▪ Three primary colors, cyan (C), magenta (M), and yellow (Y), are used to
reproduce all colors.
9
CYM and CYMK Color Space
▪ The three colors together absorb all the light that strikes it, appearing
black (as contrasted to RGB where the three colors together made
white).
▪ “Nothing” on the paper is white (as contrasted to RGB where nothing was
black).
10
CMY Color Model (Subtractive Color)
11
Transformation from RGB to CMY
▪ Simplest model we can invent to specify what ink density to lay down on
paper, to make a certain desired RGB color: Then the inverse transform
is:
▪ Simplest model we can invent to specify what ink density to lay down on
paper, to make a certain desired RGB color: Then the inverse transform
is:
13
▪ Color combinations that result from combining primary colors available in
14
YUV Color Model
▪ Established in 1982 to build digital video standard. Video is represented by a
sequence of fields (odd and even lines).
▪ Two fields make a frame. Works in PAL (50 fields/sec) or NTSC (60 fields/sec).
▪ U is the axis from blue to yellow and V is the axis from magenta to cyan.
▪ Y ranges from 0 to 1 (or 0 to 255 in digital formats), while U and V range from -
15
0.5 to 0.5 (or -128 to 127 in signed digital form, or 0 to 255 in unsigned form).
YUV Color Model
16
YIQ Color Model
▪ YIQ is used in color TV broadcasting, it is downward compatible with Black and White TV.
▪ The YIQ color space is commonly used in North American television systems.
▪ Note that if the chrominance is ignored, the result is a “black and white” picture.
▪ I and Q are a rotated version of U and V. Y in YIQ is the same as in YUV; U and V are
rotated by 33 degree.
▪ Y (luminance).
▪ I is red-orange axis,
▪ YIQ is intended to take advantage of human color response characteristics. Eye is more
sensitive to (I) than in (Q).
▪ Therefore less bandwidth is required for Q than for I. NTSC limits I to 1.5 MHZ and Q to
0.6 MHZ. Y is assigned higher bandwidth, 4MHZ.
17
YIQ Color Model
18
YCbCr
▪ This is similar to YUV.
▪ This color space is closely related to the YUV space, but with the coordinates shifted to
allow all positive valued coefficients.
▪ During development and testing of JPEG, it became apparent that chrominance sub
sampling in this space allowed a much better compression than simply compressing RGB
or CYM.
▪ Sub sampling means that only one half or one quarter as much detail is retained for the
color as for the brightness.
▪ Y-Luma component
19
Summary of Color
▪ Color images are encoded as (R,G,B) integer triplet values.
▪ These triplets encode how much the corresponding phosphor should be excited
▪ Three common systems of encoding in video are RGB, YIQ, and YcrCb(YUV).
▪ Besides the hardware-oriented color models (i.e., RGB, CMY, YIQ, YUV), HSB
(Hue, Saturation, and Brightness, e.g., used in Photoshop) and HLS (Hue,
▪ YIQ uses properties of the human eye to prioritize information. Y is the black
and white (luminance) image; I and Q are the color (chrominance) images. YUV
20
21