IN4089 - Lecture 02 - Color Perception-Pdfjam
IN4089 - Lecture 02 - Color Perception-Pdfjam
Colors
and the Human Visual System
(“The day I found out: There is no reason to be blue…”)
Colors
Elmar Eisemann and the Human Visual System
Computer Graphics and Visualization
Delft University of Technology
Today Today
Electromagnetic Wave
Energie
P()
Peak is what
people often
Saturation or Chroma
e2 refer to…
e1
Luminance =
area under the curve
400 nm Hue 720 nm
Electromagnetic Wave
Spectral
Power
Distribution
Illuminant D65
Reflectance
(nm)
Stimulus Spectrum
Spectral
Power
Distribution
12
Everything we see is light… Everything we see is light…
…but not all of
Neon Lamp
it, as our eyes
are not perfect.
Spectral
Power
Observer
Distribution
Illuminant F1
Spectral
Reflectance
Power
Spectrum
Distribution Stimulus
Under D65
Spectral
Power
Distribution
Under F1
15
Ganglion Horizontal
Cells Cells
Bipolar
Cells Rod
Cone
Light
Light
Amacrine
Cells
Retina Optic Nerve
17
Rods Cones
Eye Biology Eye Biology
•Cones : • Retina consists of Cones & Rods
– Chromatic perception (3 types-LMS)
– Concentrated in center of retina
– 6 to 7 million in retinal center
- 3 times full HD
•Rods :
Periphery
– Achromatic perception Center – fovea Boundary region
Mix of both (more rods)
only cones Mix of both
– Low-light vision
Curcio, C. A., Sloan, K. R., Kalina, R. E., Hendrickson, A. E., 1990. Human photoreceptor topography. J Comp Neurol 292, 497-523
• During night, all cats are gray… • Who sees noise in the night?
Cones shut off!
Rods Cones
Incoming light
Report as ratio of
maximal stimulation
Multiplication Receptor
Eye Biology 3 Cone types
• How do we see?
– Human visual system - Basics
https://www.quora.com/What-is-the-difference-between-microwave-range-and-millimeter-range-of-frequencies
• What can we do with colors?
What do we want? A map for colors?
Where is black?
Color blindness
https://bowhunting.net/2019/02/confirmed-deer-see-ultraviolet-what-does-this-mean-to-hunters/
We can distinguish ~10M colors on a screen Today: Cheap screens have 16M colors
• True Color claims to have 16M colors, • True Color claims to have 16M colors,
is that too much? is that too much?
• values of green mapped out in steps of 5 • values of green mapped out in steps of 2
Today: Cheap screens have 16M colors What about a “Screen” Color Space?
• Is this a good basis to describe all colors? • Control color on screen with knobs
49
@Nicolas Holzschuch
Energie
P()
• While working on one device RGB can be ok 400 nm 720 nm
RGB can be remapped to HLS Demo Color Picker
Energie
P()
• HLS
(Hue, Lightness, Saturation) 400 nm
720 nm
64 65
@Nicolas Holzschuch @Nicolas Holzschuch
•What we want:
Spectral distribution of the light
– 3D color space
x , y , z CIE color matching functions
– Device independent
– All colors should be covered with values in [0,1]3
• Also means: all coefficients positive
– Linear conversion with respect to sRGB
71
@Nicolas Holzschuch
sRGB Chromaticity sRGB Chromaticity
r=R/(R+G+B) r=R/(R+G+B)
• Constant energy: g=G/(R+G+B) • Constant energy: g=G/(R+G+B)
B R
Y
G y
X Y Z
B
CIE XYZ CIE XYZ
•X, Y, Z is device independent •X, Y, Z is device independent
•Y : roughly luminance (perceived brightness) •Y : roughly luminance (perceived brightness)
•Z : roughly the exitation of S-cones •Z : roughly the exitation of S-cones
•X,Z : chroma values •X,Z : chroma values
• Advantages:
– XYZ covers all visible colors with positive values
– Conversion to RGB is linear
• 3x3 Conversion Matrix
• Screens come with a driver…
Y
• “Reddest Red”, “Bluest Blue”, “Greenest y
X Y Z
Green” (“brightest Bright” and “darkest
Dark”)
• Each device can cover a certain color region • When creating content keep gamut in mind!
Gamut
• RGB: • E.g.:
– Simple • “Would this change be visible?”
– But device dependent • “If I compress the information, will I see artifacts?”
• linear sRGB
– Device independent
– But negative values for some wavelengths • Not tied to the visual system yet
• XYZ:
– Device independent
– Easy conversion
– Y represents roughly luminance
– But a rather mathematical construction
Nobody’s perfect! But why were the curves the same…?
Proof – bluring a single color channel Proof – bluring a single color channel
v*13L*(v' v'n )
b*200 Y /Yn Z/Zn 4X
1 1
– indistinguishable
3 3
u'
X15Y 3Z
colors grouped v' 9Y
X15Y 3Z
Blurred a Blurred b
• Receptors are not working independently! • Local contrast produces false intensity ramps
Extreme Case Color Space Summary
In practice:
anchored in XYZ conversion when needed
Questions Today
• How do we see?
– Human visual system - Basics
• Weber-law:
just-noticeable difference is L ΔL
proportional to magnitude 100 cd/m2 1 cd/m2
1 cd/m2 0.01 cd/m2
smallest
Ernst Heinrich Weber
detectable
difference
• Adding or subtracting luminance depends
Background Constant
on the background luminance
luminance
L
Typical stimuli: ΔL
111 112
Make Luminance (more) perceptually uniform Assuming the Weber law
1 Derivative of
response Detection
ΔL threshold
1
R(L) 0
L
dl
luminance L
L(l) • Local contrast is perceived logarithmically!
This tells you “how many different
grays you perceive on the way to L”
114
Sinusoid
Contrast Sensitivity Function Brightness Perception is complex…
Frequency
Relatively
fast.
Ferwerda 1998
Can take
minutes!
Ferwerda 1998
CIE 1931 chromaticity diagram CIE 1931 chromaticity diagram
• Let’s start with white. Where is it? • Let’s start with white. Where is it?
Pure colors
• We adapt
throughout
There is a whole
range of whites! the day!
D65 D65
Morning
to evening
Completion/Inpainting
• Blind spot –
we are actually all blind at/in some point…
(Where the nerves connect in our eye)
Left LGN
Visual
Cortex
• Memory has an impact [Delk & Fillenbaum] • Kitaoka: Grey strawberry illusion
• Levenson RM, Krupinski EA, Navarro VM, Wasserman EA (2015) Pigeons (Columba livia) as
Trainable Observers of Pathology and Radiology Breast Cancer Images. PLoS ONE 10(11):
e0141357. https://doi.org/10.1371/journal.pone.0141357
Conclusion Today
– Structure of image/surrounding
– Temporal aspects
155
Uniform Color Ramps? My currently favorite map discussion…
Parula colormap
• http://colorbrewer2.org/ • color.adobe.com
• Color combination community
– Structure of image/surrounding
– Temporal aspects
– Structure of image/surrounding
– Temporal aspects
172
[Didyk, Eisemann, Ritschel, Myszkowski, Seidel – SIGGRAPH 2010]
• Attractive Flicker
[Waldner et al.
TVCG2014]
low res
high res
low res
Summary: Acknowledgments
• Application examples
– Background Contrast, Temporal integration…
Thank you very much!