0% found this document useful (0 votes)
5 views

Lesson3

The document outlines a presentation on Computer Graphics, specifically focusing on color representation, including the human eye's perception of color and the additive and subtractive color models. It discusses how colors can be mixed using primary colors (red, green, blue) and how complementary colors work. Additionally, it mentions the CIE Chromaticity and practical considerations for color displays in technology.

Uploaded by

kevinnjuguna811
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Lesson3

The document outlines a presentation on Computer Graphics, specifically focusing on color representation, including the human eye's perception of color and the additive and subtractive color models. It discusses how colors can be mixed using primary colors (red, green, blue) and how complementary colors work. Additionally, it mentions the CIE Chromaticity and practical considerations for color displays in technology.

Uploaded by

kevinnjuguna811
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

JOMO KENYATTA UNIVERSITY

OF
AGRICULTURE & TECHNOLOGY
JKUAT SODeL

SCHOOL OF OPEN, DISTANCE AND eLEARNING


P.O. Box 62000, 00200
©2014

Nairobi, Kenya
E-mail: [email protected]

ICS 2311 Computer Graphics

JJ II LAST REVISION ON October 16, 2014


J I
J DocDoc I
Back Close
ICS 2311 Computer Graphics
This presentation is intended to covered within one week.
The notes, examples and exercises should be supple-
mented with a good textbook. Most of the exercises have
solutions/answers appearing elsewhere and accessible by
JKUAT SODeL

clicking the green Exercise tag. To move back to the same


page click the same tag appearing at the end of the solu-
tion/answer.
©2014

Errors and omissions in these notes are entirely the re-


sponsibility of the author who should only be contacted
through the Department of Curricula & Delivery
(SODeL) and suggested corrections may be e-mailed to
[email protected].
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 0
ICS 2311 Computer Graphics
LESSON 3
Color Representation

3.1. introduction
JKUAT SODeL

• Color is visible light between 400nm and 700nm.


• Visible light frequencies range between ...
©2014

– Red = 4.3 x 1014 hertz (700nm)


– Violet = 7.5 x 1014 hertz (400nm)
• Humans have trichromatic color vision
– Three color values

JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 1
ICS 2311 Computer Graphics
JKUAT SODeL
©2014

In the eye we have just three distinct ’cone’ cells for detecting
light energy.
These respond to a band of wavelength centered around red
(600), green (560) and blue (440); respectively.
The bands overlap, so, for example green light excites all
three types.
JJ II
The consequence of this is that each type of cell may be
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 2
ICS 2311 Computer Graphics
excited similarly from very different energy distributions
Any distribution of wavelengths will be perceived by us as a
single color, but two entirely different distributions of intensities
could be perceived as the same color.
JKUAT SODeL

In order to match a color, we can adjust the brightness of 3


overlapping primaries until the two colors look the same.
• C = color to be matched
©2014

• RGB = laser sources (R=700nm, G=546nm, B=435nm)


Selecting three pure light sources (R, G, B) and mixing them
together while varying their respective intensities, one may be
able to create a large number of colors.
Each color satisfies the following linear combination:
JJ II • X = r*R + g*G + b*B
J I where r, g, b are intensities of the red, green and blue light
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 3
ICS 2311 Computer Graphics
sources. Not all colors can be matched in this way.However, by
adding one of the pure colors to an unknown unmatchable color,
we can make a match.
This is in effect subtracting a color from the mix.
JKUAT SODeL

• X + r*R = g*G + b*B


• or X + g*G = r*R + b*B
• or X + b*B = r*R + g*G
©2014

The representation of colors as a mixture of three components


is called the tri-stimulus representation; very commonly used in
monitors and other active color devices. The pure colors used are
red, green and blue, and are referred to as the additive primary
colors.
JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 4
ICS 2311 Computer Graphics
3.1.1. Specifying Color:
JKUAT SODeL
©2014

JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 5
ICS 2311 Computer Graphics
JKUAT SODeL
©2014

JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 6
ICS 2311 Computer Graphics
JKUAT SODeL
©2014

The human eye can distinguish hundreds of thousands of


JJ II different colors.
J I When two colors differ only in hue, the wavelength between
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 7
ICS 2311 Computer Graphics
just noticeably different colors varies with the wavelength!
More than 10 nm at the extremes of the spectrum
Less than 2 nm around blue and yellow
Most JND hues are within 4 nm.
JKUAT SODeL

Altogether, the eye can distinguish about 128 fully saturated


hues
Human eyes are less sensitive to hue changes in less saturated
©2014

light (not a surprise)

3.1.2. Complementary colors:


White represents the presence of all three colors – in equal quan-
tities. Black represents the absence of the three colors. Two
JJ II colors are said to be complementary if their mix gives white. A
J I color can be generated by either:
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 8
ICS 2311 Computer Graphics
• Adding the primary colors – R, G, and B
• Removing their complimentary colors.

3.1.3. The additive color model:


JKUAT SODeL

• Red, green and blue are the additive primaries.


• Colors can be generated by adding the additive primaries
to black.
©2014

• This is referred to as the additive color model.

3.1.4. The subtractive color model:


• Primaries – cyan, magenta and yellow. Also called the
CMY model.
JJ II • Colors are generated by subtracting the three primaries
J I from other colors.
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 9
ICS 2311 Computer Graphics
3.1.5. The CIE Chromaticity:
• Represents colors in terms of three new primaries: x, Y
and Z Basically an additive scheme.
JKUAT SODeL

3.1.6. Practical Colour Displays:


When a transformation is necessary from the CIE standard colour
chart to the colour produced on a specific display device, we
©2014

must express the primary colours of the display device by x and


y quantities.
Good quality monitors will be calibrated for the CIE colour
chart.

JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 10
ICS 2311 Computer Graphics
Revision Questions

Example . identify any 3 quantities of color perception


Solution:
JKUAT SODeL

hue
saturation
©2014

lightness/brightness


Exercise 1.  ...

JJ II
J I
J DocDoc I
JKUAT: Setting trends in higher Education, Research and Innovation

Back Close 11

You might also like