Vous êtes sur la page 1sur 7

See

discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/271494143

Calibration method for Correlated Color


Temperature (CCT) measurement using RGB
color sensors

Conference Paper · September 2013


DOI: 10.1109/STSIVA.2013.6644921

CITATIONS READS

4 688

3 authors, including:

Juan Sebastian Botero-Valencia J. Francisco Vargas-Bonilla


Instituto Tecnológico Metropolitano University of Antioquia
29 PUBLICATIONS 20 CITATIONS 111 PUBLICATIONS 803 CITATIONS

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Metodología de diseño y control de un manipulador robótico antropomorfo de tamaño ajustable con


capacidad de adaptación como exoesqueleto para brazo y antebrazo utilizando electromiografía de
superficie o control activo View project

All content following this page was uploaded by Juan Sebastian Botero-Valencia on 08 August 2015.

The user has requested enhancement of the downloaded file.


Calibration method for Correlated Color Temperature
(CCT) measurement using RGB color sensors
Juan-Sebastián Botero Valencia Francisco-Eugenio López Giraldo
Docente Ocasional, Grupo Automática y Electrónica Asesor de proyectos, Grupo Automática y Electrónica
Instituto Tecnológico Metropolitano - ITM Instituto Tecnológico Metropolitano - ITM
Medellín, Colombia Medellín, Colombia
juanbotero@itm.edu.co franciscolopez@itm.edu.co

Jesús-Francisco Vargas Bonilla


Docente Tiempo Completo, Grupo Sistemic
Universidad de Antioquia -UDEA
Medellín, Colombia
jfvargas@udea.edu.co

Abstract— The color is a feature derived from perceptual advantages to our species [7]. The characterization of light
light that is reflected on objects, as such, represents a physical sources is very important for the study of color, and so they
property. However, progress has been made in building have done work [8] where measurements were obtained for
mathematical models to define it more clearly. Light sources play most artificial light sources available. Similarly there are
an important role in the perception of colors and one of the specific works on characterization of LED sources [9] trying
measures to characterize their effect is the Correlated Color to estimate their luminous efficiency and colour rendering,
Temperature (CCT). The CCT is a measure used to characterize and other works on characterization of low-power LED based
light sources representing the temperature of a black body in on its characteristic curve [10].
Kelvin to have the same chromaticity of the light source
analyzed. In this work, we used a low-cost RGB sensor in order The CCT is a measure used to characterize light sources. It
to find a model that can be transformed into XYZ space and then was defined by the CIE in 1931, could be understood as the
estimate the value CCT. Five groups of light sources were proximity to the white light source. There are several revisions
characterized using the values of the standard CIE color from the original model [11]. Nowdays there are different
matching function. Later we found a transformation matrix to models that are used to transform from the chromaticity
convert RGB into XYZ space, with this information the CCT was coordinates into CCT [12]. The CCT, measured
measured with an error value of less than 6%. This work is independently, is a measure used to represent the warmth of a
framed in the development of tools to control and lighting
source and technically this parameter is used to create
measurements in order to carry out control environments and
different types of commercial atmospheres [13], some studies
characterization of artificial sources.
were performed to determine the response of users to changes
Keywords—ambient controt; calibration; Correlated Color in controlled environments where the CCT is controlled [14].
Temperature; illumination; RGB color sonsor. The best way to estimate the value of a CCT source is use
spectral information to determine the values in XYZ space.
I. INTRODUCTION Values presented in [12] are used to convert the chromaticity
The light is a fundamental part in the interpretation of coordinates and then the defined reference point and the
color, reflected on objects and is absorbed by the receptors in polynomial are used to calculate the CCT value. The use of
the retina to form the perception we have of color. Progress spectrometry complicates the implementation of the model
has been made to build mathematical models to describe color and make difficult it use in common applications as dynamic
and light's sources, the most important are those made by the lighting control [15], [16], [17], but it is indisputable that may
International Commission on Illumination (CIE for its be useful to add controlled CCT-models to such systems. This
acronym in French). One of the measures to characterize paper presents a calibration methodology that estimates CCT
sources is the Correlated Color Temperature (CCT). The CCT using a low-cost RGB sensor. For this, five sources groups
is a measure used to characterize light sources representing the were characterized in order to estimate a matrix to transform
temperature of a black body in Kelvin to have the same the sensor response from RGB space into a standardized XYZ
chromaticity of the light source analyzed [1]. space, then such information can be transform into the
chromaticity coordinates and finally use the model of [12] to
The Color, as property, is used in numerous applications as determine the CCT value. The approach shows an error of less
orange classification [2], OLED (Organic LED) than 6%. This initiative is framed in research work looking to
characterization [3], to verify the stability of sausages [4], for build simple models to improve automatic lighting features
segmenting images in video sequences [5] and to classify fruit and therefore color's perception in common environments and
quality as in [6] among many other applications, the overall quality control applications in industrial processes.
perception of color is a property that provides evolutionary

