ELEN0450 · Multimedia Systems
Lecture 3
Colorimetry & color spaces
How we describe color to match
the human eye and save bits
www.viulab.be
Recap: where we are in the pipeline
2
Last lecture: How a digital picture becomes numbers sampling, bit depth, and file formats
Definition of a digital image, bit depth and indexed-colors, dithering, raster versus vector image, and image format.
This lecture: the human visual system and color spaces.
Reminder
Representation
Digitization
Acquisition Capture
Compression Storage
Distribution Transmission
Display
Render
Scope of the course
3
Analog path
Digital path
Physical scene
Light, sound, motion
Capture
Lens, sensor, microphone
Analog signal
Continuous in time and amplitude
Analog storage and transport
Film, vinyl, tape, broadcast
Rendering
Display, loudspeaker, print
Synthesis
Graphics, audio, generative
Digital signal representation
ADC, samples,
pixels, bit depth
Source coding
compression
JPEG, AAC, MP4
Storage
Container, disc, network
Transmission and decoding
Network, Inverse transform, DAC
Human perception
Visual and auditory systems
Sampling and quantization
Perceptual models drive the coding stage: chroma subsampling, quantization tables, masking thresholds
Scope
What you'll be able to do
Objective
Why this lecture is built this way
Color is physics (light) + biology (the eye) + engineering (models).
We follow that chain: spectrum → cones → CIE numbers → color spaces → bit-savings.
Idea
Table of content
The human visual system (HVS)
– Light physics
– Color vision
– LMS color space
Measuring color
– Color matching experiment
– CIE 1931 RGB color space
– CIE XYZ color space
Color models for images
– xy-chromaticity diagram
– Gamut of a color space
Building a color cube
– RGG primaries and white point,
– Quantization and out-of-gamut
Other color spaces
– Subtractive color spaces
– YUV, YIQ, YCbCr
– Perceptual color spaces
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
Natural scenes
7
Natural scenes are made up of objects that are:
The natural scene light is projected to the retina or a camera sensor by either the iris and crystalline lens or a camera lens, creating still or moving images.
Property
Light spectrum
8
Reminder
Monochromatic radiations
9
Definition
Monochromatic radiation contain only one wavelength, with a one-to-one correspondence between color and wavelength. They can be seen in a rainbow and are very saturated.
A spectrum is composed of several monochromatic radiations (several wavelengths).
Monochromatic radiation
Spectrum
Spectral power distribution
10
Definition
Monochromator - Newtons prism
11
A monochromator delivers light of a single wavelength from a light source with broad spectrum.
Idea
Color vision
12
Principle
A Simplified Functional View of Photoreceptors
13
Idea
Image formation
14
Mathematical definition
Surfaces reflect selectively
15
Example
Spectral sensitivity of the eye
16
Relative percentage of photons absorbed assuming
lights at each wavelength have the same power/energy
Property
Normalization
The brain only receives LMS signals, not lights
17
A particular LMS combination leads to a particular color sensation.
This is a huge dimensionality reduction: the light spectrum is a very high dimensional vector (numerous wavelengths) but is transformed by the retina to only a three-dimensional vector!
Property
The brain’s interpretation of colors is not only physical
18
Example
Our brains interprets color not only based on the stimulus but also based on what he knows of the objects and the environment.
What color is this dress?
19
Example
The LMS color space
20
Definition
LMS color space. By expressing any light’s color as a (L, M, S) triplet, we have inherently defined a 3D color space, in which every color is a point.
Questions:
Calculating the total cone responses
21
Idea
Results
Metamerism
22
In colorimetry, metamerism is a perceived matching of colors with different (nonmatching) spectral power distributions.
Property
Implication of metamers
Two different spectra can excite the S,M,L cones identically → they look the same: they are metamers.
This is why a 3-primary display can fool the eye (more on this in Session 6)
Result
Can there be no solution?
24
Example
Seeing impossible colors
25
Example
Try crossing your eyes until these two squares mix!
What do you see?
Color Gamut of the Human Visual System (HVS)
26
Definition
HVS Color Gamut: the set of all the colors that human can see.
Color deficiency
Note
Table of content
The human visual system (HVS)
– Light physics
– Color vision
– LMS color space
Measuring color
– Color matching experiment
– CIE 1931 RGB color space
– CIE XYZ color space
Color models for images
– xy-chromaticity diagram
– Gamut of a color space
Building a color cube
– RGG primaries and white point,
– Quantization and out-of-gamut
Other color spaces
– Subtractive color spaces
– YUV, YIQ, YCbCr
– Perceptual color spaces
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
The matching problem
How do we specify a color precisely, so that anyone can recreate it?
Idea: match any test color by mixing 3 fixed monochromatic primary lights.
The three amounts needed = the color's coordinates.
Problem statement
The color matching experiment
30
Experiment
CIE 1931 Color Matching Experiments
31
Results
Negative colors?
No combination of RGB matches the target light, but adding some R with the target light matches the color of some combination of G and B.
Spectral Locus in the CIE 1931 RGB Space
32
Definition
Expressing arbitrary light using color matching functions (CMFs)
33
Idea
A Note on “RGB”
34
Note
How to explain the color matching experiment?
35
Experiment
Intuition behind this experiment
36
Mathematical definition
Why do we only need three primary colors?
37
If only two primary colors: the system of equations has two unknowns with three equations, which generally doesn’t have a solution, i.e., no way of finding a match, generally. Over-determined system.
More than three primaries: more unknowns than equations, so there are infinitely many ways of combining the primary lights to match the target color. Under-determined system.
Idea
Geometric transformation perspective
38
So far we’ve seen two ways to express a color in a 3D space:
How are the two expressions related?
Expressing a color from the [l, m, s] coordinate system to the [r, g, b] coordinate system is a geometric transformation.
Problem statement
Geometric transformation perspective
39
Equivalently, it’s a transformation of the coordinate systems (color spaces)!
Transformation matrix from the RGB
space to the LMS space
RGB
space
LMS
space
Mathematical definition
CIE 1931 RGB ⟷ LMS Spaces
40
Example
A Slight Issue with CIE RGB Color Space
41
Issue: Some colors are expressed in negative RGB values, which is mathematically OK but not very intuitive.
Objective: design a color space so that all colors have positive values.
How? Transforming the coordinate system so that all colors are in the positive quadrant
Color-matching functions → CIE XYZ
Mathematical definition
CIE RGB to XYZ Color Space Transformation
43
Example
XYZ to RGB transformation matrices.
Pure red (R,G,B)=(1,0,0) → (X,Y,Z)=(0.394, 0.212, 0.019)
x = 0.394/0.625 = 0.63, y = 0.212/0.625 = 0.34, z=0
→ red lands at (0.63, 0.34, 0) on the CIE XYZ diagram.
Table of content
The human visual system (HVS)
– Light physics
– Color vision
– LMS color space
Measuring color
– Color matching experiment
– CIE 1931 RGB color space
– CIE XYZ color space
Color models for images
– xy-chromaticity diagram
– Gamut of a color space
Building a color cube
– RGG primaries and white point,
– Quantization and out-of-gamut
Other color spaces
– Subtractive color spaces
– YUV, YIQ, YCbCr
– Perceptual color spaces
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
Scaling the intensity of a light
45
Idea
The Geometry of chromaticity
46
Mathematical definition
Properties of the chromaticity
47
Properties
The xy-chromaticity diagram
48
Linear transformation
Idea
Interpreting the xy-Chromaticity Plot
49
Properties
Interpreting the xy-Chromaticity Plot
50
Properties
Gamut of a color space
51
The gamut of a color space is the specific range or subset of colors that can be accurately represented, displayed, or captured by a device or defined within a color space.
Definition
52
Colors outside the triangle but inside the spectral locus are real colors, but they can’t be physically produced by mixing the primary lights of this color space.
Another way to put it: the three chosen primaries form a color space, and the triangle represents the color gamut of the color space.
Representing a color space in the xy-chromaticity plot
Color that can’t be produced from these two color spaces
Property
Implication of this triangular limitation
53
No color space made of physically real lights can reproduce all visible colors.
No matter how many primaries are used in the color space.
Why? Can you give the intuition?
The locus is convex. No polygon whose vertices are on or inside the spectral locus can cover the complete interior of the locus.
No display can display all the colors.
Usually, people find the closest displayable colors to show there (called gamut mapping)
Results
Table of content
The human visual system (HVS)
– Light physics
– Color vision
– LMS color space
Measuring color
– Color matching experiment
– CIE 1931 RGB color space
– CIE XYZ color space
Color models for images
– xy-chromaticity diagram
– Gamut of a color space
Building a color cube
– RGG primaries and white point,
– Quantization and out-of-gamut
Other color spaces
– Subtractive color spaces
– YUV, YIQ, YCbCr
– Perceptual color spaces
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
Let’s build a color cube color space�
55
Definition
How to build a color cube?
56
Process
1. Choosing the RGB primaries
57
Objective
Choosing RGB primaries, three constraints:
2. White point & color temperature
'White' isn't one color it depends on the illuminant.
Black-body radiation is the thermal electromagnetic radiation emitted by an idealized, perfectly opaque object that absorbs all incoming light and reflects none
Chromatic adaptation: our brain automatically re-normalizes the ‘white’ it sees.
Definition
Black-body radiation
2. White point & color temperature
59
The colors of black body radiation under different temperatures form a curve when plotted in the xy-chromaticity diagram. It’s called the Planckian locus.
Property
Choosing the right white color in your home
60
2. White point & color temperature
61
Idea
1-2. Map the gamut to a cube
62
Example
3. Quantize the color cube
63
Process
3. Quantize the color cube - Encoding power vs brightness evenly
Problem statement
Note
In color science, people empirically define the relationship between the perceived brightness and the light power using a power law. It doesn’t mean the actual human brightness perception follows this exactly; it’s more of an engineering convenience.
3. Quantize the color cube - Gamme correction
65
Idea
3. Quantize the color cube – encoding power vs brightness evenly
66
Results
3. Quantize the color cube - Gamma color encoding
Gamma used by the sRGB colorspace
Note
Colors on vertices have equal mix of 2 or 3 primaries with maximum quantity.
Colors outside of the cube are either:
4. Handling out-of-gamut colors
A device-independent color (x,y) may fall OUTSIDE the triangle.
Gamut mapping: clip / compress into the gamut (a design choice).
Idea
Tying it together: color management
Every device speaks its own color space so connect them through a common space.
Device → ICC profile → CIE XYZ/Lab → gamut-map → other device.
This is why the same photo can look (in)consistent screen-to-print or even screen-to-screen.
Problem statement
Table of content
The human visual system (HVS)
– Light physics
– Color vision
– LMS color space
Measuring color
– Color matching experiment
– CIE 1931 RGB color space
– CIE XYZ color space
Color models for images
– xy-chromaticity diagram
– Gamut of a color space
Building a color cube
– RGG primaries and white point,
– Quantization and out-of-gamut
Other color spaces
– Subtractive color spaces
– YUV, YIQ, YCbCr
– Perceptual color spaces
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
Additive vs subtractive
Additive (RGB, light): start black, ADD → white. Used in screens.
Subtractive (CMY, ink): start white, SUBTRACT → black. Used in Print.
Property
Worked: RGB → CMY
(R,G,B) = (200,100,50)/255 = (0.78, 0.39, 0.20)
→ (C,M,Y) = (0.22, 0.61, 0.80)
Lots of magenta + yellow ink, little cyan → an orange.
Example
Mathematical definition
Why K? Undercolor removal → CMYK
Property
Printer vs monitor gamut
Ink gamuts differ from RGB gamuts and are usually smaller.
Some screen colors can't be printed, and vice-versa.
→ Similarly to out-of-gamut correction for the color cube, use 'soft proofing' & gamut mapping before you print.
Note
Multi-ink printers
Note
Multi-ink printers increase the gamut of printers through adding light-cyan, light-magenta, orange, green inks (6–12 total).
Each new ink extends the gamut & smooths gradients.
Photo printers use this for near-continuous tone.
Camera-dependent color
Idea
Color spaces designed for displays
77
Example
RGB-based color spaces
78
sRGB is what we commonly refer to as the RGB space in the real world.
Adobe RGB has a wider gamut.
Definition
Example
All RGB color spaces are just one linear transformation away from each other.
sRGB is the most common color space, but its gamut is very small. CMYK is used in printers. ProPhoto RGB is a conceptual color space; its primaries are not real colors.
Luma + chroma: YUV, YIQ, YCbCr
YUV (analog PAL format), YIQ (analog NTSC format), YCbCr (digital) all split brightness (luma Y′) from color (chroma). They are all linear transforms of gamma corrected R’G’B’.
Definition
Worked: RGB → YCbCr (Rec.601)
Pixel (R,G,B) = (200, 100, 50):
Y = 59.8 + 58.7 + 5.7 = 124.2
Cb ≈ 86, Cr ≈ 182 (Cr > 128 ⇒ reddish)
Example
Mathematical definition
Why luma/chroma helps compression
Why the luma/chroma decomposition helps compression:
Property
Chroma subsampling: 4:4:4 → 4:2:0
To further decrease the required space to store pixel information, keep every luma sample; share chroma over 2×2 pixels (4:2:0).
Idea
Worked: the savings
4:4:4 = 3 samples/pixel (Y,Cb,Cr).
4:2:0 = 1 luma + ¼ Cb + ¼ Cr = 1.5 samples/pixel.
→ 2× less data before we even compress and nearly invisible.
Example
Note
4:2:0 is used in consumer video, streaming, JPEG.
4:2:2 is used broadcast/professional capture (more color headroom).
4:4:4 is used graphics, screen capture, chroma-key/VFX (need full colour).
CIELAB: perceptually uniform
Weber's law: equal (x,y) distances ≠ equal perceived differences.
CIELAB warps XYZ so that distance ≈ perceived difference.
L* = lightness, a* = green–red, b* = blue–yellow.
Definition
ΔE: measuring color difference
ΔE is the euclidean distance between two colors in CIELAB.
ΔE ≈ 1 is the just-noticeable difference; ΔE < 2–3 ≈ 'a good match'.
Used in print quality control, camera calibration, and image-quality metrics.
Mathematical definition
HSV: a perceptual handle
HSV = Hue, Saturation, Value, how humans talk about color.
Hue = which color; Saturation = how vivid; Value = how bright.
Definition
Naming colors: Munsell
Note
Munsell (1900s): name color by Hue, Value (lightness), Chroma (saturation).
A perceptually spaced, human-friendly naming system.
Still used in computer vision, art, soil science, design.
Color palettes
88
Help you choose matching colors for your designs based on color distances.
Idea
Where color matters in this course
Digital sensors and displays sensitivity (Sessions 5 and 6)
YCbCr + chroma subsampling → JPEG (Session 9) and video compression (Session 10).
ΔE / CIELAB → image-quality metrics.
Gamma & gamut → every capture and display stage.
Overview
Summary
Summary
Image: where each stage lands
Stage | Analog | Digital |
Transduction | Lens, film emulsion (silver halide) | Lens, colour filter array, CMOS or CCD sensor |
Representation | Continuous 2D density on film | Pixel grid, RGB or Y'CbCr, 8 to 16 bit |
Digitisation | Grain and lens MTF set the resolution limit | Sensor grid sampling, optical low pass filter |
Coding | | JPEG (DCT), JPEG 2000 (wavelet), PNG, WebP, AVIF |
Storage media | Negative, slide, print | Flash, HDD, SSD, cloud object storage |
Transmission | Wirephoto, fax over the telephone line | IP transfer, web, messaging |
Distribution | Physical prints, press circulation | CDN, social platforms, thumbnails on demand |
Rendering | Enlarger print, projector | LCD or OLED display, inkjet, ICC colour management |
Perception | Human visual system | |
Overview
91
Next time & further reading
• Session 4: Analog & digital video (Ch.5, p.119)
Source: Fundamentals of Multimedia, Ch.4 (p.83–117)
Source: https://cs.rochester.edu/courses/259/fall2025/decks/lect6-color.pdf
https://cs.rochester.edu/courses/259/fall2025/decks/lect7-colorimetry.pdf
• Questions?
Table of content
The human visual system (HVS)
– Light physics
– Color vision
– LMS color space
Measuring color
– Color matching experiment
– CIE 1931 RGB color space
– CIE XYZ color space
Color models for images
– xy-chromaticity diagram
– Gamut of a color space
Building a color cube
– RGG primaries and white point,
– Quantization and out-of-gamut
Other color spaces
– Subtractive color spaces
– YUV, YIQ, YCbCr
– Perceptual color spaces
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |