Download Trichromatic Theory of Color Vision

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Thermophotovoltaic wikipedia , lookup

Photoelectric effect wikipedia , lookup

Opto-isolator wikipedia , lookup

Electromagnetic spectrum wikipedia , lookup

Transcript
Trichromatic Theory of Color
Vision
Jonathan Pillow
Mathematical Tools for Neuroscience (NEU 314)
Spring, 2016
lecture 4.
Linear algebra
“Linear algebra has become as basic and as
applicable as calculus, and fortunately it is easier.”
- Glibert Strang, Linear algebra and its applications
but first: a few matrix basics
n × m matrix
can think of it as:
n row vectors
m column vectors
r1
…
cm
or
…
c1
rn
matrix multiplication:
One perspective: dot product with each row of W
ith
component
ith
row
matrix multiplication
Other perspective: linear combination of columns
• • •
c1
… cm
• • •
v1
u1
vm
um
=
v1• c1 + v2• c2 + … + vm• cm
transpose
• flipping around the diagonal
147
258
369
14
25
36
T
=
123
456
789
square
matrix
=
123
456
non-square
T
• transpose of a product
inverse
• If A is a square matrix, its inverse A-1 (if it exists) satisfies:
“the identity”
(eg., for 4 x 4)
(Square) Matrix Equation
assume (for now)
square and invertible
left-multiply both sides
by inverse of A:
Motivation: James Maxwell’s color-matching experiment
Given any “test” light, you can match it by adjusting the
intensities of any three other lights
(2 is not enough; 4 is more than enough & produces non-unique matches)
A little physics background: light
• Really: just a particular range of the electromagnetic spectrum
• (We see only the part between 400 and 700 nm)
Q: How many numbers would you need to write down to
specify the color of a light source?
Just one?
(“the wavelength”?)
eg. “650”?
Q: How many numbers would you need to write down to
specify the color of a light source?
spectral properties
A: It depends on how you “bin” up the spectrum
• One number for each spectral “bin”:
20
17
15
16
energy
13
12
10
5
0
0
0
0
0
example: 13
bins
(a vector!)
Device: hyper-spectral camera
• measures amount of energy in each range of wavelengths
• can use thousands of bins (or “frequency bands”), instead
of just the 13 shown here
20
17
15
16
energy
13
12
10
5
0
0
0
0
0
Some terminology for “colored” light:
spectral - referring to the wavelength of light
the illuminant - light source
illuminant power spectrum - this curve.
20
17
15
16
energy
13
12
10
5
0
0
0
0
0
amount of energy (or
power) at each frequency
energy
an illuminant with most power at long
wavelengths (i.e., a reddish light source)
energy
an illuminant with most power at medium
wavelengths (i.e., a greenish light source)
energy
an illuminant with power at all visible wavelengths (a
neutral light source, or “white light”)
photoreceptor response
Q: How many measurements of the illuminant spectrum does the
human eye take (in bright conditions?)
could also call
this axis
“absorption” or
“sensitivity”
A: Only 3! One measurement
for each cone class
What mathematical
operation do we
mean by “measure”?
More terminology:
photoreceptor response
absorption spectra - describe response (or “light absorption”)
of a photoreceptor as a function of frequency
Absorption
spectrum for
“L” (red) cone
The cone absorption spectra
are basis vectors for a threedimensional vector space (a subspace) within the space
of all spectra.
Written in a linear algebra setting
=
cone
responses
S
M
L
cone
absorption
spectra
illuminant
spectrum
So: single cone can’t tell you anything about the color of light!
(“It’s just giving you dot products, man!”)
Colored stimulus
Response of your
“S” cones
Color vision
photoreceptor response
Our color vision relies on comparing the responses of
three cone classes
cone responses:
(dot products)
40
175
240
sensitivity
1
percept
0.8
0.6
0.4
0.2
0
400
450
500
550
600
650
700
illuminant #1
energy
Metamers
#4
#3
#2
wavelength
- Illuminants that are
physically distinct but
perceptually
indistinguishable
Two lights x1 and x2 “match” iff
(i.e., they evoke the same cone responses)
So in linear algebra terms: metamers refer to an entire (affine)
subspace of lights that have the same linear projection onto the
3 cone absorption spectra basis vectors.
James Maxwell (1831–1879): color-matching experiment
• Any “test” light (“vector”), can be matched by adjusting the
intensities of any three other lights (“basis vectors”)
• 2 is not enough; 4 is more than enough
Implication: tons of things in the natural world have
different spectral properties, but look the same to us.
But, great news for the makers of TVs and Monitors:
any three lights can be combined to approximate any color.
Single-frequency spectra
produced by (hypothetical)
monitor phosphors
illuminant #1
energy
Monitor phosphors
produce “metameric
match” to illuminant #1
(or any other possible
illuminant).
wavelength
Close-up of computer monitor, showing three phosphors,
(which can approximate any light color)
Written as a linear algebra problem
=
p3 p2 p1
input to
each phosphor
spectrum
produced
spectra of
monitor phosphors