978-1-4799-1121-9/13/$31.00 ©2013 IEEE


II. MATERIALS AND METHODS input (SYNC), which allows precisely controlling integration
external sources.
Table 2 shows some important features of the TCS3414CS
A. LR1 – Broad spectral range spectrometer sensor. An internal filter eliminates the signal fluctuation due
to AC lighting flicker. External capacitor is not required.
1) Characteristic

The LR1 is a low cost spectrometer developed by ASEQ Table 2. TCS3414CS Characteristics
instruments with a TOSHIBA CCD (Charge Coupled Device) Characteristic Value Units
linear image sensor. The most relevant features are presented Sensor Photodiode
in Table 1. Clock frequency
A/D Resolution
Table 1. Characteristic LR1 Operating voltage
Characteristic Value Units
Supply Current ( )
Sensor
Operating temperature
Detector range
Communication
Pixels
Chanels R, G, B, clear
Pixel size
Pixel well depth
A/D Resolution C. Correlated Color Temperature (CCT)
Exposure time
CCD Reading time A Planckcian radiator is a theoretical object with zero
reflectance. Therefore, the spectral radiation of the body is
given by Planck's radiation law (1). Correlated Color
Temperature (CCT) represents the temperature of a black body
2) LR1 Calibration in Kelvin to have the same chromaticity of the light source
analyzed. The CCT was defined by the CIE, the definition
In order to verifying the calibration of the spectrometer the present in the "International Lighting Vocabulary" is: "Colour
wavelength of HeNe lasers was measured for 543nm (green) temperature: The temperature of a Planckian radiator whose
and 633nm (red). Figure 1 shows results. The data obtained radiation has the same chromaticity Given As That of a
were adjusted to the calibration of the spectrometer data. stimulus" [18].

Calibration
1
544.1 [nm]
633.2 [nm]
Normalized

0.5

(1)
0
400 600 800 1000
Wavelength -  [nm]
Figure 1. Calibration LR1

B. TCS3414CS
D. CIE standard observer matching functions
The TCS3414CS is a color sensor manufactured by Texas
Advanced Optoelectronic Solutions (TAOS). It contains an The CIE , , and color matching functions
8x2 array of filtered photodiodes, four of which have red are curves representing numerically the response of an
filters, four have blue filters, and four have green filters, the observer as shown in Figure 3. These functions can be
remaining four are not filtered, as shown in Figure 2. Each of regarded as the spectral sensitivity curves of three linear light
the four sensor channels (Red, Green, Blue, Clear) delivers its detectors, which produce the CIE tristimulus values , and
output in a format of 16 bits using I2C protocol information at . The set of functions are known as the Standard Observer. In
400 KHz. The gain of the analog converter and the integration [19], authors define the CIE standard colorimetric observer
time are programmable. The sensor has a synchronization tables that were used for the calculations in this paper.

978-1-4799-1121-9/13/$31.00 ©2013 IEEE


CIE standard observer color matching functions 2 deg III. RESULTS
2
Tristimulus value

Given that we have the spectral information from each


1.5 source analyzed, we built an independent database in order to
derive the real calculation of CCT using the equations
1
presented in (2), (3), and (4) and the CIE standard matching
0.5 functions. For this, we used the LR1 spectrometer to capture
and normalize the spectra of sunlight at noon for 6 different
0 days. The spectra are shown in Figure 4.
500 400 600 700 800
Wavelength -  [nm]
Figure 2. CIE standard observer color matching functions Sun
1

E. CIE 1931XYZ tristimulus of light source

Normalized
0.5
The CIE , and . coordinates of a light source can be
calculated using the Spectral Power Distribution (SPD) of the
source and with CIE standard observer matching functions.
The equations are presented in (2). In (2), is a constant for 0
normalized Y to 100. 400 500 600 700 800
Wavelength -  [nm]
Figure 3. Spectra of the Sun

After that, spectra for three fluorescent sources were


captured. We considered using a fluorescent source with high
CCT ( ). The spectra are shown in Figure 5.
(2)
Fluorescent sources
1
Normalized

0.5
With the , and . values can obtain the chromaticity
coordinates , . The equations are presented in (3).

0
400 500 600 700 800
Wavelength -  [nm]
Figure 4. Spectra of fluorescent sources
(3) We considered three different halogen sources
manufacturers, two spotlight-type ( ) and one
bulb-type ( ). The spectra are shown in Figure 6.

F. McCamy formula Halogen sources


