Expand this Topic clickable element to expand a topic
Skip to content
Optica Publishing Group

Accurate method for computing correlated color temperature

Open Access Open Access

Abstract

For the correlated color temperature (CCT) of a light source to be estimated, a nonlinear optimization problem must be solved. In all previous methods available to compute CCT, the objective function has only been approximated, and their predictions have achieved limited accuracy. For example, different unacceptable CCT values have been predicted for light sources located on the same isotemperature line. In this paper, we propose to compute CCT using the Newton method, which requires the first and second derivatives of the objective function. Following the current recommendation by the International Commission on Illumination (CIE) for the computation of tristimulus values (summations at 1 nm steps from 360 nm to 830 nm), the objective function and its first and second derivatives are explicitly given and used in our computations. Comprehensive tests demonstrate that the proposed method, together with an initial estimation of CCT using Robertson’s method [J. Opt. Soc. Am . 58, 1528-1535 (1968)], gives highly accurate predictions below 0.0012 K for light sources with CCTs ranging from 500 K to 106 K.

© 2016 Optical Society of America

1. Introduction

The spectral power distribution (SPD) of a Planckian radiator [1], denoted by M(λ, T), can be completely determined from its absolute temperature T in Kelvin (K)using the expression:

M(λ,T)=c1λ5(ec2/(λT)-1)1,
where constant c1 = 3.741832 × 10−16 Wm2 and c2 = 1.4388 × 10−2 m K. The color temperature T of a light source is the color temperature of a Planckian radiator which emits radiation of the same chromaticity as the light source. When a light source has a chromaticity which is not the same as the one of the Planckian radiator, the term “correlated color temperature” (CCT) is used, defined as the temperature of the Planckian radiator whose chromaticity is the one nearest to that of the light source in a uniform chromaticity scale (UCS) diagram [1–3]. Specifically, the UCS diagram recommended by the International Commission on Illumination (CIE) in 1971 for CCT computation is the CIE 1960 UCS diagram [1, 2], where the chromaticity coordinates are given by:
u=4x/(2x+12y+3),v=6y/(2x+12y+3),
and x, y are the chromaticity coordinates of the light source in the CIE 1931 coordinate system [4, 5] defined in terms of its tristimulus values (TSVs) X, Y, and Z as follows:

x=X/(X+Y+Z),y=Y/(X+Y+Z).

Since it is a single number, CCT is simpler to communicate than is the SPD, which led the lighting industry to accept CCT as a shorthand means of reporting the color appearance of “white” light emitted from electric light sources. CCT values are intended by the lighting industry to give a general indication of the apparent “warmth” or “coolness” of the light emitted by a light source. Also, scientists [6–9] found that CCT can be used to determine the relative SPD of daylight illuminants. Furthermore, CCT is also used to evaluate the color-rendering index (CRI) [10]. For many lighting applications, in offices, hotels, galleries, the textile industry, etc., the CCT and CRI are the two most important factors governing the choice of appropriate light sources.

The computation of the CCT based on the given SPD of a light source/illuminant has a long history. Let u, v be the chromaticity coordinates of the light source/illuminant, and u(T), v(T) be the chromaticity coordinates of the Planckian radiator with color temperature T. Then, the square of the distance between (u, v) and (u(T), v(T)) is the function f(T):

f(T)=[uu(T)]2+[vv(T)]2,
and the computation of the CCT is just a minimization of this objective function f(T) with T. Since the TSVs [5] are defined by:
X(T)=kλ0λnM(λ,T)x¯(λ)dλ,Y(T)=kλ0λnM(λ,T)y¯(λ)dλ,Z(T)=kλ0λnM(λ,T)z¯(λ)dλ.
It follows from Eqs. (1-5) that the computation of the CCT is a problem of non-linear optimization. Therefore, there is no analytical expression for computing CCT, and scientists and engineers have long been searching for simple and practical methods to compute CCT in industrial applications.

In the early stage, the so-called isotemperature lines were used to estimate the CCT from graphs. Judd [11] appears to have been the first gave a table of CIE x, y chromaticity coordinates of the intersections of a series of lines of constant CCT (isotemperature lines) with the Planckian radiator locus. The separation between isotemperature lines was represented in terms of the unit called “micro-reciprocal degree” or “reciprocal mega-Kelvin” [8, page 224] (“μrd” or “mired”) Mμrd ( = 106/T) rather than the correlated color temperature T, in order to achieve greater uniformity in plots in the CIE 1960 UCS diagram.

The isotemperature lines were by definition perpendicular to the Planckian radiator locus when plotted in the CIE 1960 UCS diagram. In 1963, Kelly [12] published graphs with isotemperature lines in the x, y, and u, v chromaticity diagrams to estimate the CCT. In 1968, Robertson [13] gave an explicit interpolation formula for computing CCT based on the isotemperature lines. The speed and accuracy of Robertson’s method depends on how many isotemperature lines are chosen. That is, the more lines used, the greater the accuracy, but also the more time spent for computation.

Another type of estimation of the CCT of a light source is based on the explicit approximation of the chromaticity coordinates x(T), y(T) or u(T), v(T) of the Planckian radiator, for less computational cost. Then the bisection method [14] can be used for minimizing the objective function defined by Eq. (4). In 1977-78, Schanda and Dányi [15] and Schanda et al. [16] proposed an approximation for x(T), y(T) by using up to a 7th-order polynomial of the micro reciprocal degree for color temperatures in the range from 1700 K to 50000 K. In 1984, Krystek [17] offered an approximation for u(T) and v(T) using a rational Chebyshev approximation for the color temperature in the range from 1000 K to 15000 K.

In 2000, Gardner [18] proposed the use of the Newton method [14] to compute the CCT from the chromaticity coordinates u, v of a light source. The Newton method is an iterative method for finding the roots of a differentiable function f'(T) (i.e. solutions to the equation f'(T) = 0 in our case), by the use of the equation

Tj+1=Tjf(Tj)/f(Tj),forj=0,1,2,
where f'(Tj) and f”(Tj) are the first and second derivatives of the function f(T) defined by Eq. (4). It should be noted that Gardner [18] did not use the exact first and second derivatives, but rather approximations based on fitted 7th-order polynomial relationships between v(T) and u(T), and between the inverse color temperature (1/T) and u(T). Thus, Gardner’s iterative method depends on the degree of approximation of the formulae used, and cannot provide an exact solution, as intended in the current paper.

A third type of method to estimate the CCT is based on established functional relationships between the CCT and the chromaticity coordinates x, y or u, v of the light source, as intended, for example, in the method proposed in 1987 by Qiu [19]. Qiu’s formula for estimating the CCT, Te, can be expressed by:

Te=q(P,P1,P2,θ1,θ2),
where the point P has the coordinates u and v of the light source, i.e., P = (u, v), P1 = (0.2861884, 0.246725), and P2 = (0.328151, 0.1333451). If L1 is the line passing through the points P and P1, and L2 is the line passing through the points P and P2, then θ1 and θ2 are the angles formed by the lines L1 and L2, respectively, with the negative direction of the u axis. For the exact function q, please consult the original paper [19]. Qiu’s method was recommended for CCTs ranging from 2500 K to 10000 K.

Later, in 1992 McCamy [20, 21] proposed a simpler formula for estimating Te from x, y chromaticity coordinates, for CCTs ranging from 2000 K to 12500 K:

Te=an3+bn2+cn+d,
where, a = −437, b = 3601, c = −6861, d = 5514.31, and

n=(xxe)/(yye),withxe=0.3320,ye=0.1858.

In 1999, Hernández-Andrés et al. [22] developed another explicit formula valid for estimating a wider range of CCTs up to 106 K. This formula is given by the equation:

Te=A0+A1e(n/t1)+A2e(n/t2)+A3e(n/t3),
where n is defined as in previous Eq. (9), but using two different epicenter coordinates xe and ye within two different ranges of CCTs, and the values of the coefficients Ai (i = 0,1,2,3) and tj (j = 1,2,3) can be found in the original paper [22].

Table 1 shows the CCT ranges recommended by the different computational methods proposed in the literature. As we can see, most methods cover the range only from 2000 K to 10000 K, which is the most important one in industrial applications.

Tables Icon

Table 1. CCT ranges covered by different methods

While CCT is a classical topic in color science, it can be said that the ideal method to compute CCT currently remains an open question. Thus, in draft #11 of future CIE Publication 15, CIE TC 1-85 [23] has added a new note stating that “computed correlated colour temperature is highly dependent on specifications of the computing process…. An agreement about all details of the computing method is necessary to avoid undesirable discrepancies between computed correlated colour temperatures.” As will be shown in next sections, the method proposed in the current paper can be useful to achieve accurate computed values of CCT in comparison with methods previously reported in the literature.

2. Predictions of methods currently available for CCT computation

