Color Graphics in the Service of Light-Source Visualization and Design

Lulu Wang and Andrew N. Chalmers

## Abstract

In the world of lighting engineering, one of the most active areas of research and industrial application is in the definition of the color rendering properties of light sources. There is a current international standard, and several new methods have been proposed over the last decade. Ordinary consumers are frequently left with little or no knowledge of how to interpret the numerical data produced by any of these systems. This situation has been exacerbated with the advent of LED light sources with widely differing properties. Certain LEDs yield very different results depending on the particular metric in use. We have designed a color graphical system that allows a user to pick a set of (typically) 16 surface color samples, and to be given a realistic comparison of the colors when illuminated by two different light sources, shown on a side-by-side display on a color monitor. This provides a visual analogy to the computations built into the above-mentioned metrics, all of which are based on comparison techniques. This chapter will provide an insight into the design and operation of our lighting computer graphics visualization system. Mention will also be made of similar systems that may be found in the published literature.

Keywords: color rendering, light sources, color graphics, comparison display, user education

### 1. Introduction

The purpose of the design is to display of a set of surface color patches as if they were illuminated by a specific light source, with the simultaneous display of two such sets to demonstrate the surface color differences arising from two different light sources. The approach was to implement a combination of computer graphics and image processing to generate displays providing the visualization of the color rendering properties of a range of different light sources, and to facilitate comparisons between light sources, both existing and conceptual.

Color rendering has been defined by the Commission Internationale de l'Eclairage: International Commission on Illumination (CIE) as the "effect of an illuminant on the perceived color of objects by conscious or subconscious comparison with their perceived color under a reference illuminant" [1]. The necessity for a means of defining the color rendering of light sources derives from the fact that human color vision possesses the property of metamerism. This can be defined as a perceived

matching, for a given observer, of the colors of light sources having different (i.e. nonmatching) spectral power distributions [2]. In turn, an SPD (spectral power distribution) is the concentration, as a function of wavelength, of the radiant output in terms of radiant power or flux. For calculation purposes, the "given observer" is conventionally taken to be one of the standard observers as defined by the CIE [3].

be used as a research tool for the simulation and demonstration of the color rendering properties of various artificial light sources. It will focus on the display of a set of surface color patches as if they were illuminated by a specific light source, and the simultaneous display of two such sets to demonstrate the surface color differences

We note that modern applications for computer graphics are largely to be found in virtual reality products such as computer gaming. In these, the 3-dimensional representation of light flow, shadows, and surface highlights are critically important for the photo-realistic creation of virtual environments, and a full description of each surface's properties requires the use of concepts such as BRDF (the bidirectional reflectance distribution function). This is not the case in our VIS in which we operate on the colors of surfaces with the implied assumption of perfectly-diffusing (Lambertian) surface properties. For each surface color in our system the diffuse reflectance is represented simply by a table of values of the spectral reflectance (i.e.

We describe the computer models developed for the representation and display of surface colors in general, and color rendering in particular. The designed system computes and displays the color of each sample from knowledge of the light-source spectrum and the spectral reflectance of each surface. It can simultaneously display the colors resulting from illumination by two different sources. In addition, the system computes the color appearance attributes for the two sets of colors using the

The color temperature of a light source is measured and expressed by the chro-

light" sources can also be expressed in terms of the correlated color temperature (CCT) having the unit Kevin (K). The CCT of a test source is defined as the temperature of the black body (or, Planckian) radiator having a source color that

Correlated color temperature (CCT) is a widely used term to identify the appearance of near-white light sources (as well as screen white on computer monitors). It is usually the first color parameter specified in lighting system design since the color of the source has a profound influence on the atmosphere created by the lighting. The CCTs for modern lighting systems are generally in the range 2700 K (correlating with traditional tungsten filament lamps) to 6500 K (which is the color of full midday daylight in summer). Most domestic users prefer "warm" lighting in the 2700–3000 K range, while educational and commercial installations more commonly use the "cooler" range, 4000–6500 K. Note that "warm" and "cool" here refer to the psychological ambience of the lighting in contradistinction to the values

Technically, the CCT is defined by plotting the color of the source on a CIE (u, v) graph<sup>2</sup> to determine the closest point on the Planckian locus, and the value of

> , ⅔v<sup>0</sup> ).

These sets of coordinates are all defined by the CIE and are linearly related [4].

matches (as closely as possible) the color of the test source [4].

, v<sup>0</sup>

) for that source.<sup>1</sup> The color of "white

Full details of this visualization system will be given in Section 3.

arising from the use of the two different light sources.

Color Graphics in the Service of Light-Source Visualization and Design

reflectance as a function of wavelength).

DOI: http://dx.doi.org/10.5772/intechopen.81484

CIECAM02 color appearance model [9].

2. Color properties of light sources

2.1 The correlated color temperature