1
McCamy equation was proposed in 1991 [12], it estimates
Normalized

color temperature from the chromaticity coordinates. The


equations presented in (4) 0.5

(4) 0
400 500 600 700 800
Wavelength -  [nm]
Figure 5. Spectra of halogen sources

978-1-4799-1121-9/13/$31.00 ©2013 IEEE


Although incandescent sources have lost popularity Table 3. Dataset XYZ to RGB
because of their low luminous efficiency, we also included
two sets of them. The spectra are shown in Figure 7.
88 100 113 7650 116 255 182
101 100 32 3243 255 241 78
86 100 86 6179 149 255 165
85 100 83 6077 139 255 151
Incandescent sources
1 98 100 31 3378 255 199 88
99 100 30 3317 255 195 87
Normalized

104 100 36 3166 255 170 92


0.5 106 100 4 2623 255 173 46
87 100 91 6318 184 255 182
103 100 6 2775 255 174 42
0 109 100 22 2712 255 147 64
400 500 600 700 800
Wavelength -  [nm] 104 100 29 3041 255 164 77
Figure 6. Spectra of incandescent sources
89 100 77 5414 217 255 193
91 100 79 5312 232 255 198
91 100 79 5335 230 255 198
90 100 85 5688 222 255 210
Finally, we included the spectrum for four white LED.
LED's are perhaps the most important source of artificial light, 94 100 88 5491 239 255 216
nowadays [20]. The spectra are shown in Figure 8. 90 100 87 5770 221 255 212

With the information collected we can construct a


LED sources transformation model as shown in equation (5). Where the
1 vector represents the sensor output value (TCS3414CS).
Normalized

(5)
0.5

To calculate T, we use (6). Where represents


0 a matrix that is built with real CIE , and space and
400 500 600 700 800 a matrix that is constructed with the measured
Wavelength -  [nm] values in the RGB sensor (TCS3414CS) normalizing the
Figure 7. Spectra of LED sources output value to 255.

With the spectral information of each of the sources and (6)


using the equations shown in (2), (3) and (4), the CIE , and
values and the CCT were obtained. The output values for
RGB sensor were acquired at the same time with the spectra.
These data will be used to find the transformation matrix. In
Finally, Table 4 presents the results of applying the
Table 3 Columns , and are the actual values of
calculated matrix-transformation T over RGB sensor data in
characterization of each of the sources in the CIE , and
space, and is the CCT calculated from real values. order to calculate the value of CCT. The column represents
Columns , and represent the output values for the relative error between the real value of CCT and the value
TCS3414CS sensor. measured with TCS3414CS RGB sensor.

978-1-4799-1121-9/13/$31.00 ©2013 IEEE


Table 4. Error in calculing CCT REFERENCES

