선정목록으로
Designing Color Filters That Make Cameras More Colorimetric
직접 관련 필름·전자재료 · (15) 디스플레이 패널재료 (13) 프리즘 필름(11) 배리어 필름
기본 정보
- 저자
- DOI
- 10.1109/tip.2020.3038523
- 저널
- IEEE Transactions on Image Processing
- 발행년도
- 2020
- 발행기관
- Institute of Electrical and Electronics Engineers
- 피인용수
- 15
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1109/tip.2020.3038523
- 토픽
- Color Science and Applications
- OpenAlex ID
- W3013599296
평가 내용
- 관련도
- 직접 관련
- 사업분야
- 필름·전자재료 · (15) 디스플레이 패널재료
- 부 분야
- (13) 프리즘 필름, (11) 배리어 필름
- R&D 측면
- 부품·응용 설계
- 확신도
- 0.90
- 근거 용어
- Color filter, spectral transmittance, camera spectral sensitivities, optimization, colorimetric
- 판단 근거
- 이 논문은 카메라의 색 재현력을 높이기 위한 최적의 컬러 필터(Color Filter) 설계 및 투과율(transmittance) 최적화 알고리즘을 다루고 있습니다. 이는 코오롱인더스트리의 디스플레이 패널 재료 및 광학 필름 관련 R&D 범위에 직접적으로 해당합니다.
- R&D 활용 포인트
- 디스플레이 및 카메라용 컬러 필터의 분광 투과 특성 최적화 설계 및 색 재현 성능 향상을 위한 소재/구조 설계 기술로 활용 가능합니다.
- 평가 입력
- 본문 81,390자 중 30,032자 발췌
초록
When we place a colored filter in front of a camera the effective camera response functions are equal to the given camera spectral sensitivities multiplied by the filter spectral transmittance. In this article, we solve for the filter which returns the modified sensitivities as close to being a linear transformation from the color matching functions of the human visual system as possible. When this linearity condition - sometimes called the Luther condition- is approximately met, the 'camera+filter' system can be used for accurate color measurement. Then, we reformulate our filter design optimisation for making the sensor responses as close to the CIEXYZ tristimulus values as possible given the knowledge of real measured surfaces and illuminants spectra data. This data-driven method in turn is extended to incorporate constraints on the filter (smoothness and bounded transmission). Also, because how the optimisation is initialised is shown to impact on the performance of the solved-for filters, a multi-initialisation optimisation is developed. Experiments demonstrate that, by taking pictures through our optimised color filters, we can make cameras significantly more colorimetric.
본문 81,390자
본문 펼치기
## Designing Color Filters That Make Cameras More Colorimetric
Graham D. Finlayson, _Member,_ _IEEE_, and Yuteng Zhu
_Abstract_ —When we place a colored filter in front of a camera
the effective camera response functions are equal to the given
camera spectral sensitivities multiplied by the filter spectral
transmittance. In this article, we solve for the filter which returns
the modified sensitivities as close to being a linear transformation
from the color matching functions of the human visual system
as possible. When this linearity condition - sometimes called
the _Luther_ _condition_ - is approximately met, the ‘camera+filter’
system can be used for accurate color measurement. Then,
we reformulate our filter design optimisation for making the
sensor responses as close to the CIEXYZ tristimulus values as
possible given the knowledge of real measured surfaces and
illuminants spectra data. This data-driven method in turn is
extended to incorporate constraints on the filter (smoothness
and bounded transmission). Also, because how the optimisation
is initialised is shown to impact on the performance of the
solved-for filters, a multi-initialisation optimisation is developed.
Experiments demonstrate that, by taking pictures through our
optimised color filters, we can make cameras significantly more
colorimetric.
_Index_ _Terms_ —Color filter, camera sensitivity functions, color
measurement.
I. INTRODUCTION
IGITAL cameras are designed in analogy to the trichromatic human visual system which has three cone sensors.
# D
If a camera is to capture colors like a human observer,
arguably the camera sensors should equal the cone fundamentals [1]. Practically, however, engineering cameras having
spectral sensitivities similar to the cone fundamentals is only
required if we wished to construct a biologically plausible
model of how we see [2]. For most practical applications e.g. photography and video - it is more important that we
can transform the recorded device RGBs to drive a display so
that the image captured by a camera either looks the same to a
human observer or records triplets of numbers - e.g. CIE XYZ
coordinates - that are referenced to the human visual system
[3]. We say that a digital camera is _colorimetric_ if it meets the
so-called Luther condition [4], [5], i.e. its spectral sensitivity
functions are linearly related to the CIE XYZ color matching
functions (CMFs).
Manuscript received February 25, 2020; revised September 3, 2020;
accepted November 4, 2020. Date of publication November 23, 2020; date of
current version December 4, 2020. This work was supported by the Engineering and Physical Sciences Research Council under Grant EP/S028730/1. The
associate editor coordinating the review of this manuscript and approving it
for publication was Prof. Trac D. Tran. _(Graham D. Finlayson and Yuteng_ _Zhu_
_are_ _co-first_ _authors.)_ _(Corresponding_ _author:_ _Yuteng_ _Zhu.)_
The authors are with the School of Computing Sciences, University
of East Anglia, Norwich NR4 7TJ, U.K. (e-mail: g.finlayson@uea.ac.uk;
yuteng.zhu@uea.ac.uk).
Digital Object Identifier 10.1109/TIP.2020.3038523
The Luther condition places a very strong constraint on
the shape of camera spectral sensitivities. A strong constraint
is required because the Luther condition effectively assumes
that any and all spectral stimuli are possible. However, many
studies have shown that the actual spectra (measured in the
real world) are far from being arbitrary. Indeed, reflectance
spectra tend to be quite smooth [6]–[8] and as a consequence
can be fit with low dimensional linear basis [9], [10]. Indeed,
spectral basis with dimensions from six to eight, for different
applications, are often proposed as adequate models of spectral
reflectance. Illuminants by contrast are much less describable
by small parameter models. Indeed, for artificial lights such
as fluorescent and LED lights, the light spectrum can be very
spiky and the number and position of the spikes can vary
considerably. And yet, illuminants are also far from being
arbitrary. They are designed to have colors near the Planckian
locus [3], a requirement to score highly on color rendering
indices [11].
Possibly, a more practically useful variant of the Luther
condition would be one that is data-driven. That is, where
camera RGBs can be mapped to XYZs for the spectral data
that are _likely_ _to_ _be_ _encountered_ in the real world. Equally,
in principle, we might consider whether a non-linear mapping
could or indeed, should be used.
It is a classical result [12] that if reflectances were _exactly_
modelled by a 3-dimensional linear model then for a given
light spectrum there would be a specific 3×3 transform matrix
taking camera RGBs to XYZs. While reflectance spectra are
not adequately described by a 3-dimensional model, RGBs
can be approximately mapped to corresponding XYZs using
a 3 × 3 matrix. Indeed, this regression approach is adopted
in almost all cameras with good results (we are mostly happy
with the colors a camera records). But, as we shall see later
the ‘fit’ is not sufficient from a color measurement point of
view.
Of course, rather than using a linear matrix to map RGBs to
XYZs, we could use a non-linear transform instead. Possible
non-linear methods include Polynomial and Root-polynomial
regressions and Look-up-tables [13]–[15]. However, the linear
transform method of using a 3 × 3 matrix - even though it
is not optimal in terms of fitting error - has two advantages
compared to most non-linear methods. First, the transform
scales linearly with exposure. If the scene is made twice
as bright (e.g. by doubling the quantity of incoming light),
the same matrix correctly maps the camera measurements to
XYZs (because the magnitude of camera RGBs and XYZs
both double). Typically, non-linear methods do not have this
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/
Fig. 1. (a) Taking an image of a scene (camera and human eye), (b) the CIE1931 XYZ color matching functions (CMFs) and (c) the spectral sensitivities
of a Canon 40D camera. In (d) we show the least-squares fit of the camera curves to XYZ CMFs. With a specially designed color filter shown in (e),
the least-squares fit - of the camera spectral sensitivity curves multiplied by the filter - in (f) is much closer to the XYZ CMFs.
exposure-invariant property (except root-polynomial [14] and
hue-plane preserving [16]).
The second advantage is that a linear transform is, well,
linear. The human eye measures color stimuli linearly: at
the cone quantal catch level, the response to the sum of
two spectral stimuli is equal to the sum of the responses
to the two stimuli viewed individually [2]. This can be an
important _physical_ consideration. As an example, when we
view a surface that has highlights, the recorded color is a
convex sum of the so-called _body_ color (the color name we
would assign to the object) and the color of the highlight [17],
sometimes called the _interface_ color. If, we are viewing a red
shiny plastic surface the body color is red and if the viewing
light is white then the interface color is also white (i.e. the
same as the color of the light). As we move from pure body
to pure highlight color, the measured XYZs lie on a 2D plane
in the color space. Equally, the camera, which at the sensor
level has a linear response, will also make measurements
that lie on a 2D plane. But, a non-linear correction will
distort the plane and the result will be an image that is not
physically accurate or even physically plausible. This problem
is discussed in detail in [16], [18].
Practically, the closer the spectral sensitivities of a camera
are to being linearly related to the XYZ color matching
functions, the better it will perform as a tool for color measurement, i.e. the more _colorimetric_ it will become. Interestingly,
when we linearly regress RGBs to XYZ tristimuli, we can
interpret this as linearly transforming the sensors themselves.
That is, a new camera whose sensitivities are modified by
the linear regression transform approximately measures the
desired XYZs. It follows that one strategy to improving the
color measurement capability of a camera would be to change
the camera sensitivities (to ones that are more linearly related
to the XYZ color matching functions). However, there are
constraints on sensitivities achievable in physically realisable
cameras which means we can never get 100% colorimetric
accuracy.
In this article, we make an easy modification to the camera
spectral sensitivities. We propose simply to place a specially
designed filter in front of a camera with the goal of making the
filtered RGB measurements it records are as linearly related
to the target XYZs as possible.
How we design the _best_ filter to make a camera colorimetric
is the central concern of this article. We develop optimisation
methods to solve for the optimal filter that either makes the
camera best satisfy the Luther condition or - in a data-driven
approach - can best predict the measured XYZs for a range
of real reflectances and lights. In the rest of this article,
we respectively discuss Luther-condition and Data-driven
filters.
The methods we develop are not _closed-form_ but adopt the
alternating least-squares paradigm [19]–[21]. For the Luthercondition filter optimisation problem, we aim to find a filter
so that the filtered camera response functions are a linear
transform from the XYZ CMFs [22]. In the first step, we find
the filter that best maps the spectral sensitivities of the camera
to the XYZ CMFs _directly_ . Then we find the best linear combination of the filtered camera sensitivities that approximate
the XYZ sensitivities. Holding this mapping fixed, we can
solve for a new best filter. Then we hold the new filter fixed
to solve for the best linear transform. We iterate in this way
until the procedure converges [23]. Each individual step in the
optimisation can be solved, in closed-form, using simple linear
least-squares. In the Data-driven approach we analogously find
the filter based on actual measured RGBs and XYZs following
the alternating least-squares technique [24]. For the Lutherand Data-driven techniques, the constraint that the recovered
filters must be positive is considered.
Clearly, the filter shown in Fig. 1e is not desirable. In the
short wavelengths, there is a sharp change in transmittance
and as a whole the filter is not smooth. For most of the
wavelength range, the filter transmits little light ( _<_ 20%).
Thus, we extend our optimisation framework to incorporate
minimum and maximum bounds on transmittance and also
that the filters are smooth [25].
Experiments demonstrate that we can find Luther-condition
and Data-driven filters that can dramatically increase the colorimetric accuracy across a large set of commercial cameras.
The rest of the paper is structured as follows. In Section II
we review the color matching and color image formation, both
ideas underpin our filter design method. The mathematical
optimisations for the optimal color filter for a given camera are
presented in Section III. The experimental results are reported
in Section IV. The paper concludes in Section V.
II. BACKGROUND
_A._ _Color_ _Matching_ _Functions_
Color matching functions provide a quantitative link
between the physical light stimuli and the colors perceived by
the human vision system. Figure 2 shows a typical setup for
the color matching experiment. The observer views a bipartite
field where one side is lit by a test light while the other side is
lit by the light mixtures of three primaries (i.e. monochromatic
red, green, blue lights). The intensities of three primary lights
are adjusted by the observer to make a visual match, i.e. the
two stimuli on each side the bipartite field _match_ if they
look visually indistinguishable to the observer. Sometimes,
no match is possible. In this case one of the primary lights
should be added to the test light field. Mathematically, we can
model this as if we were subtracting some of the primary light.
See [26] for more discussion.
By successively setting the test light to be a unit power
monochromatic light at sample points across the visible spectrum, we can measure the Color Matching Functions [27].
That is we find the RGB mixture that affords a match on
a per wavelength basis. Because color matching is linear
(the sum of two test spectral lights is matched by the sum
of their individual matches) then given the color matching
functions we can _compute_ the match for any arbitrary test
light [28]. We simply integrate any test light spectrum with
the Color Matching Functions. It can also be shown that the
color matching functions are necessarily linearly related to the
cone sensitivities [29], [30].
Assuming monochromatic primary lights at 650nm, 530nm
and 460nm, the resulting CIE RGB CMFs are shown to the
right of Fig. 2. The XYZ CMFs are a linear combination of
the RGB CMFs, see in Fig. 1b. That XYZ CMFs are used (as
opposed to RGB CMFs), in part, because they have, by design,
no negative sensitivities. Standardised in 1931, the lack of
negatives made pencil and paper calculations with matching
curves easy.
The X, Y and Z scalar values we compute when we integrate
a test light spectrum with the XYZ CMFs are called XYZ
tristimuli. In this article we are interested in using a camera
to measure XYZ tristimuli.
The color matching experiment is of direct practical importance. Indeed, suppose a display device can output three colors
equal to the R, G and B stimuli used in the color matching
experiment. It follows that a camera that had sensitivities
equal to RGB Color Matching Functions would _see_ the correct
RGBs to drive the display that would result in a perceptual
match to the test light. Equally, it would suffice that camera’s
sensitivities were linearly related to the CMFs since we could
linearly transform the camera measurements to the correct
RGB to drive the display. Of course, we note that - unlike
the RGB color matching functions - we can only _drive_ the
putative display with positive numbers. Consequently, there
are real world colors that cannot be reproduced on displays.
_B._ _Continuous_ _Color_ _Image_ _Formation_
The color of a pixel recorded by a digital camera depends
on three physical factors: the spectral power distribution of
the illuminant, the spectral reflectance of the object, and the
sensor’s spectral sensitivities. The color formation at a pixel,
under the Lambertian surface model, can be modeled as
_ρk_ =
_ω_
_E(λ)S(λ)Qk_ _(λ)_ d _λ,_ _k_ ∈{ _R, G, B_ } (1)
Fig. 2. A typical setup that can be used for the color matching experiment (left). Right shows the CIE 1931 RGB color matching functions obtained from
the color matching experiments using real R, G, and B primary stimuli.
where the subscript _k_ indicates the color channel, _λ_ denotes
wavelength variable defined on the visible spectrum _ω_
(approximately, 400nm to 700nm). The functions _E(λ)_ and
_S(λ)_ respectively denote the spectral power distribution of the
illuminant and the spectral reflectance. The function _Qk(λ)_ is
the spectral sensitivity of the _k_ th camera color channel.
Let us define the color signal _C(λ)_ :
_C(λ)_ = _E(λ)S(λ)._ (2)
Substituting Equation (2) into Equation (1):
_ρk_ =
_ω_
algebra. Let the matrices _C_ and _Q_ denote 31 × _n_ and 31 × 3
matrices whose columns respectively contain _n_ color signal
spectra and the 3 device spectral sensitivities. The _n_ × 3 set of
RGB responses can be written as a single concise expression:
_P_ = _C_ <sup>_T_</sup> _Q,_ (5)
where <sup>_T_</sup> denotes the matrix transpose.
Denoting, _X_ as a 31 × 3 matrix whose columns contain the
discrete XYZ color matching functions, the XYZ tristimulus
responses can be written as:
_X_ = _C_ <sup>_T_</sup> _X._ (6)
_D._ _The_ _Luther_ _Condition_ _for_ _Camera_ _Spectral_ _Sensitivities_
Let us denote individual camera and XYZ responses as _ρ_
and _x_ . We can use a camera to _exactly_ measure colors if and
only if there exists a function such that _g(ρ)_ = _x_ for all
spectra. It follows that if a pair of spectra integrates to the
same RGB then this pair must also integrate to the same XYZ:
_C_ 1 <sup>_T_</sup> <sup>_Q_</sup> <sup>=</sup> <sup>_C_</sup> 2 <sup>_T_</sup> <sup>_Q_</sup> <sup>⇒</sup> <sup>_C_</sup> 1 <sup>_T_</sup> <sup>_X_</sup> <sup>=</sup> <sup>_C_</sup> 2 <sup>_T_</sup> <sup>_X_</sup> (7)
This implies _C_ 1 <sup>_T_</sup> <sup>−</sup> <sup>_C_</sup> 2 <sup>_T_</sup> <sup>is</sup> <sup>simultaneously</sup> <sup>in</sup> <sup>the</sup> <sup>null</sup> <sup>space</sup>
of _Q_ and _X_ . Since any spectrum in the null-space of _Q_ is
a physically plausible spectral difference this implies that the
null-spaces of _Q_ and _X_ are the same and this in turn implies
the Luther condition
_X_ = _QM_ (8)
where _M_ is a 3 × 3 matrix. See [32] for the original proof of
the Luther condition (which we precis above).
_E._ _The_ _Data-Driven_ _Luther_ _Condition_
The Luther condition for Spectral Sensitivities presupposes
that any and all physical spectra are plausible. However,
we know that reflectance spectra are smooth [8]. Lights while
more arbitrary are designed to integrate to fall near or close
to the Planckian locus [3] and to score well on measures such
_C(λ)Qk_ _(λ)_ d _λ,_ _k_ ∈{ _R, G, B_ } _._ (3)
_C._ _Discrete_ _Color_ _Image_ _Formation_
In the optimisations that will be presented in Section III,
it is useful to recast the continuous integrated responses
using discrete representations where spectra are represented
as sampled vectors of measurements. Typically and justifiably
from a color accuracy point of view [31], a spectrum can be
represented by 31 measurements made between 400 nm and
700 nm by 10 nm sampling interval. Note, the methods we
set forth - since they are designed for the discrete domain are agnostic about the sampling interval. If the data is given
at a 5 nm sampling distance then each spectrum would be
represented as a 61-component vector. Henceforth, we will
talk about spectra being 31-vectors (and this corresponds to
the format of most available measured spectral data).
Equation (3) is now, equivalently, written as:
_ρk_ = _C_ - _Qk,_ _k_ ∈{ _R, G, B_ } _._ (4)
Respectively _C_ and _Qk_ denote the sampled version of the
color signal spectrum and the _k_ th spectral sensitivity function.
We assume the sampling distance is incorporated in the
spectral sensitivity vectors. Here ‘·’ denotes the dot product
of two vectors.
One advantage of transcribing image formation into vector
notation is that we can usefully deploy the tools of linear
as the Color Rendering Index [11]. Pragmatically, a camera is
colorimetric if its responses are a linear transformation from
the XYZ tristimulus values
_C_ <sup>_T_</sup> _X_ = _C_ <sup>_T_</sup> _QM_ (9)
where _M_ is a 3 × 3 matrix.
_F._ _Filter_ _Design_
There are many papers in the literature where the spectral
sensitivities that a camera _should have_ had are designed [33]–
[38]. For example, we can solve for the camera spectral sensitivities with respect to which the RGBs mapped with respect
to many illuminant spectra can be mapped to corresponding
XYZs for a single target illuminant. The procedure where
we measure colors under a changing light - e.g. in the real
world - but then reference (that is, map) these colors back to a
fixed illuminant viewing condition is a standard methodology
in color science. Curiously, the best sensors that solve this
problem are not linearly related to the XYZ CMFs [38].
Perhaps, the closest work to our study is [39]. Here two
images are captured. The first with the native spectral sensitivities and the second through a colored filter. The emphasis
of that work was to increase the spectral dimensionality of
the capture device. Since we make two captures we have
6 measurements per pixel. Effectively we have a 6-dimensional
sensor set. We match target XYZs by applying a 6 × 3
correction matrix. In [39], the best filter was chosen from a
set of commercially available filters.
There are many other works which propose recovering
spectral information by capturing multiple exposures of the
same scene through multiple filters, e.g. [40]–[44]. A disadvantage of all these methods is that the capture process
is longer and more laborious. Filters need to be changed
between exposures. The multi-exposure process then need to
be registered. Image registration remains a far from solved
problem. Moreover, scene elements between exposures may
move (making registration impossible).
The method we propose here is much simpler. We simply
place a specially designed filter in front of a camera and then
take conventional single exposure images.
III. DESIGNING A FILTER TO MAKE A CAMERA MORE
COLORIMETRIC
_A._ _Luther-Condition_ _Filters_
The Luther condition states that a camera system is colorimetric if its sensitivities are a linear transform from the
XYZ color matching functions. We propose a modified Luther
condition where a camera is said to be colorimetric if there
exists a physically realisable filter which, when placed in front
of the camera, generates _effective_ sensitivities which are a
linear transform from the XYZ CMFs.
Physically, the role of a filter, which absorbs light on a per
wavelength basis, is multiplicative. If _f (λ)_ is a transmittance
filter and _Q(λ)_ denotes the camera sensitivities then _f (λ)Q(λ)_
is a physically accurate model of the effect of placing a filter
in front of the camera sensor.
Here _Q_ and _X_ are 31 × 3 matrices encoding respectively
the spectral sensitivities of a digital camera and the CIE
standard XYZ color matching curves. The 31-vector _f_ is the
sampled equivalent of the continuous filter function _f (λ)_ . The
_diag()_ operation converts a vector into a diagonal matrix (the
vector components appear along the diagonal). The meaning
of _diag( f )Q_ is the same as _f (λ)Q(λ)_, i.e. the diagonal
matrix allows us to express component-wise (per wavelength)
multiplication into matrix multiplication. _M_ denotes a 3 × 3
matrix. We minimise the square of Frobenius norm ∥∥ <sup>2</sup> _F_ <sup>(we</sup>
minimise the sum of squares error). Notice the constraint that
the filter value is larger than 0 (physically, we cannot have a
filter that has negative transmittance).
We do not have to constrain the maximum transmittance
because we can only solve for _f_ and _M_ up to an unknown
scaling factor. Indeed, suppose the filter _f_ is returned where
the max transmittance is larger than 1. The fitting error in
Equation (10) is unchanged if we divide _f_ by its maximum
value (resulting in a max transmittance of 100%) so long as we
multiply the corresponding correction matrix _M_ by the same
value.
We minimise Equation (10) using an alternating leastsquares (ALS) procedure given in the following algorithm.
where <sup>�</sup> denotes component-wise matrix multiplication. Steps
4 and 5 - where we find the filter and then the linear transform are solved using simple, closed-form least-squares estimation.
For completeness we provide details of how these calculations
are made in the Appendix.
At each iteration, the filter and linear transform - _f_ <sup>_i_</sup> and
_M_ <sup>_i_</sup> - are calculated relative to the previous _i_ - 1 filters and
matrices. It follows in step 8 that the final solution is the
multiplication of all the per-iteration solutions: _f_ <sup>_Luther_</sup> =
- _i_
_s_ =1 <sup>_f s_</sup> <sup>(component-wise</sup> <sup>vector</sup> <sup>multiplication)</sup> <sup>and</sup> <sup>_M j_</sup> <sup>=</sup>
- _i_
_s_ =1 <sup>_M_</sup> <sup>_s_</sup> <sup>(component-wise</sup> <sup>matrix</sup> <sup>multiplication).</sup>
Notice nowhere in the above procedure do we constrain
the filter transmittance to be larger than 0 (even although
this constraint is in the optimisation statement). Empirically,
we found that the optimised filter is always positive for all
the cameras we tested (see experimental section). Moreover,
Algorithm 1 ALS Algorithm for Luther-Condition Optimisation
In Equation (10) we write an optimisation statement for the
Filter-based Luther condition:
min ∥ _diag( f )QM_ - _X_ ∥ <sup>2</sup> _F_
_f,M_
min
<sup>2</sup> _F_ s.t. _f_ _>_ 0 (10)
Theorem 3 _._ 1, presented below, proves that when there exists
a filter which makes the camera sensors perfectly colorimetric
that the filter has to be everywhere positive.
The theorem is presented for continuous spectral sensitivity
functions. As such, we write the XYZ CMFs and camera
sensitivities as vector functions: _X(λ)_ and _Q(λ)_ . In this representation, we, effectively, have taken transposes of the matrices
_Q_ and _X_ . So, here, we write _M_ <sup>_T_</sup> for the 3×3 matrix. Of course,
matrix _M_ in the proof and in the algorithm presented above
signifies the same linear transform.
_Theorem_ _1:_ Assuming there exists an exact solution that
_f (λ) >_ 0 for _M_ <sup>_T_</sup> _Q(λ) f (λ)_ = _X(λ)_, the variable _λ_ is defined
over the domain where _X(λ)_ _>_ 0 are continuous and full
rank (no one spectral sensitivity can be written as a linear
combination of the other two) and _Q(λ)_ are also continuous
then _f (λ) >_ 0.
_Proof:_ First we remark on the continuity of the camera
and XYZ functions. Both are the result of physical processes
which are continuous in nature. To our knowledge it is
not possible to make a physical sensor system that captures
light which has discontinuous sensitivities. And, in terms of
physiological systems, biological sensor response functions are
always continuous.
Next, if _f (λ)_ _<_ 0 across all wavelengths and
_M_ <sup>_T_</sup> _Q(λ) f (λ)_ = _X(λ)_, then - _M_ <sup>_T_</sup> _Q(λ)_ ∗ _(_ - _f (λ))_ = _X(λ)_ .
In this case - _f (λ)_ must be all positive and so an all-positive
filter can be found. The interesting case to consider is when
the filter has both negative and positive values.
Clearly the 3 × 3 matrix _M_ <sup>_T_</sup> must be full rank otherwise
the mapped camera sensitivities would be rank deficient and
therefore could not model the CMFs. Equally, multiplying by
a filter does not change the rank of the sensor set. Because,
by assumption _Q(λ)_ are continuous it follows that _f (λ)_ must
also be a continuous function since otherwise _M_ <sup>_T_</sup> _Q(λ) f (λ)_
would be discontinuous (multiplying a continuous and discontinuous functions together, save for the case where one
of the functions is everywhere 0, results in a discontinuous
function).
As _f (λ)_ is continuous if the function has both negative
and positive values there must be at least one wavelength
_λv_ where _f (λv_ _)_ = 0 and so _M_ <sup>_T_</sup> _Q(λv_ _) f (λv_ _)_ = 0. But, this
cannot be the case since the XYZ color matching functions
are not all zero at any given wavelength within the defined
domain.
Of course the theorem is written in the continuous domain.
How does this theorem work given discrete data? (e.g. 10 nm
samples across the visible spectrum). Pragmatically, we have
found that the recovered filters are always all positive, for
the discrete case. And, of course - by linear interpolation,
for example, we can turn non-continuous data into continuous functions. Then, by the theorem if there is an exact
filter correction then this filter must be all positive. And,
the filter must also _work_ at the original sample points (be
all positive here too). Remember, the theorem does not
teach how to find the all-positive filter only that if exact
color correction is possible the filter must be all positive.
For linearly interpolated discrete data the filter must be all
positive.
Algorithm 2 ALS Algorithm for the Data-Driven Optimisation
_B._ _Data-Driven_ _Filters_
_Simple_ _Case:_ in the _simple_ Data-driven approach, we look
for a color filter and the 3 × 3 color correction matrix that,
in a least-squares sense, best maps camera measurements for
a training color signal data set to the corresponding groundtruth XYZ tristimulus values. Denoting a collection of _n_ color
signals in the _n_ × 31 color signal matrix _C_, the Data-driven
optimisation is written as:
min ∥ _C_ <sup>_T_</sup> _diag( f )QM_ - _C_ <sup>_T_</sup> _X_ ∥ <sup>2</sup> _F_
_f,M_
min
<sup>2</sup> _F_ s.t. _f_ _>_ 0 (11)
Solving Equation (11) depends on the structure of the
color signal matrix. If we choose _C_ = _I_ 31 (the 31 × 31
identity matrix) then we can solve this optimisation using
Algorithm 1 (in this case, Equations (11) and (10) are the
same). This assumption is related to the Maximum Ignorance
assumption [45] where all possible spectra are considered
equally likely.
_General_ _Case:_ Let us develop a more general optimisation
statement. One, where we have _cnt_ color signal matrices
- denoted _C j_ ( _j_ ∈{1 _,_ 2 _,_ - · · _, cnt_ } _)_ and the corresponding
_cnt_ color correction matrices _M j_ . Each color signal matrix
typically corresponds to a training set of surface reflectances
illuminated by a single spectrum of light _E j_, thus the color
signal matrix is _C j_ = _diag(E j_ _)S_, where _S_ is a 31 × _n_ matrix
of reflectances, one reflectance spectrum per column. But,
the different light assumption is not a necessary assumption.
As an example, we might mix color signals for the Maximum
Ignorance assumption with measured data (i.e. two color signal
matrices) where both measurement sets contain multiple lights.
The general Data-driven filter optimisation problem is written as:
_k_ <sup>_T_</sup> <sup>_X_</sup> <sup>∥2</sup> _F_
<sup>2</sup> _F_ s.t. _f_ _>_ 0 (12)
min
_f,M j_
- _cnt_
_j_ =1
∥ _C_ <sup>_T_</sup> _j_
<sup>_T_</sup> _j_ <sup>_diag( f )QM j_</sup> <sup>−</sup> <sup>_C_</sup> _k_ <sup>_T_</sup>
and is solved using Algorithm 2.
Finally, _k_ could denote some other privileged standard
reference viewing condition (where the reference viewing
illuminant is not in the set of training lights). For example,
in color measurement we are often interested in the XYZ
tristimuli for a daylight illuminant D65 which has a prescribed
but not easily physically replicable spectrum.
We are going to solve Equation (12) for the filter _f_ using
an alternating least-squares procedure. Notice that the input
to the optimisation is an initial filter guess denoted by _f_ <sup>_seed_</sup> .
Let us consider 3 candidate minimisations corresponding to
3 common scenarios for color measurement each of which
can be solved using Algorithm 2.
_1)_ _Multiple_ _Lights:_ Here we assume that _j_ indexes over
_cnt_ illuminants and _k_ = _j_ (per illuminant we make the target
XYZs using the same color signals). We find a single filter
which given per-illuminant optimal least-square 3 × 3 correction matrices will best fit camera data to the corresponding
multi-illuminant XYZs.
_2)_ _Multiple_ _measurement_ _lights,_ _single_ _target_ _light:_ Again
_j_ indexes over _cnt_ illuminants. But, the target is a single
illuminant, for example CIE D65 [3].
_3) Single Light_ . This case is, in effect, the simple restriction
of the general case, _cnt_ = 1. We have one measurement light
and one target light. Like the Luther-condition optimisation,
we solve for a single correction matrix.
In Algorithm 2, it is straightforward to solve for the _j_ th
color correction matrix at iteration step _i_, _M_ <sup>_i_</sup> _j_ <sup>,</sup> <sup>in</sup> <sup>step</sup> <sup>4</sup> <sup>using</sup>
the Moore-Penrose inverse. As the correction matrix might
have an impact on noise amplification after the transform [46],
it is desirable to have a well-conditioned correction matrix.
That is, we could bound the condition number of the solvedfor correction matrix e.g. by using regularisation. However,
in our experiments all the matrices we calculated were found
to be tolerably well-conditioned. Step 5, where we find the
filter, can also be solved directly using simple least-squares,
although the basic equations need to be rearranged. Details of
the least-squares computation are given in the Appendix. Here,
to ensure that the filter is all positive we can also solve for
the filter by solving the optimisation subject to the positivity
constraints, we solve a quadratic programming problem [47]
(unlike the Luther-condition case there is no a prior physical
reason why the best filter should be all positive).
Quadratic programming allows linear least-squares problem
subject to linear constraints to be solved rapidly and, crucially,
a global optimum is found.
_C._ _Adding_ _Filter_ _Constraints_
By default the filter found using Algorithm 2 can be arbitrarily non-smooth and might also be very non-transmissive.
Non-smoothness limits manufacturability (at least with dye
based filters) and a filter that absorbs most of the incoming
light would, perforce, have limited practical utility. Both these
problems can be solved by placing constraints on the filter
optimisation.
Let us now constrain the target filter _f_ according to:
_f_ = _Bc,_ s.t. _fmin_ ≤ _f_ ≤ _fmax_ (13)
here _B_ denotes a 31 × _m_ basis matrix with each column
representing a basis and the vector _c_ denotes an _m_ -component
coefficient vector. The scalars _fmin_ and _fmax_ denote lower
and upper thresholds on the desired transmittance of the filter;
specifically, _fmax_ is set to 1 by default as fully transmissive
and _fmin_ is a positive value between 0 and 1. Equation (13)
forces the optimised filter to be in the span of the column
vectors of _B_ and to meet the min and max transmittance
constraints. By judicious choice of the basis we can effectively
bound the smoothness of the filter. For example, we could
choose the first _m_ terms of the discrete cosine transform basis
expansion [48].
With respect to the new filter representation, we rewrite the
new overall filter design optimisation in Equation (12) as
_k_ <sup>_T_</sup> <sup>_X_</sup> <sup>∥2</sup> _F_
<sup>2</sup> _F_ <sup>_,_</sup>
min
_c,M j_
- _cnt_
_j_ =1
∥ _C_ <sup>_T_</sup> _j_
<sup>_T_</sup> _j_ <sup>_diag(Bc)QM j_</sup> <sup>−</sup> <sup>_C_</sup> _k_ <sup>_T_</sup>
_fmin_ ≤ _Bc_ ≤ _fmax_ (14)
The current minimisation can be solved using the same alternating least-squares paradigm of Algorithm 2. But, in step 5,
we need to substitute the constraint _f_ <sup>_i_</sup> _>_ 0 with
- _i_ −1
_fmin_ ≤ _diag(_
_s_ =0
_f_ <sup>_s_</sup> _) f_ <sup>_i_</sup> = _Bc_ <sup>_i_</sup> ≤ _fmax_ (15)
That is, the filter we find at the _i_ th iteration when multiplied
by all the filters from the previous iterations is constrained to
be in the basis _B_ .
Looking at Equation (15) we see that
- _i_ −1
_f_ <sup>_i_</sup> = [ _diag(_
_s_ =0
_f_ <sup>_s_</sup> _)_ ] <sup>−1</sup> _Bc_ <sup>_i_</sup> (16)
That is, effectively the basis for the _i_ th filter changes at each
iteration. Again we can solve step 5 subject to the constraints
of Equation (16) using Quadratic Programming.
Finally, we note that we could, of course, rewrite Algorithm 2 so that at each iteration we solve for a filter defined
by a coefficient weight directly (we could solve for an _m_ term coefficient vector rather than a 31-component filter). The
two formalisms are equivalent. Here, we chose to solve for
the per iteration filter for notational convenience: we can use
the general Data-driven algorithm and simply change how we
calculate the per iteration filter optimisation.
_D._ _Initialising_ _the_ _Data-Driven_ _Optimisation_
Alternating least-squares is guaranteed to converge but it
will not necessarily return the global optimal result. But, it is
deterministic. So, given the state of the correction matrices and
filter at the _i_ th iteration we will ultimately arrive at the same
solution. Equally, if we change the initialisation condition,
_f_ <sup>_seed_</sup>, in Algorithm 2, we may end up solving for a different
filter. Empirically, we observed that the filter returned by the
algorithm depends strongly on the initial filter that seeds the
optimisation.
Let us consider 3 different ways to seed the Data-driven
optimisation:
_1)_ _Default:_ _f_ <sup>_seed_</sup> = 1. This uniform unit vector denotes a
fully transmissive filter over the spectrum.
_2) Luther filter:_ _f_ <sup>_seed_</sup> = _f_ <sup>_Luther_</sup> . That is we seed the Datadriven optimisation with the optimal Luther-condition filter
found using Algorithm 1.
_3)_ _By_ _sampling:_ Here we find a set of sample filters _F_
(which meet our smoothness and transmittance boundedness
constraints) and for each filter sample, _f_ ∈ _F_ <sup>_seed_</sup>, we will run
Algorithm 2.
Algorithm 3 Algorithm for Generating an Initial Filter Set
Algorithm 3 generates # _f ilters_ (number of initial filters)—
subject to bounded smoothness constraints—by uniformly
and randomly sampling the filter coefficient space. Before
sampling, the algorithm first finds the min and max values
of the coefficients (which are calculated in each of the _m_
dimensions individually). Explicitly, for the _i_ th component in
vector _c_, we denote its minimum and maximum values as _ci_ <sup>_min_</sup>
_i_
and _ci_ <sup>_max_</sup> .
and _ci_ <sup>_max_</sup> .
In Algorithm 3, for the minimum value of the _i_ th coefficient,
we write: _ci_ <sup>_min_</sup> = min _ci_ _,_ s.t. _fmin_ ≤ _Bc_ ≤ _fmax_ _, i_ =
we write: _ci_ <sup>_min_</sup> = min _ci_ _,_ s.t. _fmin_ ≤ _Bc_ ≤ _fmax_ _, i_ =
1 _,_ 2 _, . . ., m_ . That is, over all possible vectors _c_, which satisfy
the transmittance constraints, we take note of the minimum
value of the _i_ th component. That is we find the minimum
value that _ci_ can be over the set of all possible solutions. The
maximum of the _i_ th coefficient term is written similarly (see
step 3, Algorithm 3). The minimum and maximum values of
_ci_ can be solved using linear programming [47].
All _m_ min and max components, taken together, make the
two vectors _c_ <sup>_min_</sup> and _c_ <sup>_max_</sup> . These vectors together define the
extremal values in each dimension of an m-dimensional hypercube. A vector that lies outside the hypercube is guaranteed
not to satisfy the boundedness and transmittance constraints
we have placed on our filters. This hypercube usefully delimits
our search space (of the sample set of solutions).
To generate a set of filters for initialising the optimisation
(solved in Algorithm 2) we will sample uniformly� and ran-�
domly this hypercube. We use the notation _ci_ ∼ _U_ _ci_ <sup>_min_</sup> _, ci_ <sup>_max_</sup>
then find the linear least-squares transform mapping the new
effective sensitivities to the XYZ matching functions. The
fitted filtered camera sensitivities (to the XYZ color matching
functions) are shown Fig. 1f. In contrast, Fig. 1d, shows
the native camera spectral sensitivities fitted to the XYZs.
Visually, the addition of our derived filter makes the camera
much more colorimetric.
The reader will notice that the filter, Fig. 1e, absorbs more
than 80% of the light except at the shortest wavelengths where
it is maximally transmissive. This need not be a problem for
color measurement as we can increase exposure time, for
example. Though, it does mean that the camera with and
without the filter would, for the same recording conditions,
capture significantly less light. And, this could result in an
increase in the noise in the final image output by a camera
reproduction pipeline. Indeed, if we deploy this filter - and
keep the capture conditions the same - we would need to
‘scale up’ the recorded values and this operation also scales
up the noise. Effectively, we capture an image at a higher ISO
number.
_B._ _Vora-Values_
To quantitatively measure the _spectral_ match between the
filtered and linear transformed camera sensors and the XYZ
color matching functions, we calculate the Vora-Value [49].
The Vora-Value measures the closeness between the spaces
spanned by a set of filter sensitivities set _Q_ and that by the
color matching functions _X_ . It is defined as
_ν(X, Q)_ = <sup>_Trace(QQ_</sup> <sup>+</sup> <sup>_XX_</sup> <sup>+</sup> <sup>_)_</sup> (17)
3
where _Trace()_ returns the sum of the diagonal of a matrix
and <sup>+</sup> is the Moore-Penrose inverse (see Appendix). The VoraValue is a number between 0 and 1 where 1 indicates the two
sensitivity sets span the same space, i.e. the Luther condition
is fully satisfied. While there is not a guide on what different
Vora-Values _mean_, empirically we have found when the VoraValue is respectively larger than 0.95 and 0.99 then we have
acceptable and very good color measurement performance.
An explanation of why the Vora-Value is useful for quantifying
the color measurement potential of a set of color filters
together with its derivation can be found in [49].
The Vora-Value performance for a set of 28 camera spectral
sensitivities [50] - with and without their optimised filters
solved using Algorithm 1 - are shown in Fig. 3. The VoraValue for the unfiltered, NAT ive sensitivities are shown in
blue and for the LUTH er-condition optimised sensitivities in
red. On average, the native Vora-Value is 0.918 but when the
optimised filter is added it increases to 0.961. This digital
cameras data set [50] comprises of diverse camera types,
including professional DSLRs, point-and-shoot, industrial and
mobile cameras.
Note, we make a distinction between using a camera for
color measurement and for making attractive looking images.
Here, we are interested in using a camera to measure XYZ
tristimuli (or measures like CIE Lab values that are derived
from tristimuli [3]). From a measurement perspective, we need
higher tolerances and a higher Vora-Value. Clearly, from the
_ci_ <sup>_min_</sup>
_i_
_i_ <sup>_min_</sup> _, ci_ <sup>_max_</sup>
_i_ <sup>_min_</sup> _, ci_ <sup>_max_</sup>
to denote sampling a number in the interval [ _ci_ <sup>_min_</sup>
to denote sampling a number in the interval [ _ci_ <sup>_min_</sup> _, ci_ <sup>_max_</sup> ]
uniformly and randomly. A filter constructed from the corresponding vector _c_ = [ _c_ 1 _c_ 2 - · · _cm_ ] <sup>_T_</sup> ( _f_ = _Bc)_, will be
added into the initial filter set _F_ only if it lies within the
transmittance bounds and it is sufficiently far from those filters
already in the set, see step 7. In algorithm 3 _sufficiently_ _far_
means at least _θ_ degrees from the other set members. The
function _cardinality()_ returns the number of members in a
set.
IV. RESULTS
_A._ _Experiments_ _for_ _Luther-Condition_ _Optimised_ _Filters_
Let us return to the example shown in Fig. 1. The optimal
Luther-condition filter solved using Algorithm 1 is shown
in Fig. 1e. We multiply the camera sensors by this filter and
Fig. 3. Spectral match to Luther-condition by (a) unfiltered NAT ive
sensitivities and (b) filtered LUTH er-condition optimised sensitivities for a
group of 28 cameras in terms of Vora-Values. The overall average Vora-Values
of the camera group by both conditions are shown in the green box.
point of view of making attractive images cameras that have
Vora-Values less than 0.95 can work very well. Indeed, many
of the 28 cameras with Vora-Values less than 0.95 can still take
images that look appealing from a photographic perspective.
But, commercial cameras are not suitable vehicles for accurate
color measurement. Quantitative color measurement results are
presented in the next section.
_C._ _Color_ _Measurement_ _Experiments_
Now let us evaluate the derived Luther-condition filters
(solved using Algorithm 1) and Data-driven filters (solved
using Algorithm 2) in terms of a perceptually relevant _color_
_measurement/image_ _reproduction_ metric. The error metric
_�Eab_ <sup>∗</sup> <sup>[3]</sup> <sup>-</sup> <sup>the</sup> <sup>Euclidean</sup> <sup>distance</sup> <sup>calculated</sup> <sup>between</sup> <sup>two</sup>
color vectors in the CIELAB color space - is a single number
that roughly correlates with the perceived perceptual distance
between two colors. One _�Eab_ <sup>∗</sup> <sup>corresponds approximately to</sup>
a ‘Just Noticeable Difference’ to a human observer [27]. When
_�Eab_ <sup>∗</sup> <sup>is less than 1 we say that the difference is imperceptible</sup>
to the visual system.
_1)_ _Single_ _Light_ _Case:_ Let us use the Canon 40D camera
spectral sensitivities as a putative measurement device and
quantify how well it can measure colors - with and without
a filter. In this experiment the measurement light is either
a CIE D65 (bluish) or a CIE A (yellowish) illuminant. For
reflectances we use the SFU set of 1995 spectra [51] (itself
a composite of many widely used sets). The 1995 XYZs for
these reflectances and lights are the _ground-truth_ with respect
to which we measure color measurement error.
Using the Canon camera sensitivities, the reflectance spectra
and either the CIE D65 and A lights we numerically calculate
two sets of 1995 RGBs. Now, we linearly regress the RGBs
for each light to their corresponding ground-truths (we map
the native RGBs for CIE D65 and A to respectively the XYZs
under the same lights). We call these color corrected RGBs
the NAT ive camera predictions (and we adopt this notation in
the results shown in Table I). Rows 1 and 4 of Table I report
the mean, median, 90, 95 and 99 percentile and the maximum
CIELAB _�E_ error for CIE D65 and CIE A lights.
Now let us place a filter in front of the camera. Again,
we calculate two sets of RGBs (one for each light) for the
camera spectral sensitivities multiplied by the filter found
using the Luther-condition optimisation (Algorithm 1). The
recorded filtered RGBs are mapped best to corresponding
XYZs using linear regression. The LUTH er _�Eab_ <sup>∗</sup> <sup>error</sup>
statistics are shown in rows 2 and 5. It is clear that placing
a Luther-condition filter substantially increases the ability of
the camera to measure colors accurately. Across all metrics the
_�Eab_ <sup>∗</sup> <sup>errors reported are</sup> <sup>about a</sup> <sup>third</sup> <sup>of</sup> <sup>those</sup> <sup>found when</sup> <sup>a</sup>
filter is not used.
We repeat the experiment for a Data-driven color filter
(found using Algorithm 2 where the seed filter for the optimisation is the Luther-condition optimised filter). Again, the two
sets of filtered RGBs are linearly mapped to corresponding
XYZs to minimise a least-squares error. Results for the
corrected DATA -driven filtered RGBs for the two lights are
reported in rows 3 and 6 of Table I. Clearly, the camera plus
filter can measure colors more accurately compared to the case
where a filter is not used. Across all metrics the _�Eab_ <sup>∗</sup> <sup>errors</sup>
reported are about a quarter of those found when a filter is
not used.
Significantly, the best Data-driven filter also delivers
improved performance compared with the results reported for
the Luther-condition optimised filter. The errors are further
reduced by about a quarter. Incorporating knowledge of typical
lights and surfaces into the optimisation leads to improved
color measurement performance.
_2)_ _Multiple Lights Case:_ We now repeat the experiment for
a set of 102 measured lights [51]. The results of this second
experiment are shown in the last 3 rows of Table I. Here,
the reported error statistics are averages. For each illuminant
- as described in the single light case above - we calculate
the mean, median, 90 percentile, 95 percentile, 99 percentile
and maximum _�Eab_ <sup>∗</sup> <sup>.</sup> <sup>That</sup> <sup>is,</sup> <sup>we</sup> <sup>calculate</sup> <sup>6</sup> <sup>error</sup> <sup>measures</sup>
for 102 lights. We then take the mean of each error statistic
over all the lights. The aggregate illuminant set performance is
reported in rows 7, 8 and 9 of Table I for respectively unfiltered
RGBs and RGBs measured with respect to Luther-condition
and Data-driven optimised filters.
In terms of the reported errors of the raw RGBs compared
to the filtered RGBs for the Luther- and Data-driven filters we
see the same data trend for the multiple lights case as we saw
previously for single lights. A Luther-condition derived filter
reduces the measurement error by 2/3 and for the Data-driven
filter the measurement error is reduced by 3/4, on average.
_3)_ _Multiple_ _Cameras:_ Now, we calculate the mean _�Eab_ <sup>∗</sup>
error (for the 102 lights and 1995 reflectances) for each
of 28 cameras [50]. For each camera we calculate the optimal Luther-condition and Data-driven optimal filters (where
as before the Luther-condition filter seeds the Data-driven
optimisation). Per camera, Figure 4 summarises the per camera
mean and 95 percentile _�Eab_ <sup>∗</sup> <sup>performance.</sup>
Grey bars in Figs. 4a and 4b show respectively the mean and
95 percentile error performance of native (un-filtered) color
corrected RGBs for the 28 cameras. Respectively, the dashed
green and solid red lines record the performance of the best
Luther-condition and Data-driven filters.
It is evident that the optimised filters support improved
color measurement for all 28 cameras and on average the
TABLE I
_�Eab_ <sup>∗</sup> STATISTICS OF THE COLOR CORRECTED NAT IVE CAMERA,
THE COLOR CORRECTED CAMERA WITH THE LUTH ER-CONDITION
OPTIMISED FILTER, AND THE COLOR CORRECTED CAMERA WITH
THE DATA -DRIVEN OPTIMISED FILTER FOR CANON 40D CAM
ERA UNDER DIFFERENT LIGHTING CASES
Fig. 4. Mean (a) and 95-percentile (b) _�Eab_ <sup>∗</sup> <sup>errors for 28 cameras. The grey-</sup>
bars show the color errors for NAT ive color correction. The dashed green lines
with black circles show the results by using the LUTH er-condition optimised
filter. The results of the DATA -driven optimisation are plotted in solid red
lines.
performance increment is significant. For many cameras the
Data-driven optimised filter delivers significantly better color
measurement performance compared with using the Luthercondition optimised filter.
Fig. 5. Spectral transmittance of Data-driven optimised filters for the Canon
5D Mark II camera. In (a), the filters are solved with no smoothness constraint,
(b) and (c) constrain the filters to be constructed by 6- and 8- Cosine basis
respectively. Dotted blue lines (‘ DATA_1s ’) show the filters obtained when
the optimisation is initialised with the 100% transmittance filter, dotted purple
lines (‘ DATA_Luther ’) initialised with the LUTH er-condition filter, solid red
lines (‘ DATA_Sampling ’) with a sample set. All filters are constrained by
minimum transmittance of 20%.
_D._ _Smooth_ _and_ _Bounded_ _Transmittance_ _Filters_
Both the Luther-condition and Data-driven filters absorb
much of the available light (low transmittance values) and are
far from being smooth, e.g. see the derived Luther-condition
filter in Fig. 1e. Here across much of the visible spectrum the
filter transmits little (below 20%) of the available light. When
a strongly light-absorptive filter is placed in front of a camera
then we need to either increase the exposure time (or widen
the aperture) or apply a higher ISO (which can increase the
conspicuity of noise) to obtain an image with the same range
of brightness (as when a filter is not used). Plus the filter
in Fig. 1e is not smooth it may be difficult to manufacture.
In this subsection we will constrain our optimisation so that
the calculated filters are smooth and transmit, per wavelength,
a minimum amount of incident light (here, 20%). We enforce
smoothness indirectly by assuming that our filters lie within
the span of either a 6- or 8-dimensional Cosine basis.
Let us visualise the 20% bounded transmittance constraint
using the Canon 40D camera sensitivities and our Data-driven
optimisation. First, we initialise the optimisation (Algorithm 2)
using the uniform vector 1 (100% transmittance across the
spectrum) as the _seed_ filter. The optimisation returns the
filter, denoted DATA_1s and is plotted in the blue-dotted
line in Fig. 5a. The Data-driven optimisation seeded with the
Luther-condition filter DATA_Luther is also shown in Fig. 5a
(dotted purple line).
We repeat this experiment where we both require the derived
filters to transmit at least 20% of the light and also that they
belong to the span the first 6- or first 8-terms in a Cosine basis
expansion. When the recovered filter is constrained to lie in the
span of a 6-dimensional Cosine basis, the recovered DATA_1s
and DATA_Luther - for the two initialisation conditions filters are shown in Fig. 5b (respectively blue and purple
dotted lines). See Fig. 5c for the filters calculated using an
8-dimensional Cosine basis.
The red lines shown in Figs. 5b and 5c are the filters
optimised by our sampling Algorithm (using Algorithm 3 to
find a set of filters to seed algorithm 2 and then choosing
the best one that has the best overall performance). The
experiment for deriving these filters are described in the next
subsection.
By examining Figs. 5a, 5b and 5c, it is evident that - when
no basis, a 6- or an 8-dimensional Cosine basis are used - that
changing the initialisation condition results in a different filter
being found.
_E._ _Sampled_ _Optimisation_
Using Algorithm 3, let us run a sampled optimisation.
That is for a given Cosine basis we calculate a set of
candidate solutions, the sample set _F_ . Here we populate _F_
with 20,000 uniformly and randomly generated filters where
the angular threshold between any two filters in the set is
1 degree, _θ_ = 1 <sup>◦</sup>, see step 7 in Algorithm 3. Each filter in
_F_ transmits at least 20% of the light (and _F_ is populated by
filters described as linear combination of a 6- or 8-dimensional
Cosine basis).
Each filter in _F_ is used to initialise the Data-driven algorithm. That is we find 20,000 optimised filters. The color
measurement performance of each filter in this solution set can
be calculated. Then we simply choose the filter that delivers
the best overall measurement performance. In Figs. 5b and 5c
we show the best sample-optimised filters (red lines) which
TABLE II
_�Eab_ <sup>∗</sup> STATISTICS OF THE COLOR CORRECTED NAT IVE CAMERA,
THE COLOR CORRECTED CAMERA WITH THE DATA -DRIVEN OPTI
MISED FILTER SOLUTIONS OBTAINED WHEN INITIALISED WITH
UNIFORM VECTOR OF 1s, Luther -CONDITION FILTER AND
Sampling FILTER SET RESPECTIVELY UNDER DIFFERENT
CONSTRAINTS FOR CANON 40D CAMERA
respectively lie in the span of a 6- and 8-dimensional Cosine
basis (and transmit at least 20% of the light). Here ’best’ is
defined to be the filter that results in the smallest mean _�Eab_ <sup>∗</sup>
performance.
Table II reports the _�Eab_ <sup>∗</sup> color error performance
1995 reflectances and 102 lights [51] for the Canon 40D sensitivities. The row NAT reports the baseline color correction
results when a per illuminant based linear correction matrix is
applied while no filter is used (note that row 7 in Table I and
row 1 in Table II are the same).
In Table II we report the correction performances in 3
tranches. Rows 2 and 3 correspond to the two filters without
using Cosine basis as shown in Fig. 5a. Here we find the
best filters with only the 20% minimum transmittance bound.
Rows, 4,5 and 6 report the performance when the 3 filters
shown in Fig. 5b are used, where the filter is additionally
constrained to be in the span of the 6-dimensional Cosine
basis. Finally, when the filter is constrained to belong to an
8-dimensional Cosine basis, the 3 derived filters lead to the
error statistics shown in rows 7 through 9.
Table I reported the color measurement performance of the
filters found using an unconstrained optimisation. Table II
reports the color measurement results that are found when
filters are constrained to have a bounded transmittance (here
at least 20% of the light) and be smooth. Let us consider
the bounded transmittance first. Comparing row 9 of Table I
to row 3 of Table II we see that adding a lower transmittance
bound returns a filter that delivers poorer measurement performance (but still much better compared with the native camera
response). Additionally, requiring that our filters smooth on
top of the minimum also yields relatively poorer performance
compared to the unconstrained filter optimisation.
However, with either the 6- and 8-dimensional Cosine
basis constraint we can find the best filter by seeding Algorithm 2 with many possible filter initialisations (and then
TABLE III
_�Eab_ <sup>∗</sup> <sup>STATISTICS</sup> <sup>AND</sup> <sup>RELATIVE</sup> <sup>EXPOSURE</sup> <sup>SETTINGS</sup> <sup>OF</sup> <sup>THE</sup> <sup>COLOR</sup>
CORRECTED CAMERA WITH THE OPTIMISED Sampling FILTER SET
WITH VARYING CONSTRAINTS OF THE MINIMUM TRANSMITTANCE
CONSTRUCTED BY 8-COSINE BASIS FOR CANON 40D CAMERA
choosing the best filter overall). Here, we find that comparable
performance is possible. Compare rows 6 and 9 of Table II to
row 9 of Table I. It is remarkable how well a constrained filter
can work: the performance is ever so slightly worse than the
unconstrained optimisation. But, the filter is much smoother
and more likely to be able to be manufactured.
The best filters with varying minimum transmittance of
respectively 100% (i.e. no filter is applied), 80%, 60%, 40%
and 20% (all linearly composed by 8-Cosine basis using
sampled optimisation) are also calculated. For each filter,
we perform the color correction experiment where we use
the same data sets as in Table II (1995 reflectance spectra
and 102 illuminant spectra). The color correction results are
given in Table III. We also report the exposure adjustment
required so that the filtered camera captures the same amount
of light as an unfiltered camera (see the last column). The
exposure numbers are calculated as the reciprocal of the
averaged transmittance over the spectrum (when an equienergy spectrum light is assumed).
A filter having a minimum transmittance value of 20%
needs a doubling exposure to match the same light level
as the unfiltered condition. The best filter with a minimum
transmittance of 40% still makes the camera much more
colorimetric but only a 60% increase in exposure is required.
Exposure might be changed by opening the aperture a fraction,
capturing over a slightly longer exposure time or by applying a
scaling factor. When exposure is altered by applying a scaling
factor (e.g. increasing the ISO number) then for low-light
scenes there may be an increase in the conspicuity of noise.
_F._ _Sampling_ _vs_ _Optimisation_
It is worth reflecting on our sample-based optimisation.
Clearly, that sampling makes such a difference to the performance that our optimisation can deliver (for filtered color
measurement) teaches us that the minimisation at hand has
many local minima. By sampling we are effectively allowing
our minimiser (Algorithm 2) to find many solutions and then
we have the latitude to choose the (closer to) global minimum.
Given we seed our optimisation with 20,000 filters we might
wonder whether we need to actually carry out the Data-driven
optimisation.
TABLE IV
_�Eab_ <sup>∗</sup> <sup>STATISTICS OF</sup> <sup>THE COLOR CORRECTED CAMERA WITH</sup> <sup>THE</sup> <sup>OPTI-</sup>
MISED FILTER BY SAMPLING COMPARED TO HIGHER-ORDER COLOR
CORRECTION METHODS FOR CANON 40D CAMERA
In answering this question, first we remark that it is well
known that as the dimension of a space increases it is
more _sparse_ . On the Cartesian plane if we have more than
360 vectors (anchored at the origin) then the closest angular
distance to at least one vector’s nearest neighbours must be
less than 1 degree. In 3-dimensions we can have thousands
of vectors where every vector is more than 1 degree from its
nearest neighbour.
For our 20,000 member sample set _F_ we calculated the
average angular distance for each element to its nearest
neighbour in the set. When _F_ is calculated subject to the
6-dimensional Cosine basis constraint, the average nearestneighbour distance was 2.6 degrees (with a maximum of 7)
and for the 8-dimensional case it was 4.6 degrees (with a
maximum of 10). Running the optimisation, Algorithm 2, with
each element in _F_, we effectively _refine_ the initial guess. And,
the refinement (difference between the starting and endpoint
filter) is on the same order as the average nearest-neighbour
distance.
Significantly, running the optimisation - carrying out the
refinement - results in a significant performance increment
compared to using the only sample filters. That is we cannot
use the sampling strategy alone to find the best optimised filter.
The importance of the refinement step will increase as a greater
number of basis functions are used in the optimisation.
_G._ _Color_ _Filtering_ _vs_ _Higher-Order_ _Correction_ _Methods_
We compared our color filtering method (Data-driven filters
smoothed by 8-Cosine basis and transmittance constraints
under sampled optimisation using Algorithm 3) to the hueplane preserving color correction (NHPPCC) method presented in [18] (which is a data-driven modification of [52]).
This method effectively decomposes 3-dimensional color
spaces into a number of cones: defined to be regions of color
spaces that are convex combination of 3 bounding vectors (all
of which are anchored at the origin (0,0,0)). All cones share
the achromatic axis (1,1,1) and neighbouring cones have two
bounding vectors in common. Each cone has its own 3 × 3
color correction transform. If an RGB lies within a given cone
then this RGB is color corrected by the correction transform
for that cone. Significantly, because neighbouring cones share
two bounding vectors the overall color correction transform is
_continuous_ in the sense that the colors on the plane between
neighbouring cones are mapped to the same colors using either
of the color correction matrices for each cone. See [18] for
more details.
We chose the NHPPCC method as it maintains the linear
property invariant to exposure (the same NHPPCC transform
is applied when exposure changes), it is still relatively simple
to implement, and it is one of the leading color correction
algorithms available. For our experiments color space is split
into 6 cones.
Finally, we also compared the performance to the polynomial and root-polynomial color correction regressions (up
to degree of three). PCC,2 denotes a regression of a 2nd
order polynomial regression and PCC,3 denotes the 3rd order
polynomial expansion. Polynomial regression is not exposure
invariant but a root-polynomial regression is invariant to
exposure. The 2nd and 3rd order root-polynomial regressions
are denoted RPCC,2 and RPCC,3 . Color correction results using the same data sets as Table III - are reported in Table IV.
From the table, we can see that by adopting reasonably
transmissive filter with minimum transmittances of 20% and
40% and using simple linear correction we outperform the
higher order conventional color correction methods by a large
margin (these two results denoted Filtering are the same as
the last two rows in Table III). A filter with minimum transmittance of 60% (the fourth row in Table III) has comparable
performance to the best performed 3rd-order root-polynomial
results (the fifth row in Table IV).
V. CONCLUSION
In this article, we developed two algorithms that design
transmittance filters which, when placed in front of a camera,
make the camera more colorimetric. Our first algorithm is
driven by the camera sensitivities themselves. It is well known
that a camera that has sensitivities that are a linear transform
from the XYZ color matching functions - the camera meets the
_Luther condition -_ can be used to measure color without error.
Our first algorithm finds the filter that best satisfies the Luther
condition. A second algorithm that tackles color correction
for a given set of measured lights and surfaces, which we call
Data-driven filter optimisation, is also developed. Both Lutherand Data-driven filters provide a step change in how well a
camera can measure color.
Our default optimisation - though compellingly simple to
formulate - deliver filters which are not smooth (difficult
to make) and may also transmit very little light. Our optimisations are reformulated to incorporate both smoothness
and a lower bound on how much light must be transmitted.
Initially, when these constraints are adopted, the solved-for
filters work less well. However, experiments demonstrated that
our optimisations were highly dependent on the initialisation
parameters, specifically the _seed_ filter (initial guess) that drives
the filter evolution. A simple sampling strategy - i.e. severally
running the optimisation for a set of judiciously chosen seed
filters - allows us to mitigate this problem. Significantly a
smooth filter that transmits more than 20% of the light across
the visible spectrum delivers almost as good performance as
a very non-transmittive and non-smooth filter (found via the
unconstrained optimisations).
APPENDIX
IMPLEMENTATION
For both Algorithms 1 and 2 presented in Section III the
filter and the color correction matrices can be found using
simple least-squares regression. To remind the reader, given
_A_ and _B_ - _m_ × _n_ matrices of rank _n_ where _m_ ≥ _n_, then
the least-squares regression _M_ - an _n_ × _n_ matrix, mapping
_A_ to _B_ ( _AM_ ≈ _B_ ) can be found in closed-form using the
Moore-Penrose inverse [23]:
_M_ = [ _A_ <sup>_T_</sup> _A_ ] <sup>−1</sup> _A_ <sup>_T_</sup> _B_ = _A_ <sup>+</sup> _B_
_A._ _Algorithm_ _1:_ _ALS_ _for_ _the_ _Luther-Condition_ _Optimisation_
In step 4 of the algorithm, the optimal filter is found by finding scalars that maps each row of _Q_ <sup>_i_</sup> <sup>−1</sup> to the corresponding
row of _X_ . The best scalar _α_ mapping the vector _v_ = [ _Q_ <sup>_i_</sup> _j_ <sup>−1</sup> ] <sup>_T_</sup> to
_w_ = [ _X j_ ] <sup>_T_</sup> (for the _j_ th row of the data matrices) can be written
in closed form using the Moore-Penrose inverse: _α_ = <sup>_v_</sup> <sup>_T w_</sup>
_v_ <sup>_T_</sup> _v_ <sup>.</sup>
Similarly, in step 5, the Moore-Penrose inverse can be used
for finding _M_ . Denoting _Q_ = _diag( f_ <sup>_i_</sup> _)Q_ <sup>_i_</sup> <sup>−1</sup> then _M_ <sup>_i_</sup> =
_Q_ <sup>+</sup> _X_ = [ _Q_ <sup>_T_</sup> _Q_ ] <sup>−1</sup> _Q_ <sup>_T_</sup> _X_ .
_B._ _Algorithm_ _2:_ _ALS_ _for_ _the_ _Data-Driven_ _Optimisation_
In step 4, each _M_ <sup>_i_</sup> _j_
In step 4, each _M_ <sup>_i_</sup> _j_ <sup>can</sup> <sup>be</sup> <sup>solved</sup> <sup>directly</sup> <sup>using</sup> <sup>the</sup>
Moore-Penrose inverse. Denoting _Q_ = _C_ <sup>_T_</sup> _j_ <sup>_Qi_</sup> _j_ <sup>−1</sup> then _M_ <sup>_i_</sup> _j_ <sup>=</sup>
Moore-Penrose inverse. Denoting _Q_ = _C_ <sup>_T_</sup> _j_ <sup>_Qi_</sup> _j_ <sup>−1</sup> then _M_ <sup>_i_</sup> _j_ <sup>=</sup>
_Q_ <sup>+</sup> _Ck_ <sup>_T_</sup> <sup>_X_</sup> <sup>= [</sup> <sup>_QT Q_</sup> <sup>]−1</sup> <sup>_QT C_</sup> _k_ <sup>_T_</sup> <sup>_X_</sup> <sup>.</sup>
In step 5 of the Data-driven optimisation, the filter _f_ is
embedded in the equation and so we cannot solve for it directly
as we could for the Luther-condition case.
To solve for the filter it is useful to vectorise the minimisation. We recapitulate the minimisation statement of step 5:
_k_ <sup>_T_</sup> <sup>_X_</sup> <sup>= [</sup> <sup>_QT Q_</sup> <sup>]−1</sup> <sup>_QT C_</sup> _k_ <sup>_T_</sup>
<sup>_T_</sup> _j_ <sup>_Qi_</sup> _j_ <sup>−1</sup>
_j_ <sup>−1</sup> then _M_ <sup>_i_</sup> _j_
_k_ <sup>_T_</sup> <sup>_X)_</sup> <sup>∥2</sup> _F_
<sup>2</sup> _F_ (18)
min
_f_
- _cnt_
_j_ =1
∥ _(C_ <sup>_T_</sup> _j_
<sup>_T_</sup> _j_ <sup>_diag( f )Q j M j_</sup> <sup>−</sup> <sup>_C_</sup> _k_ <sup>_T_</sup>
The meaning of ∥∥ <sup>2</sup> _F_ <sup>is</sup> <sup>the</sup> <sup>Frobenius</sup> <sup>norm</sup> <sup>squared,</sup> <sup>i.e.</sup> <sup>the</sup>
sum of all the argument terms squared. This Frobenius norm
is generally applied to matrices (as here) but can equally
be applied to vectors (where the _vec()_ operator stacks the
columns of a matrix on top of each other):
_k_ <sup>_T_</sup> <sup>_X)_</sup> <sup>∥2</sup> _F_
<sup>2</sup> _F_ (19)
min
_f_
- _cnt_
_j_ =1
∥ _vec(C_ <sup>_T_</sup> _j_
<sup>_T_</sup> _j_ <sup>_diag( f )Q j M j )_</sup> <sup>−</sup> <sup>_vec(C_</sup> _k_ <sup>_T_</sup>
Now let us rewrite the diagonal filter matrix as a summation
of each value in the diagonal, _fi_, multiplied with a single
entry matrix _Di_ as _diag( f )_ = <sup>�31</sup> _i_ =1 <sup>_fi Di_</sup> <sup>. Here,</sup> <sup>_Di_</sup> <sup>is a</sup> <sup>31</sup> <sup>×</sup>
31 matrix with a single non-zero entry at _D(i, i_ _)_ = 1. By
substituting this new filter representation into the first term of
the minimisation in Equation (19), we obtain
_vec(C_ <sup>_T_</sup> _j_ <sup>_diag( f )Q j M j )_</sup> <sup>=</sup>
�31
_i_ =1
_fi vec(C_ <sup>_T_</sup> _j_ <sup>_Di Q j M j )_</sup> <sup>(20)</sup>
Now let us denote a matrix _V_ _j_ = [ _v_ 1 _, j v_ 2 _, j_ - · · _v_ 31 _, j_ ] where
its column represents _v_ _i, j_ = _vec(C_ <sup>_T_</sup> _j_ <sup>_Di Q j M j_</sup> <sup>_)_</sup> <sup>,</sup> <sup>Equation (20)</sup>
can be expressed more compactly as
_vec(C_ <sup>_T_</sup> _j_ <sup>_diag( f )Q j M j_</sup> <sup>_)_</sup> <sup>=</sup> <sup>_V_</sup> <sup>_j_</sup> <sup>_f_</sup> (21)
where _f_ = [ _f_ 1 _f_ 2 _. . ._ _f_ 31] <sup>_T_</sup> . Note that if _C j_ is a 31 × _n_
matrix then _C_ <sup>_T_</sup> _j_ <sup>_Di Q j M j_</sup> <sup>is</sup> <sup>an</sup> <sup>_n_</sup> <sup>× 3</sup> <sup>matrix</sup> <sup>(where</sup> <sup>3</sup> <sup>denotes</sup>
the number of color channels) and thus _v_ _i, j_ is 3 _n_ × 1 which
makes matrix _V_ _j_ have size of 3 _n_ × 31.
Now we stack all _V_ _j_, _j_ = 1 _,_ 2 _, .., cnt_ matrices (under _cnt_
different lighting conditions) on top of each other making an
_(_ 3 _n_ ∗ _cnt)_ × 31 matrix, _V_ . Similarly we stack all _cnt_ targeting
XYZs on top of each other denoted as _w_ = _vec(Ck_ <sup>_T_</sup> <sup>_X)_</sup> <sup>which</sup>
has the size of _(_ 3 _n_ ∗ _cnt)_ ×1. We remind the reader that _k_ might
equal _j_ . Or, _k_ might denote a single privileged illuminant such
as CIE D65.
Now the minimisation in Equation (19) can be equivalently
rewritten as:
min ∥ _V_ _f_ - _w_ ∥ <sup>2</sup> _F_
_f_
[7] M. J. Vrhel, R. Gershon, and L. S. Iwan, “Measurement and analysis
of object reflectance spectra,” _Color_ _Res._ _Appl._, vol. 19, no. 1, pp. 4–9,
Feb. 1994.
[8] C.-C. Chiao, T. W. Cronin, and D. Osorio, “Color signals in natural
scenes: Characteristics of reflectance spectra and effects of natural
illuminants,” _J._ _Opt._ _Soc._ _Amer._ _A,_ _Opt._ _Image_ _Sci._, vol. 17, no. 2,
pp. 218–224, 2000.
[9] L. T. Maloney, “Evaluation of linear models of surface spectral
reflectance with small numbers of parameters,” _J._ _Opt._ _Soc._ _Amer._ _A,_
_Opt._ _Image_ _Sci._, vol. 3, no. 10, pp. 1673–1683, 1986.
[10] D. H. Marimont and B. A. Wandell, “Linear models of surface and
illuminant spectra,” _J. Opt. Soc. Amer. A, Opt. Image Sci._, vol. 9, no. 11,
pp. 1905–1913, 1992.
[11] P. R. Boyce, _Human_ _Factors_ _Lighting_, 2nd ed. New York, NY, USA:
Talor & Francis, 2003.
[12] M. S. Drew and B. V. Funt, “Natural metamers,” _CVGIP,_ _Image_
_Understand._, vol. 56, no. 2, pp. 139–151, Sep. 1992.
[13] G. Hong, M. R. Luo, and P. A. Rhodes, “A study of digital camera
colorimetric characterization based on polynomial modeling,” _Color Res._
_Appl._, vol. 26, no. 1, pp. 76–84, Feb. 2001.
[14] G. D. Finlayson, M. Mackiewicz, and A. Hurlbert, “Color correction
using root-polynomial regression,” _IEEE Trans. Image Process._, vol. 24,
no. 5, pp. 1460–1470, May 2015.
[15] P.-C. Hung, “Colorimetric calibration in electronic imaging devices
using a look-up-table model and interpolations,” _J._ _Electron._ _Imag._,
vol. 2, no. 1, pp. 53–62, 1993.
[16] C. F. Andersen and D. Connah, “Weighted constrained hue-plane pre
serving camera characterization,” _IEEE_ _Trans._ _Image_ _Process._, vol. 25,
no. 9, pp. 4329–4339, Sep. 2016.
[17] G. J. Klinker, S. A. Shafer, and T. Kanade, “A physical approach to
color image understanding,” _Int. J._ _Comput._ _Vis._, vol. 4, no. 1, pp. 7–38,
Jan. 1990.
[18] M. Mackiewicz, C. F. Andersen, and G. D. Finlayson, “Method for hue
plane preserving color correction,” _J._ _Opt._ _Soc._ _Amer._ _A,_ _Opt._ _Image_
_Sci._, vol. 33, no. 11, pp. 2166–2177, 2016.
[19] T. Zhang and G. H. Golub, “Rank-one approximation to high order
tensors,” _SIAM_ _J._ _Matrix_ _Anal._ _Appl._, vol. 23, no. 2, pp. 534–550,
Jan. 2001.
[20] G. D. Finlayson, M. Mohammadzadeh Darrodi, and M. Mackiewicz,
“The alternating least squares technique for nonuniform intensity color
correction,” _Color_ _Res._ _Appl._, vol. 40, no. 3, pp. 232–242, Jun. 2015.
[21] G. Finlayson, H. Gong, and R. B. Fisher, “Color homography: Theory
and applications,” _IEEE Trans. Pattern Anal. Mach. Intell._, vol. 41, no. 1,
pp. 20–33, Jan. 2019.
[22] G. D. Finlayson, Y. Zhu, and H. Gong, “Using a simple colour pre
filter to make cameras more colorimetric,” in _Proc._ _Color_ _Imag._ _Conf._,
vol. 2018, no. 1. Springfield, VA, USA: Society for Imaging Science
and Technology, 2018, pp. 182–186.
[23] G. H. Golub and C. F. Van Loan, _Matrix_ _Computations_, 3rd ed.
Baltimore, MD, USA: Johns Hopkins Univ. Press, 1996.
[24] G. D. Finlayson and Y. Zhu, “Finding a colour filter to make a camera
colorimetric by optimisation,” in _Proc._ _Int._ _Workshop_ _Comput._ _Color_
_Imag._ Cham, Switzerland: Springer, 2019, pp. 53–62.
[25] Y. Zhu and G. Finlayson, “An improved optimization method for finding
a color filter to make a camera more colorimetric,” in _Electronic_
_Imaging_ _2020_ . Springfield, VA, USA: Society for Imaging Science and
Technology, 2020.
[26] J. Guild, “The colorimetric properties of the spectrum,” _Philos._ _Trans._
_Roy._ _Soc._ _London_ _A,_ _Math._ _Phys._ _Sci._, vol. 230, nos. 681–693,
pp. 149–187, 1931.
[27] G. Wyszecki and W. S. Stiles, _Color_ _Science:_ _Concepts_ _and_ _Methods,_
_Quantitative_ _Data_ _and_ _Formulae_, 2nd ed. New York, NY, USA: Wiley,
1982.
[28] D. H. Krantz, “Color measurement and color theory: I. Representation
theorem for Grassmann structures,” _J._ _Math._ _Psychol._, vol. 12, no. 3,
pp. 283–303, Aug. 1975.
[29] P. DeMarco, J. Pokorny, and V. C. Smith, “Full-spectrum cone sensitivity
functions for x-chromosome-linked anomalous trichromats,” _J. Opt. Soc._
_Amer._ _A,_ _Opt._ _Image_ _Sci._, vol. 9, no. 9, pp. 1465–1476, 1992.
[30] A. Stockman and L. T. Sharpe, “The spectral sensitivities of the middle
and long-wavelength-sensitive cones derived from measurements in
observers of known genotype,” _Vis. Res._, vol. 40, no. 13, pp. 1711–1737,
Jun. 2000.
[31] B. Smith, C. Spiekermann, and R. Sember, “Numerical methods for
colorimetric calculations: Sampling density requirements,” _Color_ _Res._
_Appl._, vol. 17, no. 6, pp. 394–401, Dec. 1992.
min
<sup>2</sup> _F_ (22)
The best _f_ can be found in closed form using the MoorePenrose inverse:
_f_ = _(V_ _)_ <sup>+</sup> _w_ = [ _V_ <sup>_T_</sup> _V_ ] <sup>−1</sup> _V_ <sup>_T_</sup> _w._ (23)
_C._ _Filter_ _Constraints_
Equation (23) solves for the 31-component _f_ in one step.
Suppose we write _f_ = _Bc_ . We constrain the filter to be
describable by a linear basis ( _B_ is 31× _m_ where 1 ≤ _m_ ≤ 31).
Additionally, the filter is restrained by a minimum _fmin_ and
maximum _fmax_ bounds on the transmittance. Then to solve
for the filter we find the coefficient vector _c_ that minimises:
min ∥ _V Bc_ - _w_ ∥ <sup>2</sup> _F_ s.t. _fmin_ ≤ _Bc_ ≤ _fmax_ (24)
_c_
Equation (24) where there is a quadratic objective function
and linear inequality constraints can be solved using quadratic
programming [47].
ACKNOWLEDGMENT
The authors would like to thank Dr. Javier Vazquez-Corral
for helpful comments on earlier drafts of the manuscript.
REFERENCES
[1] R. W. G. Hunt and M. R. Pointer, _Measuring_ _Colour_, 4th ed. Hoboken,
NJ, USA: Wiley, 2011.
[2] B. A. Wandell, _Foundations_ _of_ _Vision_ . Sunderland, MA, USA: Sinauer
Associates, 1995.
[3] N. Ohta and A. Robertson, _Colorimetry:_ _Fundamentals_ _and_ _Applica-_
_tions_ . Hoboken, NJ, USA: Wiley, 2006.
[4] H. E. Ives, “The transformation of color-mixture equations from one
system to another,” _J._ _Franklin_ _Inst._, vol. 180, no. 6, pp. 673–701,
Dec. 1915.
[5] R. Luther, “Aus dem gebiet der farbreizmetrik,” _Zeitschrift_ _Technische_
_Physik_, vol. 8, pp. 540–558, Sep. 1927.
[6] J. P. S. Parkkinen, J. Hallikainen, and T. Jaaskelainen, “Characteristic
spectra of Munsell colors,” _J. Opt. Soc._ _Amer. A, Opt. Image_ _Sci._, vol. 6,
no. 2, pp. 318–322, 1989.
[32] B. K. P. Horn, “Exact reproduction of colored images,” _Comput._ _Vis.,_
_Graph.,_ _Image_ _Process._, vol. 26, no. 2, pp. 135–167, May 1984.
[33] P. L. Vora and H. J. Trussell, “Mathematical methods for the design
of color scanning filters,” _IEEE_ _Trans._ _Image_ _Process._, vol. 6, no. 2,
pp. 312–320, Feb. 1997.
[34] P. L. Vora and H. J. Trussell, “Mathematical methods for the analysis
of color scanning filters,” _IEEE_ _Trans._ _Image_ _Process._, vol. 6, no. 2,
pp. 321–327, Feb. 1997.
[35] G. Sharma and H. J. Trussell, “Digital color imaging,” _IEEE_ _Trans._
_Image_ _Process._, vol. 6, no. 7, pp. 901–932, Jul. 1997.
[36] M. Wolski, C. A. Bouman, J. P. Allebach, and E. Walowit, “Optimization
of sensor response functions for colorimetry of reflective and emissive
objects,” _IEEE_ _Trans._ _Image_ _Process._, vol. 5, no. 3, pp. 507–517,
Mar. 1996.
[37] M. J. Vrhel and H. J. Trussell, “Optimal color filters in the presence
of noise,” _IEEE_ _Trans._ _Image_ _Process._, vol. 4, no. 6, pp. 814–823,
Jun. 1995.
[38] M. J. Vrhel and H. J. Trussell, “Filter considerations in color correction,”
_IEEE_ _Trans._ _Image_ _Process._, vol. 3, no. 2, pp. 147–161, Mar. 1994.
[39] J. E. Farrell and B. A. Wandell, “Method and apparatus for identifying
the color of an image,” U.S. Patent 5479524, Dec. 26, 1995.
[40] J. Y. Hardeberg, _Acquisition_ _Reproduction_ _Color_ _Images:_ _Colorimetric_
_Multispectral Approaches_ . Irvine, CA, USA: Universal-Publishers, 2001.
[41] D. Connah, S. Westland, and M. G. A. Thomson, “Recovering spec
tral information using digital camera systems,” _Coloration_ _Technol._,
vol. 117, no. 6, pp. 309–312, Nov. 2001.
[42] J. L. Nieves, E. M. Valero, S. M. Nascimento, J. Hernández-Andrés,
and J. Romero, “Multispectral synthesis of daylight using a commercial
digital CCD camera,” _Appl._ _Opt._, vol. 44, no. 27, pp. 5696–5703, 2005.
[43] D.-Y. Ng and J. P. Allebach, “A subspace matching color filter design
methodology for a multispectral imaging system,” _IEEE_ _Trans._ _Image_
_Process._, vol. 15, no. 9, pp. 2631–2643, Sep. 2006.
[44] E. M. Valero, J. L. Nieves, S. M. C. Nascimento, K. Amano, and
D. H. Foster, “Recovering spectral data from natural scenes with an
RGB digital camera and colored filters,” _Color Res. Appl._, vol. 32, no. 5,
pp. 352–360, 2007.
[45] G. Sharma and R. Bala, _Digital_ _Color_ _Imaging_ _Handbook_ . Boca Raton,
FL, USA: CRC Press, 2002.
[46] U. Barnhöfer, J. M. DiCarlo, B. P. Olding, and B. A. Wandell, “Color
estimation error trade-offs,” in _Sensors_ _and_ _Camera_ _Systems_ _for_ _Sci-_
_entific,_ _Industrial,_ _and_ _Digital_ _Photography_ _Applications_ _IV_, vol. 5017.
Bellingham, WA, USA: SPIE, 2003, pp. 263–273.
[47] D. G. Luenberger and Y. Ye, _Linear and Nonlinear Programming_, 4th ed.
Cham, Switzerland: Springer, 2015.
[48] G. Strang, “The discrete cosine transform,” _SIAM_ _Rev._, vol. 41, no. 1,
pp. 135–147, 1999.
[49] P. L. Vora and H. J. Trussell, “Measure of goodness of a set of color
scanning filters,” _J._ _Opt._ _Soc._ _Amer._ _A,_ _Opt._ _Image_ _Sci._, vol. 10, no. 7,
pp. 1499–1508, 1993.
[50] J. Jiang, D. Liu, J. Gu, and S. Susstrunk, “What is the space of spectral
sensitivity functions for digital color cameras?” in _Proc. IEEE Workshop_
_Appl._ _Comput._ _Vis._ _(WACV)_, Jan. 2013, pp. 168–179.
[51] K. Barnard, L. Martin, B. Funt, and A. Coath, “A data set for color
research,” _Color_ _Res._ _Appl._, vol. 27, no. 3, pp. 147–151, Jun. 2002.
[52] C. F. Anderson and J. Y. Hardeberg, “Colorimetric characterization of
digital cameras preserving hue planes,” in _Proc._ _Color_ _Imag._ _Conf._
Springfield, VA, USA: Society for Imaging Science and Technology,
2005, pp. 141–146.
Graham D. Finlayson (Member, IEEE) is currently
a Professor with the School of Computing Sciences,
University of East Anglia, U.K. His research interests include color, physics-based computer vision,
image processing, and the engineering required to
embed technology in devices. He is a fellow of
the Royal Photographic Society, the Society for
Imaging Science and Technology, and the Institution
for Engineering Technology.
Yuteng Zhu received the B.Sc. degree in optical
engineering and the M.Sc. degree in color and
imaging sciences from Zhejiang University, China,
in 2014 and 2017, respectively. She is currently
pursuing the Ph.D. degree with the School of Computing Sciences, University of East Anglia, U.K. She
works on the filter design for digital cameras aiming
at applications of accurate color measurement.
섹션 본문
섹션 본문이 없습니다.
참고문헌 41건
- Filter considerations in color correction IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 1994 10.1109/83.277897
- Mathematical methods for the design of color scanning filters IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 1997 10.1109/83.551700
- Exact reproduction of colored images Computer Vision Graphics and Image Processing · Academic Press · 1984 10.1016/0734-189x(84)90180-4
- Numerical methods for colorimetric calculations: Sampling density requirements Color Research & Application · Wiley · 1992 10.1002/col.5080170605
- The spectral sensitivities of the middle- and long-wavelength-sensitive cones derived from measurements in observers of known genotype Vision Research · Elsevier BV · 2000 10.1016/s0042-6989(00)00021-3
- Optimal color filters in the presence of noise IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 1995 10.1109/83.388082
- Optimization of sensor response functions for colorimetry of reflective and emissive objects IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 1996 10.1109/83.491323
- Digital color imaging IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 1997 10.1109/83.597268
- Color measurement and color theory: I. Representation theorem for Grassmann structures Journal of Mathematical Psychology · Elsevier BV · 1975 10.1016/0022-2496(75)90026-7
- Full-spectrum cone sensitivity functions for X-chromosome-linked anomalous trichromats Journal of the Optical Society of America A · Optica Publishing Group · 1992 10.1364/josaa.9.001465
- Measuring Colour 2011 10.1002/9781119975595
- The alternating least squares technique for nonuniform intensity color correction Color Research & Application · Wiley · 2014 10.1002/col.21889
- Using a Simple Colour Pre-filter to Make Cameras More Colorimetric Color and Imaging Conference · Society for Imaging Science & Technology · 2018 10.2352/issn.2169-2629.2018.26.182
- Color Homography: Theory and Applications IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2017 10.1109/tpami.2017.2760833
- Finding a Colour Filter to Make a Camera Colorimetric by Optimisation Lecture notes in computer science · Springer Science+Business Media · 2019 10.1007/978-3-030-13940-7_5
- The colorimetric properties of the spectrum Proceedings of the Royal Society of London Series B Containing Papers of a Biological Character · Royal Society · 1931 10.1098/rspb.1931.0091
- What is the space of spectral sensitivity functions for digital color cameras? 2013 10.1109/wacv.2013.6475015
- A data set for color research Color Research & Application · Wiley · 2002 10.1002/col.10049
- Colorimetric Characterization of Digital Cameras Preserving Hue Planes Color and Imaging Conference · 2005 10.2352/cic.2005.13.1.art00028
- Linear models of surface and illuminant spectra Journal of the Optical Society of America A · Optica Publishing Group · 1992 10.1364/josaa.9.001905
- Human Factors in Lighting CRC Press eBooks · Informa · 2003 10.1201/9780203426340
- Natural metamers CVGIP Image Understanding · Elsevier BV · 1992 10.1016/1049-9660(92)90036-3
- A study of digital camera colorimetric characterization based on polynomial modeling Color Research & Application · Wiley · 2000 10.1002/1520-6378(200102)26:1<76::aid-col8>3.0.co;2-3
- Color Correction Using Root-Polynomial Regression IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2015 10.1109/tip.2015.2405336
- Colorimetric calibration in electronic imaging devices using a look-up-table model and interpolations Journal of Electronic Imaging · SPIE · 1993 10.1117/12.132391
- Weighted Constrained Hue-Plane Preserving Camera Characterization IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2016 10.1109/tip.2016.2590303
- A physical approach to color image understanding International Journal of Computer Vision · Springer Science+Business Media · 1990 10.1007/bf00137441
- Method for hue plane preserving color correction Journal of the Optical Society of America A · Optica Publishing Group · 2016 10.1364/josaa.33.002166
- Rank-One Approximation to High Order Tensors SIAM Journal on Matrix Analysis and Applications · Society for Industrial and Applied Mathematics · 2001 10.1137/s0895479899352045
- The transformation of color-mixture equations from one system to another Journal of the Franklin Institute · Elsevier BV · 1915 10.1016/s0016-0032(15)90396-4
- Characteristic spectra of Munsell colors Journal of the Optical Society of America A · Optica Publishing Group · 1989 10.1364/josaa.6.000318
- Color signals in natural scenes: characteristics of reflectance spectra and effects of natural illuminants Journal of the Optical Society of America A · Optica Publishing Group · 2000 10.1364/josaa.17.000218
- Measurement and Analysis of Object Reflectance Spectra Color Research & Application · Wiley · 1994 10.1111/j.1520-6378.1994.tb00053.x
- Measure of goodness of a set of color-scanning filters Journal of the Optical Society of America A · Optica Publishing Group · 1993 10.1364/josaa.10.001499
- Evaluation of linear models of surface spectral reflectance with small numbers of parameters Journal of the Optical Society of America A · Optica Publishing Group · 1986 10.1364/josaa.3.001673
- Color estimation error trade-offs Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2003 10.1117/12.476753
- The Discrete Cosine Transform SIAM Review · Society for Industrial and Applied Mathematics · 1999 10.1137/s0036144598336745
- Multispectral synthesis of daylight using a commercial digital CCD camera Applied Optics · Optica Publishing Group · 2005 10.1364/ao.44.005696
- Recovering spectral information using digital camera systems Coloration Technology · Wiley · 2001 10.1111/j.1478-4408.2001.tb00080.x
- Recovering spectral data from natural scenes with an RGB digital camera and colored filters Color Research & Application · Wiley · 2007 10.1002/col.20339
- A subspace matching color filter design methodology for a multispectral imaging system IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2006 10.1109/tip.2006.877384