maticity coordinates (x, y) or (u, v) or (u<sup>0</sup>

the temperature at that point gives the CCT.

This has now been re-designated by CIE as (u<sup>0</sup>

of CCT.

1

2

11

In practice, what this means is that two light sources can look the same to a human observer while having different SPDs—which in turn will mean different color rendering properties. The color of the source itself is most often defined by the color temperature or correlated color temperature (CCT) [4] which will be defined and expanded on in Section 2. Figure 1 shows two clearly different SPDs which have the same CCT.

For about the last 15 years there have been three different systems in use that provide a numerical index purporting to represent the color rendering performance of a source. The CIE color rendering index (CRI, symbol Ra) was developed in the 1960s, with some relatively minor revisions since. At the time of writing, it is still the internationally-accepted metric [6]. The color quality scale (CQS, symbol Qa) was published by NIST [7] in 2010 with the intention of updating and improving on the calculation techniques of the CRI. Most recently, the IES of North America has published its color fidelity index (symbol Rf) in its technical memorandum TM-30-15 [8] with further improvements to the computational methods. Section 2 provides a brief outline of the above-mentioned systems used in the classification of source color properties.

It will be apparent from the foregoing that a means for the visualization of the color properties of a source will be of definite benefit to all users—particularly those concerned with light-source development, as well as users with less grasp of the physical significance of the numerical indices in the above systems. This leads us to the central focus of this chapter, which is the design and implementation of a computer graphic system providing an accurate (i.e. visually realistic) display of selected surface colors when illuminated (separately) by any specified pair of light sources.

Our VIS (virtual imaging system) has been developed to display the color properties of a series of test color samples under different light sources. This chapter will briefly describe the design and construction of the computer-based model that can

#### Figure 1.

Comparison of two SPDs having the same CCT: The reference source (black line) is a phase of daylight having a CCT of 5200 K shown for comparison with a 4-band LED source of the same CCT [5].

#### Color Graphics in the Service of Light-Source Visualization and Design DOI: http://dx.doi.org/10.5772/intechopen.81484

be used as a research tool for the simulation and demonstration of the color rendering properties of various artificial light sources. It will focus on the display of a set of surface color patches as if they were illuminated by a specific light source, and the simultaneous display of two such sets to demonstrate the surface color differences arising from the use of the two different light sources.

We note that modern applications for computer graphics are largely to be found in virtual reality products such as computer gaming. In these, the 3-dimensional representation of light flow, shadows, and surface highlights are critically important for the photo-realistic creation of virtual environments, and a full description of each surface's properties requires the use of concepts such as BRDF (the bidirectional reflectance distribution function). This is not the case in our VIS in which we operate on the colors of surfaces with the implied assumption of perfectly-diffusing (Lambertian) surface properties. For each surface color in our system the diffuse reflectance is represented simply by a table of values of the spectral reflectance (i.e. reflectance as a function of wavelength).

We describe the computer models developed for the representation and display of surface colors in general, and color rendering in particular. The designed system computes and displays the color of each sample from knowledge of the light-source spectrum and the spectral reflectance of each surface. It can simultaneously display the colors resulting from illumination by two different sources. In addition, the system computes the color appearance attributes for the two sets of colors using the CIECAM02 color appearance model [9].

Full details of this visualization system will be given in Section 3.

## 2. Color properties of light sources

#### 2.1 The correlated color temperature

The color temperature of a light source is measured and expressed by the chromaticity coordinates (x, y) or (u, v) or (u<sup>0</sup> , v<sup>0</sup> ) for that source.<sup>1</sup> The color of "white light" sources can also be expressed in terms of the correlated color temperature (CCT) having the unit Kevin (K). The CCT of a test source is defined as the temperature of the black body (or, Planckian) radiator having a source color that matches (as closely as possible) the color of the test source [4].

Correlated color temperature (CCT) is a widely used term to identify the appearance of near-white light sources (as well as screen white on computer monitors). It is usually the first color parameter specified in lighting system design since the color of the source has a profound influence on the atmosphere created by the lighting. The CCTs for modern lighting systems are generally in the range 2700 K (correlating with traditional tungsten filament lamps) to 6500 K (which is the color of full midday daylight in summer). Most domestic users prefer "warm" lighting in the 2700–3000 K range, while educational and commercial installations more commonly use the "cooler" range, 4000–6500 K. Note that "warm" and "cool" here refer to the psychological ambience of the lighting in contradistinction to the values of CCT.

Technically, the CCT is defined by plotting the color of the source on a CIE (u, v) graph<sup>2</sup> to determine the closest point on the Planckian locus, and the value of the temperature at that point gives the CCT.

matching, for a given observer, of the colors of light sources having different (i.e. nonmatching) spectral power distributions [2]. In turn, an SPD (spectral power distribution) is the concentration, as a function of wavelength, of the radiant output in terms of radiant power or flux. For calculation purposes, the "given observer" is conventionally taken to be one of the standard observers as defined by the CIE [3]. In practice, what this means is that two light sources can look the same to a human observer while having different SPDs—which in turn will mean different color rendering properties. The color of the source itself is most often defined by the color temperature or correlated color temperature (CCT) [4] which will be defined and expanded on in Section 2. Figure 1 shows two clearly different SPDs which

For about the last 15 years there have been three different systems in use that provide a numerical index purporting to represent the color rendering performance of a source. The CIE color rendering index (CRI, symbol Ra) was developed in the 1960s, with some relatively minor revisions since. At the time of writing, it is still the internationally-accepted metric [6]. The color quality scale (CQS, symbol Qa) was published by NIST [7] in 2010 with the intention of updating and improving on the calculation techniques of the CRI. Most recently, the IES of North America has published its color fidelity index (symbol Rf) in its technical memorandum TM-30-15 [8] with further improvements to the computational methods. Section 2 provides a brief outline of the above-mentioned systems used in the classification of

It will be apparent from the foregoing that a means for the visualization of the color properties of a source will be of definite benefit to all users—particularly those concerned with light-source development, as well as users with less grasp of the physical significance of the numerical indices in the above systems. This leads us to the central focus of this chapter, which is the design and implementation of a computer graphic system providing an accurate (i.e. visually realistic) display of selected surface colors when illuminated (separately) by any specified pair of light

Our VIS (virtual imaging system) has been developed to display the color properties of a series of test color samples under different light sources. This chapter will briefly describe the design and construction of the computer-based model that can

Comparison of two SPDs having the same CCT: The reference source (black line) is a phase of daylight having a

CCT of 5200 K shown for comparison with a 4-band LED source of the same CCT [5].

have the same CCT.

Computer Graphics and Imaging

source color properties.

sources.

Figure 1.

10

<sup>1</sup> These sets of coordinates are all defined by the CIE and are linearly related [4].

<sup>2</sup> This has now been re-designated by CIE as (u<sup>0</sup> , ⅔v<sup>0</sup> ).

## 2.2 Color rendering and fidelity

Coming now to color rendering, the three previously-mentioned systems (represented by the indices Ra, Qa, and Rf respectively) have a number of elements in common as well as their own distinct features. Their most important common feature is that they all produce scales in which the maximum is 100 for the "best" sources. The Ra scale is open-ended at its lower end, and can run to negative values, whereas the other scales terminate at zero. The Ra scale was originally designed to provide a measure of the relative merits of the fluorescent-tube sources being widely adopted in the 1960s; and the other two scales have been normalized in the sense that they have been scaled to provide the same index values for the original set of fluorescents. The two later scales do, however, diverge considerably from Ra in assessing other newer sources, particularly LEDs.

The next main factor they share is that they are all based on the comparison of sets of test colors which are illuminated in turn by a test light source and a reference source of the same CCT. In all three cases the reference sources are chosen as Planckian radiators if the CCT < 5000 K or a CIE Daylight illuminant if CCT ≥ 5000 K. Note, however, that there is a modification in the case of the TM-30-15 (Rf) system, in which there is a graded transition between the two types of reference for the range 4500–5500 K. In all these systems, the color differences are computed in (different) designated three-dimensional color spaces.

It should be noted that, in all three approaches, the colors and color differences are computed numerically, using the measured SPDs of test sources and the defined SPDs of the reference illuminants. The various color samples are numerically defined by means of measurements of their spectral reflectances. The wavelength ranges and wavelength intervals of the SPDs and reflectances have to be compatible, most often 380–780 nm at either 5-nm or 1-nm intervals.

Another common feature is that each of these systems incorporates a chromatic adaptation transform since it is generally not possible to achieve identity of CCTs for the test and reference sources—but there are different transforms in use in each instance.

Figure 2 summarizes the above features, showing the general format of the algorithm for a color rendering or fidelity metric. We next look at the specifics of the individual systems.

#### 2.3 The CIE 13.3-1995 (CRI) method

In this system [6] the color rendering index (CRI) is based on the average colordifference of eight medium-chroma color samples, calculated in the (now deprecated) CIE 1964 U\*V\*W\* color space. In order to increase the information available to users, an additional six color samples were defined, including four highly chromatic red, yellow, green and blue samples, plus colors representing foliage and human skin respectively. Table 1 gives the complete list of CIE test colors. It also shows two synthetic grays that we added for display purposes.

After accounting for chromatic adaptation with a Von Kries correction [10], the difference in color ΔEi for each sample is calculated and used in the definition of that color's "Special CRI" as:

$$Ri = 100 - 4.6 \Delta E i \tag{1}$$

and the General CRI is the average of the first eight Ri values:

$$R\_{\mathfrak{a}} = \mathbf{1}/8 \sum\_{1}^{8} R\_{i} \tag{2}$$

A perfect score of 100 represents zero color difference in all of the eight samples under the test source and reference illuminant. We can note here that, in today's parlance, the CIE color rendering index Ra is more accurately termed a color fidelity

13 5 YR 8/4 Light yellowish pink (light human skin) 14 5 GY 4/4 Moderate olive green (leaf green)

No. Approximate Munsell notation Color appearance under daylight

 7.5 R 6/4 Light grayish red 5 Y 6/4 Dark grayish yellow 5 GY 6/8 Strong yellow green 2.5 G 6/6 Moderate yellowish green 10 BG 6/4 Light bluish green 5 PB 6/8 Light blue 2.5 P 6/8 Light violet

Color Graphics in the Service of Light-Source Visualization and Design

DOI: http://dx.doi.org/10.5772/intechopen.81484

General format for color rendering/fidelity metrics.

8 10 P 6/8 Light reddish purple

 4.5 R 4/13 Strong red 5 Y 8/10 Strong yellow 4.5 G 5/8 Strong green 3 PB 3/11 Strong blue

15 Synthetic Dark gray 16 Synthetic Light gray

Table 1.

13

Figure 2.

CIE test color samples.

Color Graphics in the Service of Light-Source Visualization and Design DOI: http://dx.doi.org/10.5772/intechopen.81484

#### Figure 2.

2.2 Color rendering and fidelity

Computer Graphics and Imaging

in assessing other newer sources, particularly LEDs.

ble, most often 380–780 nm at either 5-nm or 1-nm intervals.

shows two synthetic grays that we added for display purposes.

and the General CRI is the average of the first eight Ri values:

designated three-dimensional color spaces.

instance.

12

the individual systems.

that color's "Special CRI" as:

2.3 The CIE 13.3-1995 (CRI) method

Coming now to color rendering, the three previously-mentioned systems (represented by the indices Ra, Qa, and Rf respectively) have a number of elements in common as well as their own distinct features. Their most important common feature is that they all produce scales in which the maximum is 100 for the "best" sources. The Ra scale is open-ended at its lower end, and can run to negative values, whereas the other scales terminate at zero. The Ra scale was originally designed to provide a measure of the relative merits of the fluorescent-tube sources being widely adopted in the 1960s; and the other two scales have been normalized in the sense that they have been scaled to provide the same index values for the original set of fluorescents. The two later scales do, however, diverge considerably from Ra

The next main factor they share is that they are all based on the comparison of sets of test colors which are illuminated in turn by a test light source and a reference source of the same CCT. In all three cases the reference sources are chosen as Planckian radiators if the CCT < 5000 K or a CIE Daylight illuminant if CCT ≥ 5000 K. Note, however, that there is a modification in the case of the TM-30-15 (Rf) system, in which there is a graded transition between the two types of reference for the range 4500–5500 K. In all these systems, the color differences are computed in (different)

It should be noted that, in all three approaches, the colors and color differences are computed numerically, using the measured SPDs of test sources and the defined SPDs of the reference illuminants. The various color samples are numerically defined by means of measurements of their spectral reflectances. The wavelength ranges and wavelength intervals of the SPDs and reflectances have to be compati-

Another common feature is that each of these systems incorporates a chromatic adaptation transform since it is generally not possible to achieve identity of CCTs for the test and reference sources—but there are different transforms in use in each

Figure 2 summarizes the above features, showing the general format of the algorithm for a color rendering or fidelity metric. We next look at the specifics of

In this system [6] the color rendering index (CRI) is based on the average colordifference of eight medium-chroma color samples, calculated in the (now deprecated) CIE 1964 U\*V\*W\* color space. In order to increase the information available to users, an additional six color samples were defined, including four highly chromatic red, yellow, green and blue samples, plus colors representing foliage and human skin respectively. Table 1 gives the complete list of CIE test colors. It also

After accounting for chromatic adaptation with a Von Kries correction [10], the difference in color ΔEi for each sample is calculated and used in the definition of

Ra <sup>¼</sup> <sup>1</sup>=8∑<sup>8</sup>

Ri ¼ 100 � 4:6ΔEi (1)

<sup>1</sup>Ri (2)

General format for color rendering/fidelity metrics.


#### Table 1.

CIE test color samples.

A perfect score of 100 represents zero color difference in all of the eight samples under the test source and reference illuminant. We can note here that, in today's parlance, the CIE color rendering index Ra is more accurately termed a color fidelity

#### Computer Graphics and Imaging

index since it gives a measure of the degree of departure from perfect agreement between the colors of surfaces under test and reference lighting conditions.

As updates on this CIE method, the two more recently-developed methods have introduced more-accurate color spaces and chromatic adaptation transforms.

#### 2.4 The NIST (CQS) method

The following is a short summary of the main features of this method which was described in full, and contrasted with the CIE method, by Davis and Ohno in 2010 [7]. The first point of difference is in the choice of test color samples, where the CQS is based on 15 high-chroma colors selected to be representative of major significant hues. Next a new, widely-accepted chromatic adaptation transform (CMCCAT2000) [11] has been adopted. Color differences for the 15 sample colors are computed in the CIELAB (L\*a\*b\*) (CIE 1976) color space [4].

Each color difference is then modified by a saturation factor, such that a test source that increases object chroma is not penalized. To ensure that poor rendering of any color is given sufficient weight, the differences for the 15 samples are combined by a root-mean-square "averaging" method, to give the overall color difference, ΔErms. The "rms average" score for the 15 sample colors is given by:

$$Q\_{a,rms} = \mathbf{100} - \mathbf{3.1} \Delta E\_{rms} \tag{3}$$

expanded range of test colors, 99 in all, representing samples from nature, human skin, textiles, paints, plastics, printed materials, and published color systems. They are termed color evaluation samples (CES) which were selected on the basis of

The TM-30-15 method, in common with the other abovementioned methods, is based on the color differences between the test color samples under the test and reference sources, as determined in the CAM02-UCS color-difference space. These are averaged over all 99 samples, yielding the color fidelity index Rf, which has a range of 0–100, with 100 indicating an exact match with the reference, and 0 an extreme difference. In addition, the system computes a color gamut index Rg which indicates, on average, if there is an increase in color saturation (Rg > 100) or a

Our virtual imaging system (VIS) is a prototype that has been designed around a Matlab® GUI. The experiments were performed using MATLAB R2015b on a computer with Intel CPU TM i7-6700 at 3.41GHz and 32GB RAM. It is a powerful research/demonstration tool allowing the user to determine and display the color properties of light sources, such as color rendering index (Ra), correlated color temperature (CCT), RGB values for the displayed color samples, and comparisons

Figure 3 illustrates the basic structure, and Figure 4 shows the complete com-

2. A color-managed computer display system that incorporates the following

a. Creation and display of the required virtual images by running the

b.A color management system incorporating monitor calibration and

Figure 4 represents the color computation and display model. The color man-

1. Calculation of the CIE tristimulus values [X, Y, Z] from a knowledge of the light source spectrum and the reflectance spectrum of the surface color sample,

2. Measurement of monitor properties—specifically the primaries and the white

c. A color-appearance computation model, based on the CIECAM02 color

puter modeling and display system which includes the following features:

1. A spectral measurement system to measure SPDs (spectral power distributions) of light sources and spectral reflectances of surface color samples. In many instances such data can also be obtained from published

uniformity of both color space and wavelength sampling.

Color Graphics in the Service of Light-Source Visualization and Design

DOI: http://dx.doi.org/10.5772/intechopen.81484

of sample color differences under different sources.

tables of SPDs and reflectances.

design features:

3.1 Color display model

as shown in Eq. (4).

15

Matlab® GUI.

display control.

appearance model.

agement process is described in steps 2–6 below:

point setting (usually a nominal 6500 K).

decrease (Rg < 100).

3. Visualization system

In order to avoid negative index values (which may occur in Ra with particularly poor sources) a log-exponential conversion is used. This is further modified by a CCT factor (using a 3rd order polynomial function of CCT) which is applied to reduce the scores of sources with CCT below 3500 K. The final output is Qa—the color quality scale (or CQS).

This system also includes a color fidelity scale termed Qf which provides a metric of object color fidelity, in a similar way to Ra in the CIE system. Qf is calculated using exactly the same procedures as for Qa, except that it excludes the saturation factor, and the scaling factor for Qf in Eq. (3) is changed to 2.93.

#### 2.5 The CIECAM02 color appearance model

A recent technical innovation is the development of the CAM02-UCS (uniform color space) [12], which is based on the CIECAM02 color appearance model [9], and is considered to be substantially better in uniformity than competitor color spaces. The CAM02-UCS also includes an improved chromatic adaptation transformation, which improves the accuracy of corrections when the comparison sources have slightly different chromaticities.

The CIECAM02 model uses a sequence of calculation steps (mostly non-linear) to derive a set of appearance attributes (lightness, chroma, and hue) that accord with human visual experience to describe the appearance of colored surfaces. The CAM02-UCS modifies the output of the process to enable the calculation of color differences that are accurate representations of perceived color difference. The details of the processes are not repeated here, and the interested reader is referred to the references [9, 12].

The proposed VIS system contains a "display CIE" button, which is able to display color appearance based on CIECAM02 model.

#### 2.6 The IES (TM-30-15) method

Here again, we give a short overview of the new method developed, in this case, by the IES of North America [8, 13]. This method makes use of a significantly

Color Graphics in the Service of Light-Source Visualization and Design DOI: http://dx.doi.org/10.5772/intechopen.81484

expanded range of test colors, 99 in all, representing samples from nature, human skin, textiles, paints, plastics, printed materials, and published color systems. They are termed color evaluation samples (CES) which were selected on the basis of uniformity of both color space and wavelength sampling.

The TM-30-15 method, in common with the other abovementioned methods, is based on the color differences between the test color samples under the test and reference sources, as determined in the CAM02-UCS color-difference space. These are averaged over all 99 samples, yielding the color fidelity index Rf, which has a range of 0–100, with 100 indicating an exact match with the reference, and 0 an extreme difference. In addition, the system computes a color gamut index Rg which indicates, on average, if there is an increase in color saturation (Rg > 100) or a decrease (Rg < 100).

## 3. Visualization system

index since it gives a measure of the degree of departure from perfect agreement between the colors of surfaces under test and reference lighting conditions.

introduced more-accurate color spaces and chromatic adaptation transforms.

are computed in the CIELAB (L\*a\*b\*) (CIE 1976) color space [4].

2.4 The NIST (CQS) method

Computer Graphics and Imaging

color quality scale (or CQS).

2.5 The CIECAM02 color appearance model

display color appearance based on CIECAM02 model.

have slightly different chromaticities.

2.6 The IES (TM-30-15) method

the references [9, 12].

14

As updates on this CIE method, the two more recently-developed methods have

The following is a short summary of the main features of this method which was described in full, and contrasted with the CIE method, by Davis and Ohno in 2010 [7]. The first point of difference is in the choice of test color samples, where the CQS is based on 15 high-chroma colors selected to be representative of major significant hues. Next a new, widely-accepted chromatic adaptation transform (CMCCAT2000) [11] has been adopted. Color differences for the 15 sample colors

Each color difference is then modified by a saturation factor, such that a test source that increases object chroma is not penalized. To ensure that poor rendering of any color is given sufficient weight, the differences for the 15 samples are combined by a root-mean-square "averaging" method, to give the overall color difference, ΔErms. The "rms average" score for the 15 sample colors is given by:

In order to avoid negative index values (which may occur in Ra with particularly poor sources) a log-exponential conversion is used. This is further modified by a CCT factor (using a 3rd order polynomial function of CCT) which is applied to reduce the scores of sources with CCT below 3500 K. The final output is Qa—the

This system also includes a color fidelity scale termed Qf which provides a metric of object color fidelity, in a similar way to Ra in the CIE system. Qf is calculated using exactly the same procedures as for Qa, except that it excludes the saturation factor, and the scaling factor for Qf in Eq. (3) is changed to 2.93.

A recent technical innovation is the development of the CAM02-UCS (uniform color space) [12], which is based on the CIECAM02 color appearance model [9], and is considered to be substantially better in uniformity than competitor color spaces. The CAM02-UCS also includes an improved chromatic adaptation transformation, which improves the accuracy of corrections when the comparison sources

The CIECAM02 model uses a sequence of calculation steps (mostly non-linear) to derive a set of appearance attributes (lightness, chroma, and hue) that accord with human visual experience to describe the appearance of colored surfaces. The CAM02-UCS modifies the output of the process to enable the calculation of color differences that are accurate representations of perceived color difference. The details of the processes are not repeated here, and the interested reader is referred to

The proposed VIS system contains a "display CIE" button, which is able to

Here again, we give a short overview of the new method developed, in this case,

by the IES of North America [8, 13]. This method makes use of a significantly

Q a,rms ¼ 100 � 3:1ΔErms (3)

Our virtual imaging system (VIS) is a prototype that has been designed around a Matlab® GUI. The experiments were performed using MATLAB R2015b on a computer with Intel CPU TM i7-6700 at 3.41GHz and 32GB RAM. It is a powerful research/demonstration tool allowing the user to determine and display the color properties of light sources, such as color rendering index (Ra), correlated color temperature (CCT), RGB values for the displayed color samples, and comparisons of sample color differences under different sources.

Figure 3 illustrates the basic structure, and Figure 4 shows the complete computer modeling and display system which includes the following features:

	- a. Creation and display of the required virtual images by running the Matlab® GUI.
	- b.A color management system incorporating monitor calibration and display control.
	- c. A color-appearance computation model, based on the CIECAM02 color appearance model.

#### 3.1 Color display model

Figure 4 represents the color computation and display model. The color management process is described in steps 2–6 below:


5. Application of the GOG model to transform the [R, G, B] values to screen

6.Calculation of the Matlab display RGB values [SR, SG, SB] from screen

X ¼ ∑ 780 nm 380

Y ¼ ∑ 780 nm 380

Z ¼ ∑ 780 nm 380

> 2 6 4

light source, Δλ = wavelength interval (usually 5 nm).

2 6 4

R G B

Note that, when the calibration steps included in this procedure are unavailable, it is still possible to obtain a useful display on any suitable monitor by the judicious use of the controls for gain (K1) and gamma that are part of the display GUI.

xλ:ρλ:Φλ:Δλ

yλ:ρλ:Φλ:Δλ

(4)

zλ:ρλ:Φλ:Δλ

3 7 5

2 6 4

] shown in Figure 4), Dn = normalized digital pixel value,

X Y Z

3 7

Ln <sup>¼</sup> ð Þ <sup>K</sup>1Dn <sup>þ</sup> <sup>K</sup><sup>2</sup> <sup>γ</sup> (6)

<sup>5</sup> (5)

where xλ, yλ, z<sup>λ</sup> are the CIE 1931 color matching functions, Φ<sup>λ</sup> = SPD of selected

m<sup>11</sup> m<sup>12</sup> m<sup>13</sup> m<sup>21</sup> m<sup>22</sup> m<sup>23</sup> m<sup>31</sup> m<sup>32</sup> m<sup>33</sup>

where Ln = normalized luminance of screen primary (representation of each of

γ = monitor gamma, K1 = monitor gain factor, K2 = monitor offset, and K1 + K2 = 1.

The present VIS is a prototype that was designed around the CIE Ra (CRI) system. It compares a selected set of surface colors, shown under any two light sources, selected from an expandable light-source data-base. This at present comprises about 50 different sources, including 6 CIE standard illuminants. The sources may be selected to be related (i.e. having similar CCT) or unrelated, at the users'

Figure 5 illustrates the operation of the system displaying 16 colors on each virtual color chart. The 16 test colors shown here are the 14 CIE test colors [6] listed in Table 1, with the addition of two synthetic neutral gray colors (outlined in red in Figure 5). In this image, the left half-screen simulates their appearance under tungsten filament (illuminant A) lighting, and the right half is under D65 daylight. The spectral reflectances of the test colors are given in the wavelength range 380–780 nm. Figure 6 shows the use of the Plot Reflectances window to display the reflectances for current selection of test colors (in this case, the 14 defined by CIE).

The existing computer model contains two light source menus, each of which gives a list of the illuminants in the data base. They are divided into the seven groups listed below (with the origins of the current examples shown in brackets):

], as shown in Eq. (6).

