Lecture 4 Colour
Lecture 4 Colour
From http://math.ucr.edu/home/baez/physics/General/BlueSky/blue_sky.html
Human Colour perception
• It is therefore possible to characterise a psycho-visual
colour by specifying the amounts of three primary colours:
red, green and blue, mixed together.
• This leads to the standard RGB space used in television,
computer monitors, etc.
• We specify the levels of R, G and B in the range [0, 1], but
they can easily be extended to other ranges (8-bit integers
for example).
(1,1,1)
RGB
(0,0,0)
Physical Background
• Visible light: a narrow band of
electromagnetic radiation →
380nm (blue) - 780nm (red)
• Wavelength: Each physically
distinct colour corresponds to at
least one wavelength in this
band.
• Spectrum: Intensity as
a function of wavelength
• The colour of an object: is the
product of the spectrum of the
incident light with the light
absorption and/or reflection
properties of the object.
Characteristics of Colour
• Dominant frequency (hue, colour)
• Shades
• Add black pigment to pure colour
• The more black pigment, the darker the shade
• Tints
• Add white pigment to the original colour
• Making it lighter as more white is added
• Tones
• Produced by adding both black and white pigments
The CIE Chromaticity Diagram
• CIE: International Commission on Illumination (Comission
Internationale de l’Eclairage).
• Shows colour compositions as a function of x(red) and
y(green)
• Luminance values are not available because of
normalization
• Colors with different luminance but same chromaticity map
to the same point
• Additive
• Blue is one-third
• Subtractive
• Yellow (red+green) is two- • Orange (between red
thirds and yellow)<>cyan-blue
• When blue and yellow light • green-cyan<>magenta-
are added together, they red colour
produce white light
• Pair of complementary
colours
• blue and yellow
• green and magenta subYM
addRG • red and cyan
The CIE Chromaticity Diagram
• Complementary colors
• Represented on the diagram
as two points on opposite
sides of C and collinear with C
• The distance of the two colors
C1 and C2 to C determine the
amount of each needed to
produce white light
The CIE Chromaticity Diagram
• Dominant wavelength
• Draw a straight from C through
colour point to a spectral colour on
the curve, the spectral colour is the
dominant wavelength
• Special case: a point between C
and a point on the purple line Cp,
take the compliment Csp as
dominant
• Purity
• For a point C1, the purity
determined as the relative distance
of C1 from C along the straight line
joining C to Cs
• Purity ratio = dC1 / dCs
Colour Representation
• Colour is represented via a colour model
• Colour Models
• RGB (Red, Green, Blue) - used with colour CRT monitors
• CMY (Cyan, Magenta, Yellow)- used for colour printing
• CMYK (Cyan, Magenta, Yellow, Black) - colour printing
• HSI (Hue, Saturation, Intensity)
• YIQ (Luminance,In phase, Quadrature) - broadcast TV
colour system
The RGB Colour Model
• Basic theory of RGB colour model
• The tristimulus theory of vision: It states that human eyes
perceive colour through the stimulation of three visual
pigment of the cones of the retina
• Red, Green and Blue
• Model can be represented by the unit cube defined on R,G
and B axes
The RGB Colour Model
• The primary colours are red, green, and blue.
• It is an additive model, in which colours are produced by
adding components, with white having all colours present and
black being the absence of any colour.
• Used for active displays such as television and computer
screens.
• The RGB model is usually represented by a unit cube with one
corner located at the origin of a three-dimensional colour
coordinate system, the axes being labeled R, G, B, and having
a range of values [0, 1].
• The origin (0, 0, 0) is considered black and the diagonally
opposite corner (1, 1, 1) is called white. The line joining black
to white represents a gray scale and has equal components of
R, G, B.
The CMY and CMYK Colour Models
• Colour models for hard-copy devices, such as printers
• Produce a colour picture by coating a paper with colour pigments
• Obtain colour patterns on the paper by reflected light, which is a
subtractive process
• The CMY parameters
• A subtractive colour model can be formed with the primary colors
cyan, magenta and yellow
• Unit cube representation for the CMY model with white at origin
The CMY and CMYK Colour Models
• Most devices that deposit colour pigments on paper
(such as colour Printers and Copiers) requires CMY
data input or perform RGB to CMY conversion
internally
• Colour components:
• Hue (H) ∈ [0°, 360°]
• Saturation (S) ∈ [0, 1]
• Value (V) ∈ [0, 1]
The HSV Colour Model