We tested the performance of all the methods mentioned in Table 1 by using sets of samples (hypothetical light sources) with known CCTs. Specifically, we considered sets of 5 samples placed on different isotemperature lines, which by definition must have the same CCT for a perfect computational method. For any selected color temperature T from 500 K to 25000 K at 1 K steps, the u(T) and v(T) of the Planckian radiator were computed from TSVs (see Eqs. (5), (3), (2) and summations from 360 nm to 830 nm at 1 nm steps), and the associated isotemperature lines were determined. The slopes of the isotemperature lines were determined from −u'(T)/v'(T) [13] (with u'(T) and v'(T) defined by Eq. (15) below) and linear equations of the isotemperature lines were also defined by the slopes. Then, we computed the next five equi-spaced samples (Sample #1-#5) in each isotemperature line using the linear equation: Sample #3 was placed exactly on the Planckian radiator locus in the u, v space; Samples #1 and #2 were placed above the Planckian locus at distances of 5 × 10−2 and 2.5 × 10−2 units in u, v space, respectively; Samples #4 and #5 were placed below the Planckian locus at distances of 2.5 × 10−2 and 5 × 10−2 units in u, v space, respectively . The distance of 5 × 10−2 units to the Planckian locus in the u, v space was chosen because it is the limit currently established by CIE [9, 23] in order to apply the concept of CCT. The maximum absolute difference between the predicted and exact CCTs of the five aforementioned samples divided by the exact value of the CCT of the isotemperature line will be designated as |ΔT/T|MAX and it can be considered to be the maximum relative prediction error for the isotemperature line.

Figure 1 shows the maximum relative prediction errors (|ΔT/T|MAX) for each of the seven methods indicated in Table 1: AR (solid black line), JS (dotted black line), MK (solid red line), JG (dotted red line), XQ (solid blue line), JM (dotted blue line), and HA (solid green line) for CCTs ranging from 2000 K to 10000 K. Figure 1 shows that no method gives perfect predictions over the entire CCT range tested. In our computations for the JS method, the AR method was used for the initial CCT estimation, considering 30 intervals (i.e. 31 isotemperature lines) between 500 K and 25000 K. From Fig. 1, the three best methods appear to be JS, AR, and XQ (in that order). Bearing in mind that the predictions of the AR method were the initial guess for the JS method, we expected the JS method to perform better than the AR method.

 figure: Fig. 1

Fig. 1 Maximum relative prediction errors (|ΔT/T|MAX) for the seven methods mentioned in Table 1 for CCTs ranging from 2000 K to 10000 K.

Download Full Size | PDF

Figure 1 also shows that some methods can be very good for specific CCTs. For example, the HA method is very accurate for CCTs around 7400 K. This depends on the training data employed for deriving the formulae. Figure 2 shows the performance of all seven methods for CCTs ranging from 10000 K to 25000 K (note that the y-axes scale in Figs. 1 and 2 are different). In this CCT range the rank of methods from the best to the worst is: JS, AR, XQ, HA, JM, JG, and MK. Therefore, it can be said that JS, AR, and XQ are the three best methods (in that order) to compute CCTs from 2000 K to 25000 K.

 figure: Fig. 2

Fig. 2 Maximum relative prediction errors (|ΔT/T|MAX) for the seven methods mentioned in Table 1 for CCTs ranging from 10000 K to 25000 K.

Download Full Size | PDF

Figure 3 shows the performance of the AR, JS, and HA methods for CCTs ranging from 25000 K to 50000 K (for this range of high CCTs the remaining four methods shown above in Figs. 1 and 2 cannot be applied, as indicated in Table 1). For this test, 30 intervals (or 31 isotemperature lines) between 500 K and 50000 K were used for the AR method, which is called AR30. The results from the AR30 method were used as initial estimations of the JS method. For comparison, the results from the AR method with 60 intervals (or 61 isotemperature lines) between 500 K and 50000 K were found as well, which are called AR60. It can be seen that the results from AR60 are better than those from AR30, as might be expected. However, results from AR60 and JS are roughly the same.

 figure: Fig. 3

Fig. 3 Maximum relative prediction errors (|ΔT/T|MAX) for the AR (with 30 and 60 intervals), JS, and HA methods in Table 1 for CCTs ranging from 25000 K to 50000 K.

Download Full Size | PDF

All the tested methods often gave different CCT predictions for the five samples we considered on each isotemperature line, as shown in Fig. 4 for the isotemperature line with T = 8000 K (similar results were found for other lines). The heights of the bars in Fig. 4 represent relative prediction errors, |ΔT/T|. Samples #4 and #5 are located below the Planckian locus at distances of 2.5 × 10−2 and 5 × 10−2 units in u, v space, respectively. Similarly, Samples #2 and #1 are located above the Planckian locus at distances of 2.5 × 10−2 and 5 × 10−2 units in u, v space, respectively. Thus, in Fig. 4 the same color bars represent the prediction errors by the different methods for the same test sample. In general, for all methods the predictions for the five samples located on an isotemperature line were different. Specifically, the prediction errors increased with the distance to the Planckian radiator locus, and in most cases the maximum prediction errors were found for Sample #5, which is the one farthest below the Planckian radiator locus. On the other hand, as expected, the best (but non-null) prediction errors were found for the Sample #3, located on the Planckian radiator locus. This was expected, because each method uses its own approximation formulae, which depend on the development data.

 figure: Fig. 4

Fig. 4 Relative prediction errors (|ΔT/T|, heights of the bars) for the different methods listed in Table 1 to predict five test samples ('Sample #1 (S#1)' to 'Sample #5 (S#5)' in the order from top downward in u, v space) placed on the isotemperature line with T = 8000 K.

Download Full Size | PDF

3. The proposed method

In this paper, the Newton method defined in Eq. (6) is proposed for computing the CCT. The problem with available methods is that either the function f(T) defined by Eq. (4) itself or its first and second derivatives with the color temperature T have not been accurately provided/used. Here we have used the exact formulae for f(T), f'(T), and f”(T), as well as the current CIE recommendation for computation of tristimulus values (TSVs) using wavelengths from 360 nm to 830 nm at 1 nm steps [9, 23]. Coordinates u, v of the test light source (or illuminant) must also be computed from accurate TSVs using CIE recommendation (summations from 360 nm to 830 nm at 1 nm steps). Some methods have been recently proposed [24, 25] for accurate TSVs computations in the case available spectral data are not as required by CIE. For the function f(T), the exact u(T) and v(T) are needed, which depend on the TSVs X(T), Y(T) and Z(T) (see Eqs. (5), (3), and (2)). Since we do not know the analytical expressions for the color-matching functionsx¯(λ), y¯(λ), and z¯(λ), 1 nm summation formulae recommended by CIE [9] were used, i.e.

X(T)=kλ0λnM(λ,T)x¯(λ)dλ=kj=0471M(λj,T)x¯(λj),Y(T)=kλ0λnM(λ,T)y¯(λ)dλ=kj=0471M(λj,T)y¯(λj),Z(T)=kλ0λnM(λ,T)z¯(λ)dλ=kj=0471M(λj,T)z¯(λj),
where λ0 = 360 nm, λn = 830 nm, λj+1j = 1 nm, and the function M is given in Eq. (1). The scaling factor k in Eq. (11) is not important, since it will be canceled when the chromaticity coordinates u(T) and v(T) are computed via x(T) and y(T) (see Eqs. (3) and (2)). Next, from Eq. (4) it follows that:
f(T)=2[uu(T)]u(T)2[vv(T)]v(T),
and

f(T)=2(u(T))22(uu(T))u(T)+2(v(T))22(vv(T))v(T).

Note that u(T) and v(T) can be represented in terms of TSVs X(T), Y(T), and Z(T). In fact, it can be shown from Eqs. (2) and (3) that

u(T)=4X(T)/[X(T)+15Y(T)+3Z(T)],v(T)=6Y(T)/[X(T)+15Y(T)+3Z(T)].

Thus, we have

u(T)=4X(T)[X(T)+15Y(T)+3Z(T)]4X(T)[X(T)+15Y(T)+3Z(T)][X(T)+15Y(T)+3Z(T)]2,v(T)=6Y(T)[X(T)+15Y(T)+3Z(T)]6Y(T)[X(T)+15Y(T)+3Z(T)][X(T)+15Y(T)+3Z(T)]2.

Let us design the numerators in previous Eq. (15) as:

P(T)=4X(T)[X(T)+15Y(T)+3Z(T)]4X(T)[X(T)+15Y(T)+3Z(T)],Q(T)=6Y(T)[X(T)+15Y(T)+3Z(T)]6Y(T)[X(T)+15Y(T)+3Z(T)],
so that
P(T)=4X(T)[X(T)+15Y(T)+3Z(T)]4X(T)[X(T)+15Y(T)+3Z(T)],Q(T)=6Y(T)[X(T)+15Y(T)+3Z(T)]6Y(T)[X(T)+15Y(T)+3Z(T)],
and therefore,

u(T)=P(T)[X(T)+15Y(T)+3Z(T)]2P(T)[X(T)+15Y(T)+3Z(T)][X(T)+15Y(T)+3Z(T)]3,v(T)=Q(T)[X(T)+15Y(T)+3Z(T)]2Q(T)[X(T)+15Y(T)+3Z(T)][X(T)+15Y(T)+3Z(T)]3.

From Eq. (1) we also have:

M(λ,T)=M(λ,T)T=c3(T)λ6(ec2/(λT)1)2ec2/(λT)withc3(T)=c1c2T2,
M(λ,T)=2M(λ,T)T2=c3(T)Tλ6(ec2/(λT)1)2ec2/(λT)[c2λTec2/(λT)+1ec2/(λT)12],
and therefore, similar to the computations of the TSVs X(T), Y(T), and Z(T), the first and second derivatives of them can be computed by the summations:
X(T)=kλ0λnM(λ,T)x¯(λ)dλ=kj=0471M(λj,T)x¯(λj),Y(T)=kλ0λnM(λ,T)y¯(λ)dλ=kj=0471M(λj,T)y¯(λj),Z(T)=kλ0λnM(λ,T)z¯(λ)dλ=kj=0471M(λj,T)z¯(λj),
and

X(T)=kλ0λnM(λ,T)x¯(λ)dλ=kj=0471M(λj,T)x¯(λj),Y(T)=kλ0λnM(λ,T)y¯(λ)dλ=kj=0471M(λj,T)y¯(λj),Z(T)=kλ0λnM(λ,T)z¯(λ)dλ=kj=0471M(λj,T)z¯(λj).

Thus, the Newton method defined by Eq. (6) is well defined now, and it can be summarized as follows:

Inputs of the proposed method:

ITMAX: Integer, maximum number of iterations allowed. A value of 10 is suggested;Tol: Real, small number for the convergence tolerance. A value of 10−3 K is suggested;T0: Initial guess for the CCT. The value provided by AR method is suggested;u,v: Computed or measured CIE 1960 UCS coordinates for the given light source or illuminant.

Output of the proposed method:

T1: the predicted CCT of the light source.

Procedures of the proposed method:

T=T0;IT=1;Step 1: Compute X(T), Y(T), Z(T) using summations in Eq. (11);Step 2: Compute u(T), v(T) using Eq.(14);Step 3: Compute X'(T), Y'(T), Z'(T) using Eq. (19) and summations in Eq. (21);Step 4: Compute X''(T), Y''(T), Z''(T) using Eq. (20) and summations in Eq. (22);Step 5: Compute u'(T), v'(T) using Eq. (15);Step 6: Compute P(T), Q(T) using Eq. (16);Step 7: Compute P'(T), Q'(T) using Eq. (17);Step 8: Compute u''(T), v''(T) using Eq. (18);Step 8: Compute f'(T) using Eq. (12);Step 9: Compute f''(T) using Eq. (13);Step 10: DT=f'(T)/f''(T);Step 11: T1=TDT;Step 12: If absolute value of DT is less than TolAccept T1 as an estimate of the CCT and stop.else T=T1; IT=IT+1;end ifStep 13: If IT is less than ITMAX Go to Step 1 elseDo not converge within an allowed number of iterations and stop.end if

Note that the method proposed above needs an initial guess of the CCT. Bearing in mind the results in the previous sections showing that AR method performs the second best overall; we suggest that the initial guess T0 can be determined using this method.

The MATLAB software to compute the CCT of a light source using any of the methods mentioned in this paper is available from its first author.

4. Performance of the proposed method

To test the performance of the proposed method, we first generated test samples in the same way as above. For each color temperature T, five samples were generated from the associated isotemperature line as mentioned in Section 2. The color temperature T varied from 500 K to 106 K at intervals of 1 K, meaning that we used 4,997,505 samples (999,501 isotemperature lines × 5 samples per line). The testing was run on a PC (CPU: Intel i5-4430 with 3.0 GHz, RAM: 8.0 GB and Windows 10: 64 bits) using MATLAB software. The proposed method is compared with Roberson’s method with 30/60 intervals (or 31/61 isotemperature lines), and HA method, respectively, since they are the only two methods which are also valid for this wide CCT range (see Table 1). The results are listed in Table 2, where, for samples on each isotemperature line, we provide the maximum prediction error |∆T|MAX and the maximum relative prediction error |∆T/T|MAX for each method. In the last column of Table 2 the CPU time in seconds per sample is given for each method. It should be remembered that the initial guesses for the method proposed in the current paper were provided by the AR30 method, and the time employed to perform such initial guesses have been included in the values shown in the first row of Table 2.

Tables Icon

Table 2. Performance of the proposed method together with AR30, AR60 (AR method with 30 and 60 intervals), and HA methods for CCTs ranging from 500 K to 106 K at 1 K steps

From Table 2, we see that the maximum of |∆T|MAX for the proposed method was 0.0012 K, meaning almost no errors at all. In fact, for CCT less than 5000 K, the maximum of |∆T|MAX for the proposed method was found to be less than 1.5 × 10−7 K. However, when the CCT increased, the maximum of |∆T|MAX also increased, as reflected in Fig. 5. Note that for each CCT in horizontal axis of Fig. 5, there is only one corresponding value |∆T|MAX in the vertical axis. It looks there are many points in a particular vertical line because there are too many vertical lines overlapping (at 1 K steps). Similar performance phenomena were found for |∆T/T|MAX. While for the AR method with 31 and 61 isotemperature lines, the maximum values of |∆T|MAX were 72570 K and 40739 K, respectively, for the HA method, the maximum value of |∆T|MAX was 814590 K. Thus, we can conclude that the method proposed in the current paper is the best one available, providing almost exact CCT values. In any case, it should be considered that our proposed method provides highly satisfactory results because it is based on an initial guess based on the AR method, which was one of the best methods available in the literature (see Section 2). However, for the proposed method, the total CPU time per sample was 0.0162 seconds, which is about 10-fold longer than the time used in HA and AR methods.

 figure: Fig. 5

Fig. 5 Maximum absolute prediction errors (|ΔT|MAX) for the proposed method for CCTs ranging from 500 K to 106 K. The AR method with 31 isotemperature lines provided the initial guess for the proposed method.

Download Full Size | PDF

In the above test, any possible light source/illuminant around Planckian radiator within a distance of ± 5 × 10−2 units in u, v space ranging from 500 K to 106 K was enumerated and tested at 1 K steps. It can be seen that for a real light source, which does not deviate from the Planckian locus far than ± 5 × 10−2 units in u, v space, the proposed algorithm should work well.

Figure 6 shows the maximum number of iterations for convergence in the proposed method using a fixed tolerance of 0.001 K. For CCTs between 500 K and 106 K, it takes 9 iterations for convergence in the worst case. About 5 iterations are necessary for convergence with CCTs lower than 15000 K, and 7 iterations for CCTs lower than 50000 K, using the aforementioned tolerance limit.

 figure: Fig. 6

Fig. 6 Maximum number of iterations for the proposed method and test samples on isotemperature lines with CCTs varying from 500 K to 106 K and a tolerance limit of 0.001 K.

Download Full Size | PDF

It is important to note that the method proposed in this paper uses the Newton method, which converges locally. This means that the convergence of the proposed method needs a good initial guess. It was found that the proposed method works well for CCTs ranging from 500 K to 106 K with the initial guess provided by the AR method. It was also found that, using the initial guess provided by the XQ method, the proposed method works well for CCTs less than 25000 K, but it may not converge for CCTs larger than 25000 K.

It is also worth mentioning that CIE [9, 23] recommended the 1 nm summation should be used for computing TSVs in Eq. (11). That is why the 1 nm summations were used here for anything related to tristimulus integration. If sampling rate is changed from 1 nm intervals to 5 nm, 10 nm or 20 nm intervals, the proposed method may converge faster, but using sampling rates larger than 1 nm intervals in Eqs. (11), (21) and (22), the functions in Eqs. (4), (6), (12), and (13) are only approximated rather than exact. Hence, the accuracy of the method proposed in the current paper may decrease when TSVs are computed using summations at steps larger than 1 nm. Specifically, the proposed method has been tested with CCTs ranging from 2000 K to 10000 K at 1 K steps using sampling rates of 1 nm, 2 nm, 5 nm and 10 nm, and the maximum absolute errors |∆T|MAX found were 1.6 × 10−9, 0.0708, 0.3303, and 22.4599 K, respectively. Perhaps for most practical purposes we may use up to 5 nm sampling rate in the proposed method for CCTs ranging from 2000 K to 10000 K, but anyway, we still recommend using the 1 nm sampling rate for two main reasons: the 1 nm sampling rate is the recommendation made by the CIE [9, 23], and it gives most accurate predictions for a wider CCT range.

5. Conclusions

In this paper, we consider CCT prediction for a given light source or illuminant. In the literature, all available methods give CCT predictions with some lack of accuracy, which increases with the distance of the light source to the Planckian radiator locus. In an initial stage, simple methods were proposed for approximating the CCT, such as plots provided by Kelly’s isotemperature lines [12], Robertson’s interpolation method [13] based on the isotemperature lines, or explicit formulae from Qiu [19], McCamy [20, 21], and Hernández-Andrés et al. [22]. With the increase in computational power, iterative methods were proposed for a better prediction of CCT, such as those suggested by Schanda and Dányi [15], Krystek [17], and Gardner [18]. However, these methods used approximated functions f, or approximated first and second derivatives, to estimated u(T) and v(T), rather than exact u(T) and v(T) functions. In this paper, the Newton method is proposed for computing the CCT. This method finds color temperature T satisfying

f(T)=0,
using the iterative formula defined in Eq. (6). Examining Eq. (6), we note that it needs the first and second derivatives of the function f. In this paper, the function f, and its first and second derivatives are accurately defined and computed following the current CIE recommendations [9] for computation of TSVs using 1nm summations. Thus, the proposed method gives CCT predictions with an accuracy of below 0.0012 K, so long as the distance between the chromaticity of a test light source and the Planckian radiator spectral locus is not greater than 5.0 × 10−2 in the CIE 1960 UCS diagram, as required by the CIE [9, 23]. The performance test shows that the proposed method converges with no more than nine iterations within a tolerance of 0.001 K for CCTs ranging from 500 K to 106 K. Thus, the proposed method can also be considered to be a direct method.

Acknowledgments

Contract grant sponsors: National Natural Science Foundation of China (Grant number: 61178053, 61575090, 61501331); Ministry of Economy and Competitiveness of Spain (Research project FIS2013-40661-P), with contribution of European Regional Development Fund (ERDF); The Natural Science Foundation of Liaoning Province, China (Grant No. 2013020005).

References and links

1. G. Wyszecki and W. S. Stiles, Color Science (Wiley, 1967).

2. Commission Internationale de l’Éclairage (CIE), Colorimetry, CIE Publication 15(E-1.3.1) (CIE Central Bureau, Paris, 1971).

3. Commission Internationale de l’Éclairage (CIE), International Lighting Vocabulary, CIE Publication No. 17 (E-1.1) (CIE Central Bureau, Paris, 1970).

4. Commission Internationale de l’Éclairage (CIE), Proceedings of the 8th Session, International Commission on Illumination, Cambridge, pp. 19–29, September, 1931.

5. D. B. Judd, “The 1931 I.C.I standard observer and coordinate system for colorimetry,” J. Opt. Soc. Am. 23(10), 359–374 (1933). [CrossRef]  

6. D. B. Judd, D. L. MacAdam, G. Wyszecki, H. W. Budde, H. R. Condit, S. T. Henderson, and J. L. Simonds, “Spectral distribution of typical daylight as a function of correlated color temperature,” J. Opt. Soc. Am. 54(8), 1031–1040 (1964). [CrossRef]  

7. J. Romero, A. García-Beltrán, and J. Hernández-Andrés, “Linear bases for representation of natural and artificial illuminants,” J. Opt. Soc. Am. A 14(5), 1007–1014 (1997). [CrossRef]  

8. G. Wyszecki and W. S. Stiles, Color Science: Concepts and Methods, Quantitative Data and Formulae, 2nd ed. (Wiley, 1982), pp. 144–146 and 306–310.

9. Commission Internationale de l’Éclairage (CIE), Colorimetry, CIE Publication 15: 2004 (CIE Central Bureau, Vienna, 2004).

10. Commission Internationale de l’Éclairage (CIE), Method of measuring and specifying colour rendering properties of light sources, CIE Publication 13.3 (CIE Central Bureau, Vienna, 1995).

11. D. B. Judd, “Estimation of chromaticity differences and nearest color temperature on the standard 1931 ICI colorimetric coordinate system,” J. Opt. Soc. Am. 26(11), 421–426 (1936). [CrossRef]  

12. K. L. Kelly, “Lines of constant correlated color temperature based on MacAdam’s (u, v) uniform chromaticity transform of the CIE diagram,” J. Opt. Soc. Am. 53(8), 999–1002 (1963). [CrossRef]  

13. A. R. Robertson, “Computation of correlated color temperature and distribution temperature,” J. Opt. Soc. Am. 58(11), 1528–1535 (1968). [CrossRef]  

14. R. L. Burden and J. Douglas Faires, Numerical Analysis, 9th Ed. (Brooks Cole, 2010).

15. J. Schanda and M. Dányi, “Correlated color temperature calculations in the CIE 1976 chromaticitydiagram,” Color Res. Appl. 2(4), 161–163 (1977). [CrossRef]  

16. J. Schanda, M. Mészáros, and G. Czibula, “Calculating correlated color temperature with a desktop programmable calculator,” Color Res. Appl. 3(2), 65–69 (1978). [CrossRef]  

17. M. Krystek, “An algorithm to calculate correlated colour temperature,” Color Res. Appl. 10(1), 38–40 (1985). [CrossRef]  

18. J. L. Gardner, “Correlated colour temperature-uncertainty and estimation,” Metrologia 37(5), 381–384 (2000). [CrossRef]  

19. X. Qiu, “Formulas for computing correlated color temperature,” Color Res. Appl. 12(5), 285–287 (1987). [CrossRef]  

20. C. S. McCamy, “Correlated color temperature as an explicit function of chromaticity coordinates,” Color Res. Appl. 17(2), 142–144 (1992). [CrossRef]  

21. C. S. McCamy, “Correlated color temperature as an explicit function of chromaticity coordinates (Erratum),” Color Res. Appl. 18(2), 150 (1993).

22. J. Hernández-Andrés, R. L. Lee Jr, and J. Romero, “Calculating correlated color temperatures across the entire gamut of daylight and skylight chromaticities,” Appl. Opt. 38(27), 5703–5709 (1999). [CrossRef]   [PubMed]  

23. Commission Internationale de l’Éclairage (CIE), Colorimetry, CIE Publication 15 4th Ed., Draft 11 (personal communication, 2016).

24. C. Li, M. R. Luo, M. Melgosa, and M. R. Pointer, “Testing the accuracy of methods for the computation of CIE tristimulus values using weighting tables,” Color Res. Appl. 41(2), 125–142 (2016). [CrossRef]  

25. Z. Wang, B. Zhao, J. Li, M. R. Luo, M. R. Pointer, M. Melgosa, and C. Li, “Interpolation, extrapolation, and truncation in computations of CIE tristimulus values,” Article first published online: 6 January 2016, Wiley Online Library (wileyonlinelibrary.com). [CrossRef]  

Cited By

Optica participates in Crossref's Cited-By Linking service. Citing articles from Optica Publishing Group journals and other participating publishers are listed here.

Alert me when this article is cited.


Figures (6)

Fig. 1
Fig. 1 Maximum relative prediction errors (|ΔT/T|MAX) for the seven methods mentioned in Table 1 for CCTs ranging from 2000 K to 10000 K.
Fig. 2
Fig. 2 Maximum relative prediction errors (|ΔT/T|MAX) for the seven methods mentioned in Table 1 for CCTs ranging from 10000 K to 25000 K.
Fig. 3
Fig. 3 Maximum relative prediction errors (|ΔT/T|MAX) for the AR (with 30 and 60 intervals), JS, and HA methods in Table 1 for CCTs ranging from 25000 K to 50000 K.
Fig. 4
Fig. 4 Relative prediction errors (|ΔT/T|, heights of the bars) for the different methods listed in Table 1 to predict five test samples ('Sample #1 (S#1)' to 'Sample #5 (S#5)' in the order from top downward in u, v space) placed on the isotemperature line with T = 8000 K.
Fig. 5
Fig. 5 Maximum absolute prediction errors (|ΔT|MAX) for the proposed method for CCTs ranging from 500 K to 106 K. The AR method with 31 isotemperature lines provided the initial guess for the proposed method.
Fig. 6
Fig. 6 Maximum number of iterations for the proposed method and test samples on isotemperature lines with CCTs varying from 500 K to 106 K and a tolerance limit of 0.001 K.

Tables (2)

Tables Icon

Table 1 CCT ranges covered by different methods

Tables Icon

Table 2 Performance of the proposed method together with AR30, AR60 (AR method with 30 and 60 intervals), and HA methods for CCTs ranging from 500 K to 106 K at 1 K steps

Equations (23)

Equations on this page are rendered with MathJax. Learn more.

M(λ,T)= c 1 λ 5 ( e c 2 /(λT) -1) 1 ,
u=4x/(2x+12y+3), v=6y/(2x+12y+3),
x=X/(X+Y+Z), y=Y/(X+Y+Z).
f(T)= [uu(T)] 2 + [vv(T)] 2 ,
X(T)=k λ 0 λ n M(λ,T) x ¯ (λ)dλ , Y(T)=k λ 0 λ n M(λ,T) y ¯ (λ)dλ, Z(T)=k λ 0 λ n M(λ,T) z ¯ (λ)dλ .
T j+1 = T j f ( T j )/ f ( T j ), forj=0,1,2,
T e =q(P, P 1 , P 2 , θ 1 , θ 2 ),
T e =a n 3 +b n 2 +cn+d,
n=(x x e )/(y y e ), with x e =0.3320, y e =0.1858.
T e = A 0 + A 1 e (n/ t 1 ) + A 2 e (n/ t 2 ) + A 3 e (n/ t 3 ) ,
X(T)=k λ 0 λ n M(λ,T) x ¯ (λ)dλ =k j=0 471 M( λ j ,T) x ¯ ( λ j ) , Y(T)=k λ 0 λ n M(λ,T) y ¯ (λ)dλ =k j=0 471 M( λ j ,T) y ¯ ( λ j ) , Z(T)=k λ 0 λ n M(λ,T) z ¯ (λ)dλ =k j=0 471 M( λ j ,T) z ¯ ( λ j ) ,
f (T)=2[uu(T)] u (T)2[vv(T)] v (T),
f (T)=2 ( u (T)) 2 2(uu(T)) u (T)+2 ( v (T)) 2 2(vv(T)) v (T).
u(T)=4X(T)/[X(T)+15Y(T)+3Z(T)], v(T)=6Y(T)/[X(T)+15Y(T)+3Z(T)].
u (T)= 4 X (T)[X(T)+15Y(T)+3Z(T)]4X(T)[ X (T)+15 Y (T)+3 Z (T)] [X(T)+15Y(T)+3Z(T)] 2 , v (T)= 6 Y (T)[X(T)+15Y(T)+3Z(T)]6Y(T)[ X (T)+15 Y (T)+3 Z (T)] [X(T)+15Y(T)+3Z(T)] 2 .
P(T)=4 X (T)[X(T)+15Y(T)+3Z(T)]4X(T)[ X (T)+15 Y (T)+3 Z (T)], Q(T)=6 Y (T)[X(T)+15Y(T)+3Z(T)]6Y(T)[ X (T)+15 Y (T)+3 Z (T)],
P (T)=4 X (T)[X(T)+15Y(T)+3Z(T)]4X(T)[ X (T)+15 Y (T)+3 Z (T)], Q (T)=6 Y (T)[X(T)+15Y(T)+3Z(T)]6Y(T)[ X (T)+15 Y (T)+3 Z (T)],
u (T)= P (T)[X(T)+15Y(T)+3Z(T)]2P(T)[ X (T)+15 Y (T)+3 Z (T)] [X(T)+15Y(T)+3Z(T)] 3 , v (T)= Q (T)[X(T)+15Y(T)+3Z(T)]2Q(T)[ X (T)+15 Y (T)+3 Z (T)] [X(T)+15Y(T)+3Z(T)] 3 .
M (λ,T)= M(λ,T) T = c 3 (T) λ 6 ( e c 2 /(λT) 1) 2 e c 2 /(λT) with c 3 (T)= c 1 c 2 T 2 ,
M (λ,T)= 2 M(λ,T) T 2 = c 3 (T) T λ 6 ( e c 2 /(λT) 1) 2 e c 2 /(λT) [ c 2 λT e c 2 /(λT) +1 e c 2 /(λT) 1 2],
X (T)=k λ 0 λ n M (λ,T) x ¯ (λ)dλ =k j=0 471 M ( λ j ,T) x ¯ ( λ j ) , Y (T)=k λ 0 λ n M (λ,T) y ¯ (λ)dλ =k j=0 471 M ( λ j ,T) y ¯ ( λ j ) , Z (T)=k λ 0 λ n M (λ,T) z ¯ (λ)dλ =k j=0 471 M ( λ j ,T) z ¯ ( λ j ) ,
X (T)=k λ 0 λ n M (λ,T) x ¯ (λ)dλ =k j=0 471 M ( λ j ,T) x ¯ ( λ j ) , Y (T)=k λ 0 λ n M (λ,T) y ¯ (λ)dλ =k j=0 471 M ( λ j ,T) y ¯ ( λ j ) , Z (T)=k λ 0 λ n M (λ,T) z ¯ (λ)dλ =k j=0 471 M ( λ j ,T) z ¯ ( λ j ) .
f (T)=0,
Select as filters


Select Topics Cancel
© Copyright 2024 | Optica Publishing Group. All rights reserved, including rights for text and data mining and training of artificial technologies or similar technologies.