DOI: http://dx.doi.org/10.5772/intechopen.81484

Color Graphics in the Service of Light-Source Visualization and Design

[R0 , G0 , B0

[R0 , G0 , B0 ].

the quantities [R<sup>0</sup>

choice.

17

, G<sup>0</sup> , B<sup>0</sup>

3.2 Selection of colors for display

3.3 Selection of illuminants

## Figure 4.


Color Graphics in the Service of Light-Source Visualization and Design DOI: http://dx.doi.org/10.5772/intechopen.81484


Note that, when the calibration steps included in this procedure are unavailable, it is still possible to obtain a useful display on any suitable monitor by the judicious use of the controls for gain (K1) and gamma that are part of the display GUI.

$$\begin{aligned} X &= \sum\_{\lambda \80}^{780 \, nm} \overline{x}\_{\lambda} . \rho\_{\lambda} . \Phi\_{\lambda} . \Delta \lambda \\ Y &= \sum\_{\lambda \80}^{780 \, nm} \overline{y}\_{\lambda} . \rho\_{\lambda} . \Phi\_{\lambda} . \Delta \lambda \end{aligned} \tag{4}$$
 
$$\begin{aligned} Z &= \sum\_{\lambda \80}^{780 \, nm} \overline{z}\_{\lambda} . \rho\_{\lambda} . \Phi\_{\lambda} . \Delta \lambda \end{aligned}$$

where xλ, yλ, z<sup>λ</sup> are the CIE 1931 color matching functions, Φ<sup>λ</sup> = SPD of selected light source, Δλ = wavelength interval (usually 5 nm).

$$
\begin{bmatrix} R \\ G \\ B \end{bmatrix} = \begin{bmatrix} m\_{11} & m\_{12} & m\_{13} \\ m\_{21} & m\_{22} & m\_{23} \\ m\_{31} & m\_{32} & m\_{33} \end{bmatrix} \begin{bmatrix} X \\ Y \\ Z \end{bmatrix} \tag{5}
$$

$$L\_n = (K\_1 D\_n + K\_2)^r \tag{6}$$

where Ln = normalized luminance of screen primary (representation of each of the quantities [R<sup>0</sup> , G<sup>0</sup> , B<sup>0</sup> ] shown in Figure 4), Dn = normalized digital pixel value, γ = monitor gamma, K1 = monitor gain factor, K2 = monitor offset, and K1 + K2 = 1.

#### 3.2 Selection of colors for display

The present VIS is a prototype that was designed around the CIE Ra (CRI) system. It compares a selected set of surface colors, shown under any two light sources, selected from an expandable light-source data-base. This at present comprises about 50 different sources, including 6 CIE standard illuminants. The sources may be selected to be related (i.e. having similar CCT) or unrelated, at the users' choice.

Figure 5 illustrates the operation of the system displaying 16 colors on each virtual color chart. The 16 test colors shown here are the 14 CIE test colors [6] listed in Table 1, with the addition of two synthetic neutral gray colors (outlined in red in Figure 5). In this image, the left half-screen simulates their appearance under tungsten filament (illuminant A) lighting, and the right half is under D65 daylight.

The spectral reflectances of the test colors are given in the wavelength range 380–780 nm. Figure 6 shows the use of the Plot Reflectances window to display the reflectances for current selection of test colors (in this case, the 14 defined by CIE).

#### 3.3 Selection of illuminants

The existing computer model contains two light source menus, each of which gives a list of the illuminants in the data base. They are divided into the seven groups listed below (with the origins of the current examples shown in brackets):

3. Computing the elements mi,j (see Eq. (5)) for the monitor's display matrix by

4.Computing the [R, G, B] values for a selected color sample under a specific source from the corresponding CIE [X, Y, Z] values as shown in Eq. (5).

using the data from step 2.

Color management and display process.

Figure 4.

16

Figure 3. Surface color model.

Computer Graphics and Imaging


The illuminants in groups 1–4 are published by CIE [4]. The others have been digitized from their SPD graphs for the range 380–780 nm at 5 nm interval [14, 15].

The system includes a window for the display of the currently selected illuminant spectra as shown in Figure 7.

## 3.4 Monitor calibration

The majority of displays today are designed on the assumption of 24-bit color (i.e. 8 bits per color channel) and conform with the sRGB standard. This standard (also known as IEC 61966-2-1:1999) uses the ITU-R BT.709 primaries together with a display gamma of 2.2. It was developed at a time of dominance of the display market by CRTs, but makers of LCD and OLED screens have also adopted it (by applying appropriate signal-processing techniques) for the sake of uniformity in the industry.<sup>3</sup>


<sup>3</sup> The interested reader may wish to refer to the following commercial website that also contains a good description of the characteristics of modern monitors, and methods of measurement/calibration: http:// www.displaymate.com/.

The display controls in our VIS have been provided to compensate for variations that can occur in individual monitors, and will give best results with a calibrated monitor (i.e. one with known characteristics). These controls may also be used to

Plot SPDs window displaying current selection of illuminants. Shown here: CIE fluorescent lamp F1 6430 K

Plot Reflectances window displaying the current selection of test colors. Shown here: reflectances for the 14 CIE

Color Graphics in the Service of Light-Source Visualization and Design

DOI: http://dx.doi.org/10.5772/intechopen.81484

Figure 7.

19

Figure 6.

test colors.

(red line) and CIE daylight D65 6500 K (blue).

Color Graphics in the Service of Light-Source Visualization and Design DOI: http://dx.doi.org/10.5772/intechopen.81484

#### Figure 6.

1. CIE standard illuminants (A, C, D50, D55, D65 and D75)

3. Early-generation fluorescent lamps (CIE tables FL1-FL12)

4.Later-generation fluorescent lamps (CIE tables FL3.1-FL3.15)

6.Optimized 3-, 4-, 5-, 6- and 7-band LEDs (developed by the authors using

7. Luxeon white LED sources, 3016, 4000, 4100, 5500 and 6500 K LEDs [15].

The illuminants in groups 1–4 are published by CIE [4]. The others have been digitized from their SPD graphs for the range 380–780 nm at 5 nm interval [14, 15]. The system includes a window for the display of the currently selected illumi-

The majority of displays today are designed on the assumption of 24-bit color (i.e. 8 bits per color channel) and conform with the sRGB standard. This standard (also known as IEC 61966-2-1:1999) uses the ITU-R BT.709 primaries together with a display gamma of 2.2. It was developed at a time of dominance of the display market by CRTs, but makers of LCD and OLED screens have also adopted it (by applying appropriate signal-processing techniques) for the sake of uniformity in the

2. High pressure discharge lamps (CIE Tables H1-H5)

Main display window of the VIS showing illuminant a (left) and D65 (right).

The interested reader may wish to refer to the following commercial website that also contains a good description of the characteristics of modern monitors, and methods of measurement/calibration: http://

5. New LED 1, New LED 2, New LED 3

published data [14])

Computer Graphics and Imaging

nant spectra as shown in Figure 7.

3.4 Monitor calibration

industry.<sup>3</sup>

Figure 5.

www.displaymate.com/.

3

18

Plot Reflectances window displaying the current selection of test colors. Shown here: reflectances for the 14 CIE test colors.

#### Figure 7.

Plot SPDs window displaying current selection of illuminants. Shown here: CIE fluorescent lamp F1 6430 K (red line) and CIE daylight D65 6500 K (blue).

The display controls in our VIS have been provided to compensate for variations that can occur in individual monitors, and will give best results with a calibrated monitor (i.e. one with known characteristics). These controls may also be used to

#### Figure 8.

Test images of CIE samples under D65 illumination, with gamma = 1.8. (a) K1 = 1.0. (b) K1 = 1.2.

"tweak" any uncalibrated display by following a systematic trial-and error process while displaying the 16 defined colors in both halves of the screen, and paying particular attention to the appearance of the Dark Gray and Light Gray patches.

Monitor calibration is a necessary step for the accurate rendition of the sample colors on the computer display. It was decided that this project would (at least initially) make use of CRT (cathode ray tube) monitors since there is a wellestablished body of literature on CRT transfer functions [16], as summarized in Eq. (6). Part of the setting-up procedure allows users to select the preferred gamma and gain (K1) values, normally close to 2.2 for gamma and 1.0 for gain. The adjustment of these settings will allow the user to optimize most modern color monitors for display purposes, but—as mentioned—calibration is required in critical applications.

use of a somewhat complex series of non-linear transformations described in the CIE specification [9]. A number of parameters are used to model the viewing conditions experienced by the observers, as outlined below. These in turn are used to define the exact form of the non-linear relationships in the model. The procedure

Color Graphics in the Service of Light-Source Visualization and Design

DOI: http://dx.doi.org/10.5772/intechopen.81484

In order to provide an analogy to the widely-used CIELAB (L\*, a\*, b\*) color coordinates, it is possible to define the appearance coordinates [J, aC, bC] using the transformations of chroma C and hue h given in Eqs. (6). Note, however, that the CIECAM02 coordinates are considered to provide a more accurate model of visual

aC ¼ C: cosð Þ h

In using the CIECAM02 model, it is necessary to define the following viewing

• Yb—the relative luminance of the source background in the source conditions.

• c—the impact of the surround = 0.69 for average surround, or = 0.59 for dim

• Nc—the chromatic induction factor = 1.0 for average surround, or = 0.9 for dim

bC <sup>¼</sup> <sup>C</sup>:sin ð Þ <sup>h</sup> (7)

is outlined schematically in Figure 9.

conditions:

Figure 9.

Color display appearance model.

surround.

surround.

21

experience than the earlier CIELAB model.

• LA—the adapting field luminance.

Figure 8 shows two examples to illustrate the use of the display settings for user-control of the display. Figure 8(b) shows the effects of a bad adjustment of the controls.

### 4. The CIECAM02 color appearance model

One purpose of the original design was to investigate the correlation between the computed color differences and the subjectively-judged color differences as seen by a set of observers viewing the display on a calibrated monitor. For that reason, the sample colors can be computed in the CIECAM02 color appearance model, the origins and applications of which are explained in the relevant CIE technical report [9].

As seen in Figure 4, the system will normally be holding the [R<sup>0</sup> ,G<sup>0</sup> ,B<sup>0</sup> ] values for each of the sample colors being displayed. In the usual operating mode, these colors are computed separately for both the test and reference sources. The opportunity therefore exists to calculate the color appearance attributes for corresponding pairs of samples (being displayed for the two different sources).

The CIECAM02 model computes the color appearance of each sample in terms of the appearance attributes [J, C, h] representing the lightness, chroma and hue, respectively. These are calculated from the CIE-1931 tristimulus values [X, Y, Z] by Color Graphics in the Service of Light-Source Visualization and Design DOI: http://dx.doi.org/10.5772/intechopen.81484

Figure 9. Color display appearance model.

"tweak" any uncalibrated display by following a systematic trial-and error process while displaying the 16 defined colors in both halves of the screen, and paying particular attention to the appearance of the Dark Gray and Light Gray patches. Monitor calibration is a necessary step for the accurate rendition of the sample colors on the computer display. It was decided that this project would (at least initially) make use of CRT (cathode ray tube) monitors since there is a wellestablished body of literature on CRT transfer functions [16], as summarized in Eq. (6). Part of the setting-up procedure allows users to select the preferred gamma

Test images of CIE samples under D65 illumination, with gamma = 1.8. (a) K1 = 1.0. (b) K1 = 1.2.

and gain (K1) values, normally close to 2.2 for gamma and 1.0 for gain. The adjustment of these settings will allow the user to optimize most modern color monitors for display purposes, but—as mentioned—calibration is required in criti-

4. The CIECAM02 color appearance model

Figure 8 shows two examples to illustrate the use of the display settings for user-control of the display. Figure 8(b) shows the effects of a bad adjustment of

One purpose of the original design was to investigate the correlation between the computed color differences and the subjectively-judged color differences as seen by a set of observers viewing the display on a calibrated monitor. For that reason, the sample colors can be computed in the CIECAM02 color appearance model, the origins and applications of which are explained in the relevant CIE technical

each of the sample colors being displayed. In the usual operating mode, these colors are computed separately for both the test and reference sources. The opportunity therefore exists to calculate the color appearance attributes for corresponding pairs

The CIECAM02 model computes the color appearance of each sample in terms of the appearance attributes [J, C, h] representing the lightness, chroma and hue, respectively. These are calculated from the CIE-1931 tristimulus values [X, Y, Z] by

,G<sup>0</sup> ,B<sup>0</sup> ] values for

As seen in Figure 4, the system will normally be holding the [R<sup>0</sup>

of samples (being displayed for the two different sources).

cal applications.

the controls.

Figure 8.

Computer Graphics and Imaging

report [9].

20

use of a somewhat complex series of non-linear transformations described in the CIE specification [9]. A number of parameters are used to model the viewing conditions experienced by the observers, as outlined below. These in turn are used to define the exact form of the non-linear relationships in the model. The procedure is outlined schematically in Figure 9.

In order to provide an analogy to the widely-used CIELAB (L\*, a\*, b\*) color coordinates, it is possible to define the appearance coordinates [J, aC, bC] using the transformations of chroma C and hue h given in Eqs. (6). Note, however, that the CIECAM02 coordinates are considered to provide a more accurate model of visual experience than the earlier CIELAB model.

$$\begin{aligned} a\_C &= \text{C.} \cos\left(h\right) \\ b\_C &= \text{C.} \sin\left(h\right) \end{aligned} \tag{7}$$

In using the CIECAM02 model, it is necessary to define the following viewing conditions:


• F—the factor for the degree of adaptation = 1.0 for average surround, or = 0.9 for dim surround.

Acknowledgements

DOI: http://dx.doi.org/10.5772/intechopen.81484

facilities available.

Conflict of interest

Author details

of Technology, China

Lulu Wang<sup>1</sup>

23

of the content of this chapter.

The majority of the work underlying this chapter was carried out at the Institute of Biomedical Technologies of the Auckland University of Technology. The authors are indebted to the Institute's director, Professor Ahmed Al Jumaily, for making the

This work was supported by the National Natural Science Foundation of China (Grant No. 61701159), the Natural Science Foundation of Anhui Province (Grant No. 101413246, JZ2017AKZR0129), the Fundamental Research Funds for the Central Universities (JZ2018HGTB0236), the funding from Hefei University of Technology (JZ2018HGTB0236), and the Foundation for Oversea Master Project from

The authors declare that there is no conflict of interest regarding the publication

1 School of Instrument Science and Opto-Electronics Engineering, Hefei University

© 2018 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/ by/3.0), which permits unrestricted use, distribution, and reproduction in any medium,

Ministry of Education, China (Grant No. 2160311028).

Color Graphics in the Service of Light-Source Visualization and Design

\* and Andrew N. Chalmers<sup>2</sup>

2 Auckland University of Technology, Auckland, New Zealand

\*Address all correspondence to: luluwang2015@hfut.edu.cn

provided the original work is properly cited.

The CIE specification gives guidance on the assignment of numerical values to all these factors, and more detailed guidelines are available in the literature [17]. Actual luminance measurements are usually not essential; however they will assist in making the model's predictions more precise. The VIS system contains RGB function windows, which are able to get a readout of the appearance coordinates [J, aC, bC] by use of the "display CIE" button.

## 5. Conclusions

A virtual imaging system has been successfully developed and prototyped, with the following outcomes.

	- Set up monitors for display.
	- Select light sources (from the expandable data-base of illuminants).
	- View and compare the test color images for various test light sources.
	- Compute Ra and CCT of the test light source.
	- Compute the [RGB] values of each displayed color sample under different light sources.
	- Compute CIECAM02 color appearance attributes for each displayed sample.

This system can be used as a powerful tool for color rendering research, utilizing the virtual display of a set of surface colors under any pair from a range of illuminants, including older-generation light sources as well as modern high output LEDs. In addition, the designed VIS has the potential to become a useful educational tool for better understanding of color rendering among users of lighting systems and computer graphics systems.

It will also serve as a valuable educational tool to promote a better understanding of color rendering/fidelity among the users of lighting systems.

The system has been designed to facilitate the addition of new data, such as SPDs for new light sources, or additional spectral reflectances for new test colors, once the appropriate measurements are available.

Color Graphics in the Service of Light-Source Visualization and Design DOI: http://dx.doi.org/10.5772/intechopen.81484

## Acknowledgements

• F—the factor for the degree of adaptation = 1.0 for average surround, or = 0.9

The CIE specification gives guidance on the assignment of numerical values to all these factors, and more detailed guidelines are available in the literature [17]. Actual luminance measurements are usually not essential; however they will assist in making the model's predictions more precise. The VIS system contains RGB function windows, which are able to get a readout of the appearance coordinates

A virtual imaging system has been successfully developed and prototyped, with

1. A color-managed computer display system that allows the user to utilize the

• Select light sources (from the expandable data-base of illuminants).

• View and compare the test color images for various test light sources.

2. An SPD display system has been developed to allow the user to view the SPDs

3. A spectral reflectance display system has been developed to allow the user to

• Compute the [RGB] values of each displayed color sample under different

• Compute CIECAM02 color appearance attributes for each displayed

This system can be used as a powerful tool for color rendering research, utilizing the virtual display of a set of surface colors under any pair from a range of illuminants, including older-generation light sources as well as modern high output LEDs. In addition, the designed VIS has the potential to become a useful educational tool for better understanding of color rendering among users of lighting systems and

It will also serve as a valuable educational tool to promote a better understanding

The system has been designed to facilitate the addition of new data, such as SPDs for new light sources, or additional spectral reflectances for new test colors, once

for dim surround.

Computer Graphics and Imaging

5. Conclusions

the following outcomes.

following design features:

• Set up monitors for display.

of test and reference light sources.

view the reflectance of each color sample.

• Compute Ra and CCT of the test light source.

of color rendering/fidelity among the users of lighting systems.

4.Additional facilities provided:

light sources.

sample.

computer graphics systems.

22

the appropriate measurements are available.

[J, aC, bC] by use of the "display CIE" button.

The majority of the work underlying this chapter was carried out at the Institute of Biomedical Technologies of the Auckland University of Technology. The authors are indebted to the Institute's director, Professor Ahmed Al Jumaily, for making the facilities available.

This work was supported by the National Natural Science Foundation of China (Grant No. 61701159), the Natural Science Foundation of Anhui Province (Grant No. 101413246, JZ2017AKZR0129), the Fundamental Research Funds for the Central Universities (JZ2018HGTB0236), the funding from Hefei University of Technology (JZ2018HGTB0236), and the Foundation for Oversea Master Project from Ministry of Education, China (Grant No. 2160311028).

## Conflict of interest

The authors declare that there is no conflict of interest regarding the publication of the content of this chapter.

## Author details

Lulu Wang<sup>1</sup> \* and Andrew N. Chalmers<sup>2</sup>

1 School of Instrument Science and Opto-Electronics Engineering, Hefei University of Technology, China

2 Auckland University of Technology, Auckland, New Zealand

\*Address all correspondence to: luluwang2015@hfut.edu.cn

© 2018 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/ by/3.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

## References

[1] Commission Internationale de l'Eclairage. International Lighting Vocabulary. CIE publication DIS 017/E: 2016. Vienna: CIE; 2017

[2] Wyszecki G, Stiles WS. Color Science —Concepts and Methods, Quantitative Data and Formulae. 2nd ed. New York: John Wiley & Sons; 1982. p. 184

[3] Wyszecki G, Stiles WS. Color Science —Concepts and Methods, Quantitative Data and Formulae. 2nd ed. New York: John Wiley & Sons; 1982. pp. 130-143

[4] Commission Internationale de l'Eclairage. Colorimetry. CIE Publication 15.3. 3rd ed. Vienna: CIE; 2003

[5] Illuminating Engineering Society of North America. Official Version Of Excel Worksheet, Available with Purchase of the IES TM-30-15 Technical Memorandum. 2015. Available from: http://www.ies.org/redirect/tm-30/ [Accessed: Nov 20, 2015]

[6] Commission Internationale de l'Eclairage. Method of Measuring and Specifying Colour Rendering Properties of Light Sources. CIE Publication 13.3. Vienna: CIE; 1995

[7] Davis W, Ohno Y. Color quality scale. Optical Engineering. 2010;49(3): 1-16. Article ID: 033602. DOI: 10.1117/ 1.3360335

[8] Illuminating Engineering Society of North America. IES Method for Evaluating Light Source Color Rendition. Technical Memorandum TM-30-15. New York: Illuminating Engineering Society; 2015

[9] Commission Internationale de l'Eclairage. A Colour Appearance Model for Colour Management Systems: CIECAM02. CIE Publication 159. Vienna: CIE; 2004

[10] Wyszecki G, Stiles WS. A Colour Appearance Model for Colour Management Systems: CIECAM02. CIE Publication 159. Vienna: CIE; 2004. pp. 429-432

Chapter 3

Abstract

and Refraction

generated images are the same as the real ones.

generated by reflection and/or refraction.

cubed glass, cylindrical glass

1. Introduction

25

Nobuhiko Mukai

Analytical Method for Reflection

In computer graphics, ray tracing is very simple and powerful method to present physical phenomena especially light-related things such as reflection and refraction since it traces the ray from the eye to the light source; however, we cannot understand how the result image is generated. Then, this chapter describes the mechanism of reflection and refraction. It is very time-consuming to render the target object considering reflection and refraction. If the object distorted by reflection and refraction is previously obtained, it is very fast to generate the result image since all we have to do is to render the distorted object without considering reflection and refraction. In the proposed method, firstly, a virtual object, which is constructed with vertices translated from original ones by considering reflection and refraction, is generated. Then, the image with reflection and refraction is generated by rendering the virtual object. In the analysis, total reflection and attenuation of light power are also considered. At last, the proposed method is applied to two types of transparent objects: cubed glass and cylindrical glass, and the comparison between the simulation results and the real photos is performed to demonstrate that the

Keywords: reflection, refraction, virtual object, total refection, ray tracing,

Computer graphics is a very powerful tool to visualize natural phenomena such as thunder with lighting, avalanche in blizzard, reflection on a glass window, and so on. Among them, one of the most challenging issues is to visualize optical-related phenomena such as reflection and refraction. Although ray tracing is the most powerful method, it takes huge amount of time to trace the ray that has emitted from a light source and reaches the eye through each pixel of an image. The method searches the trace by dividing it to two phenomena: reflection and refraction. It generates the image with a recursive process so that the image can be generated with a simple algorithm. However, the image generated on a glass by reflection and refraction is so complicated that we cannot understand which part of the image is

Then, this chapter describes an analytical method that draws an image generated on a geometrically defined object such as parallel glass, cubed glass, or cylindrical glass by reflection and/or refraction. The method analyzes the trace of the ray in a transparent object and generates a virtual object, which is constructed with vertices

[11] Li CJ, Luo MR, Rigg B, Hunt RWG. CMC 2000 chromatic adaptation transform: CMCCAT2000. Color Research & Application. 2002;27:49-58

[12] Luo MR, Cui G, Li C. Uniform colour spaces based on CIECAM02 colour appearance model. Color Research and Application. 2006;31: 320-330. DOI: 10.1002/col.20227

[13] U.S. Department of Energy Building Technologies Office. Solid-State Lighting Technology Fact Sheet— Evaluating Color Rendition Using IES TM-30-15. Available from: https://www. energy.gov/sites/prod/files/2015/12/f27/ tm-30\_fact-sheet.pdf [Accessed: Jul 3, 2018]

[14] Wang L, Chalmers AN. Highluminous efficacy light sources. In: BE Hons Mini-Conference. New Zealand: Department of Electrical & Electronic Engineering, Manukau Institute of Technology; 2007

[15] Lumileds Lighting. LUXEON® K2 Emitter. Technical Datasheet DS51, San Jose, Calif.: Lumileds Lighting US. LLC.; 2006

[16] Berns RS, Motta RJ, Gorzynski ME. CRT colorimetry. Part I: Theory and practice. Color Research and Application. 1993;18:299-314

[17] Moroney N, Fairchild MD, Hunt RWG, Li C, Luo MR, Newman T. The CIECAM02 Color Appearance Model. Available from: http://rit-mcsl.org/ fairchild/PDFs/PRO19.pdf [Accessed: Aug 24, 2018]

## Chapter 3

References

2003

[1] Commission Internationale de l'Eclairage. International Lighting Vocabulary. CIE publication DIS 017/E:

Computer Graphics and Imaging

[2] Wyszecki G, Stiles WS. Color Science —Concepts and Methods, Quantitative Data and Formulae. 2nd ed. New York: John Wiley & Sons; 1982. p. 184

[10] Wyszecki G, Stiles WS. A Colour

Management Systems: CIECAM02. CIE Publication 159. Vienna: CIE; 2004.

[11] Li CJ, Luo MR, Rigg B, Hunt RWG. CMC 2000 chromatic adaptation transform: CMCCAT2000. Color Research & Application. 2002;27:49-58

[12] Luo MR, Cui G, Li C. Uniform colour spaces based on CIECAM02 colour appearance model. Color Research and Application. 2006;31: 320-330. DOI: 10.1002/col.20227

[13] U.S. Department of Energy Building

Technologies Office. Solid-State Lighting Technology Fact Sheet— Evaluating Color Rendition Using IES TM-30-15. Available from: https://www. energy.gov/sites/prod/files/2015/12/f27/ tm-30\_fact-sheet.pdf [Accessed: Jul 3,

[14] Wang L, Chalmers AN. Highluminous efficacy light sources. In: BE Hons Mini-Conference. New Zealand: Department of Electrical & Electronic Engineering, Manukau Institute of

[15] Lumileds Lighting. LUXEON® K2 Emitter. Technical Datasheet DS51, San Jose, Calif.: Lumileds Lighting US. LLC.;

[16] Berns RS, Motta RJ, Gorzynski ME. CRT colorimetry. Part I: Theory and practice. Color Research and Application.

[17] Moroney N, Fairchild MD, Hunt RWG, Li C, Luo MR, Newman T. The CIECAM02 Color Appearance Model. Available from: http://rit-mcsl.org/ fairchild/PDFs/PRO19.pdf [Accessed:

Appearance Model for Colour

pp. 429-432

2018]

