This page contains supplementary documentation for the article “Chromatic Adaptation Transform by Spectral Reconstruction,” published in Color Research and Application in 2019 (Burns SA. Chromatic adaptation transform by spectral reconstruction. Color Res Appl. 2019;44(5):682-693). Any reference to “the Article” on this page refers to this document. The documentation that follows is organized according to the section numbers appearing in the Article. Full text of the final published version is available courtesy of Wiley Content Sharing initiative here.
Please note that the content of this page should not be considered peer reviewed by the journal, as it may be updated at any time. This page was last updated on the date shown at the bottom of the page.
2. Examples of CATs Producing Negative Tristimulus Values
An instance of CAT02 producing a destination color with negative tristimulus values is presented here, specifically, for the case of Munsell 2.5G 4/8. The spectrophotometrically measured reflectance curve for this color is:
A purplish source illuminant is used, shown in the following table. Equal energy is used as the destination illuminant. Before applying CAT02, the source color tristimulus values must be obtained under the action of the illuminant. To do this, the 1931 CMFs are referenced to the source illuminant, :
Next, the source tristimulus values, , are computed from the reflectance curve for Munsell 2.5G 4/8, , and :
Forming the CAT02 matrix starts with the transformation from tristimulus values to sharpened cone response space, :
The source and destination white points are = (2.145, 1, 4.729) and = (1.000, 1.000, 1.000), which when pre-multiplied by give white point cone responses = (1.2338, 0.2168, 4.6700) and = (1.000, 1.000, 1.000). The diagonal von Kries coefficient matrix (using full adaptation, =1) comprises ratios of destination to source white point cone responses:
The final CAT02 matrix can now be computed as
The predicted destination color, , produced by CAT02 from the source tristimulus values, , ends up with negative tristimulus values:
4. Chromatic Adaptation Transform by Spectral Reconstruction
Table 2 in the Article presents color differences between the experimental corresponding-colors dataset destination colors, , and the CAT-predicted destination colors, , for four methods: HPE, CAT02, CAT16, and the proposed CAT. In all cases, full adaptation (=1) is used.
To confirm the accuracy of these computations, they were compared to instances of the same computation by other authors in the literature, and were found to match exactly the published =1 values of:
of Reference: Susstrunk S, Holm J, Finlayson GD. Chromatic adaptation performance of different RGB sensors. Proc. SPIE 4300, Color Imaging: Device-Independent Color, Color Hardcopy, and Graphic Arts VI. Reiner Eschbach R, Marcu GG, Editors. 2001:172-183.
of Reference: Bianco S, Schettini R. Two new von Kries based chromatic adaptation transforms found by numerical optimization. Color Res Appl. 2010;35(3):184-192.
of Reference: Hunt RWG, Li CJ, Juan LY, Luo MR. Further improvements to CIECAM97s. Color Res Appl. 2002;27(3):164-170.
Published =1 color difference values for CAT16 have not been found in the literature, for verification purposes.
5. Spectral Reconstruction Computation
Click here to open a text file containing a numerical example of the “spectral_recon” function shown in Section 5 of the Article, applied to = (0.7,0.6,0.5) using equal energy as the reference illuminant. It is best viewed by copying the text into an editor like Notepad and turning off word wrap. The values of each assignment statement on each line of the code are shown so it can be used to debug an implementation of the method. There may be small differences from one implementation to the next, mostly due to differences in floating point precision and different implementations of linear equation solving among the various utilities.
The author has also developed additional algorithms for reconstructing reflectance curves, including some that put an upper bound on the curve, . See this web page for more information on these additional methods and comparisons to natural paints and pigments, including Munsell color chips. An application of these spectral reconstruction methods for subtractive color mixture can be found here.
6. Implementing the CAT
Here are two MATLAB/Octave functions that implement the proposed CAT.
The first function precomputes the necessary arrays for a given choice of source and destination illuminant white point tristimulus values ( should equal 1 in both).
The second function produces a predicted destination color, XYZdp, given a triplet of source tristimulus values, XYZs.
Here is an example:
The last example demonstrates that achromatic source colors map to achromatic colors with respect to the destination illuminant, as expected.
To show how substituting some instances of with makes the proposed CAT symmetric, we start with the simpler case of the non-log version of reflectance reconstruction, since it has a closed-form solution. The NLP being solved in this case is
See Section 3 of the Article for definitions of the symbols above. The stationary conditions arising from the method of Lagrange multipliers are
Solving the first stationary condition for gives
Substituting this expression into the second stationary condition and solving for yields
Finally, substituting the expression for into the previous equation gives us a closed-form solution for the spectral reconstruction:
To compute how this reconstructed reflectance would appear under a destination illuminant, we simply pre-multiply by a destination-illuminant-referenced set of color matching functions, :
This gives us a 3 3 CAT matrix of the form
Some comments are in order at this point.
1. The matrix in the form as presented in the Article is singular, and so it is not suitable for this version of spectral reconstruction. However, a slight change to it, such as changing the first and last elements of the main diagonal to 4 instead of 2, makes the matrix invertible. The effect this change has on the reconstructed reflectance curve is to pull the ends of the curve to zero. This can be beneficial in some cases, as colored objects found in nature (e.g., common pigments; see Figure 8 in the Article) often have reflectances that drop to zero on the ultraviolet side, so the reconstruction is actually a better match on that end. The singularity of will not be an issue in the subsequent development, as it will not be inverted in the end result (Equations 8 and 9 in the Article).
2. The CAT derived above needs only to be computed once for a source/destination illuminant pair. Once this 3 3 CAT matrix is formed, each destination color computed from a source color requires only simple matrix multiplication, just as is the case with existing CATs. It will in fact perform very well when tested against the corresponding-color datasets. Unfortunately, it is capable of producing destination colors with negative tristimulus values, since the reconstructed reflectances can have negative values. The propensity for generating negative destination colors with this CAT is even more pronounced than it is with CAT02 and CAT16, and so it is not recommended for this reason. Nevertheless, it is a useful stepping stone in explaining the symmetric version of the method proposed in the Article.
Moving on to the issue of symmetry of the method, one way to express symmetry of the CAT is to describe mathematically the composite action of first transforming from source to destination illuminants, and then doing the reverse, transforming from destination to source illuminants. This composition should yield the identity matrix:
By replacing two instances of and two instances of with the dual-referenced we get
The central pair of expressions (in bold) now cancel, and then the remaining two expressions also cancel, leaving the identity matrix, as desired. The author provides no other justification for the change to other than the observation that it simply works to make the CAT symmetric without any apparent negative side effects.
If we trace backwards to locate where the change to could first have occurred, we find that if the stationary conditions are altered to be
then the symmetric form of the CAT is produced. This change only affects the Lagrange multiplier term in the first set of stationary conditions and does not alter the constraint expression, , which is necessary to ensure that the reconstructed reflectance has the required -referenced tristimulus values.
Now turning to the log version of the spectral reconstruction used in the Article, an analogous treatment is applied to the first set of stationary conditions:
This change will result in the symmetric version of the proposed method, as presented in Equations 12 and 13 of the Article.
See the Article for the meaning of the various columns. The entries in this table are produced by the following process.
First, the MATLAB/Octave function for reconstructing a reflectance curve for the original version is:
and the corresponding similar function for the symmetric case is:
The main difference is the use of a dual-referenced set of CMFs in the symmetric version, . See the Article for definitions of all quantities. See the Article for MATLAB/Octave code to create matrix C.
The following MATLAB/Octave commands create the values in Table 4 for the non-symmetric case:
The symmetric case in the Table has values generated by the following MATLAB/Octave commands:
Version: October 17, 2019