88 100 113 8050 71 87 97 8372 4,0 [1] G. Sharma, Digital Color Imaging: Handbook. CRC
Press, 2003, p. 797.
101 100 32 3243 117 118 37 3372 4,0
86 100 86 6179 82 95 86 6420 3,9 [2] R. Fernández-Vázquez, C. C. Stinco, M. L. Escudero-
85 100 83 6077 81 95 83 6280 3,4 Gilete, A. J. Meléndez-martínez, F. J. Heredia, and I.
98 100 31 3378 104 103 31 3219 -4,7 M. Vicario, “Estudio preliminar sobre la utilidad del
color para clasificar los zumos de naranja según su
99 100 30 3317 103 101 30 3186 -3,9 elaboración,” Óptica pura y aplicada, no. 2009, pp.
104 100 36 3166 96 92 26 3067 -3,1 245–249, 2010.
106 100 4 2623 103 99 12 2769 5,2
87 100 91 6318 88 99 86 5966 -5,6 [3] E. Perales, E. Chorro, M. C. García-domene, M. D. De
Fez, D. Óptica, F. Anatomía, U. De Alicante, and F.
103 100 6 2775 104 99 11 2754 -0,7 Oftalmológica, “Características colorimétricas de una
109 100 22 2712 93 87 12 2700 -0,4 pantalla con tecnología OLED Colorimetric
104 100 29 3041 96 92 20 2913 -4,2 characteristics of an OLED display,” vol. 43, no. 2,
pp. 173–180, 2010.
89 100 77 5414 94 103 84 5443 0,5
91 100 79 5312 97 105 84 5257 -1,0
[4] M. Amensour, E. Sánchez-zapata, J. Abrini, and E.
91 100 79 5335 97 105 84 5278 -1,1 Sendra, “Estabilidad del color en salchichas de pollo
90 100 85 5688 93 102 89 5735 0,8 tipo Frankfurt adicionadas con extracto acuoso de hoja
de Myrtus communis Color stability in Frankfurter
94 100 88 5491 96 105 89 5496 0,1
chicken sausages added with Myrtus communis leaf
90 100 87 5770 92 102 90 5817 0,8 aqueous extract,” vol. 43, no. 2000, pp. 251–257,
2010.
IV. CONCLUSIONS
[5] J. S. Botero Valencia and E. Delgado Trejos,
“Segmentación para la identificación y planeación de
CCT measurement is important in the characterization of light trayectorias de Robots en 2D sobre secuencias de
sources, it allows to estimate perceptual proximity to white. It video,” in STSIVA 2009, 2009.
is also necessary to take into account this feature in the lighting
design depending on the importance of having the perception
of color and the type of atmosphere you want to create. [6] Y. Motonaga, T. Matsumoto, and N. Motonaga,
“Color chart of European Pear ‘Le Lectier’based on
The calibration presented in this paper allows CCT the color image analysis,” in SICE Annual
measurement with an error of less than 6% using a low-cost Conference, 2010, pp. 2455–2461.
RGB sensor. It is important to derive perceptual measures of
light sources in sensors that can easily manipulate and integrate
with control systems. This work aims to be part of the design [7] F. Lopera, “Evolución y Cognición,” Revista
of an intelligent control system that maintains stable lighting Neuropsicología, Neuropsiquiatría y Neurociencias,
conditions in an environment. vol. 6, pp. 27–34, 2004.
This paper presents a simple model of the CCT approach that
does not require the use of spectrometry. To build the model [8] C. D. Elvidge, D. M. Keith, B. T. Tuttle, and K. E.
we used the most common light sources available, therefore its Baugh, “Spectral Identification of Lighting Type and
application is relevant in residential lighting. Character,” Sensors (Basel, Switzerland), vol. 10, no.
4, pp. 3961–3988, Apr. 2010.
ACKNOWLEDGMENT
This project is framed in research project "Design and [9] Z. Lei, G. Xia, L. Ting, G. Xiaoling, L. Qiao Ming,
implementation of an intelligent control system with balanced and S. Guangdi, “Color rendering and luminous
lighting natural light to reduce energy consumption in efficacy of trichromatic and tetrachromatic LED-based
buildings" with ID P12204, of the Automatic and Electronics white LEDs,” Microelectronics Journal, vol. 38, no.
Group COL0053581. Instituto Tecnológico Metropolitano, 1, pp. 1–6, Jan. 2007.
Medellín-Colombia.
[10] J.-S. Botero Valencia and F.-E. Lopez Giraldo,
“Estimation of the characteristic curve and the
wavelength in high-brightness LED,” in 2012 XVII

978-1-4799-1121-9/13/$31.00 ©2013 IEEE


Symposium of Image, Signal Processing, and Artificial
Vision (STSIVA), 2012, no. 3, pp. 132–134.

[11] Á. Borbély, Á. Sámson, and J. Schanda, “The concept


of correlated colour temperature revisited,” Color
Research & …, pp. 450–457, 2001.

[12] C. McCamy, “Correlated color temperature as an


explicit function of chromaticity coordinates,” Color
Research & Application, pp. 142–144, 1992.

[13] ASSIST, “Guide to Light and Color in Retail


Merchandising,” 2010.

[14] Á. Logadóttir, S. a. Fotios, J. Christoffersen, S. S.


Hansen, D. D. Corell, and C. Dam-Hansen,
“Investigating the use of an adjustment task to set
preferred colour of ambient illumination,” Color
Research & Application, vol. 38, no. 1, pp. 46–57,
Feb. 2013.

[15] A. Pandharipande and D. Caicedo, “Daylight


integrated illumination control of LED systems based
on enhanced presence sensing,” Energy and Buildings,
vol. 43, no. 4, pp. 944–950, Apr. 2011.

[16] M. Ashibe, M. Miki, and T. Hiroyasu, “Distributed


optimization algorithm for lighting color control using
chroma sensors,” in 2008 IEEE International
Conference on Systems, Man and Cybernetics, 2008,
pp. 174–178.

[17] J. S. Sandhu, A. M. Agogino, and A. K. Agogino,


“Wireless sensor networks for commercial lighting
control: decision making with multi-agent systems,”
in AAAI workshop on sensor networks, 2004, pp. 131–
140.

[18] CIE, “International Lighting Vocabulary.” CIE


Publication, Viena, 1987.

[19] CIE, “Selected Colorimetric Tables.” Viena, 2013.

[20] P. Boyce, “Editorial: LEDs are the answer, now


what’s the question?,” Lighting Research and
Technology, vol. 45, no. 3, pp. 265–265, May 2013.

978-1-4799-1121-9/13/$31.00 ©2013 IEEE

View publication stats

Vous aimerez peut-être aussi