2006

Technology; 2007

1993;18:299-314

Aug 24, 2018]

[3] Wyszecki G, Stiles WS. Color Science —Concepts and Methods, Quantitative Data and Formulae. 2nd ed. New York: John Wiley & Sons; 1982. pp. 130-143

[4] Commission Internationale de l'Eclairage. Colorimetry. CIE

Publication 15.3. 3rd ed. Vienna: CIE;

[5] Illuminating Engineering Society of North America. Official Version Of Excel Worksheet, Available with

Purchase of the IES TM-30-15 Technical Memorandum. 2015. Available from: http://www.ies.org/redirect/tm-30/

[Accessed: Nov 20, 2015]

Vienna: CIE; 1995

1.3360335

[6] Commission Internationale de l'Eclairage. Method of Measuring and Specifying Colour Rendering Properties of Light Sources. CIE Publication 13.3.

[7] Davis W, Ohno Y. Color quality scale. Optical Engineering. 2010;49(3): 1-16. Article ID: 033602. DOI: 10.1117/

[8] Illuminating Engineering Society of North America. IES Method for Evaluating Light Source Color Rendition. Technical Memorandum TM-30-15. New York: Illuminating

Engineering Society; 2015

Vienna: CIE; 2004

24

[9] Commission Internationale de l'Eclairage. A Colour Appearance Model for Colour Management Systems: CIECAM02. CIE Publication 159.

2016. Vienna: CIE; 2017
