Publication Cover
LEUKOS
The Journal of the Illuminating Engineering Society
Volume 16, 2020 - Issue 3
15,724
Views
25
CrossRef citations to date
0
Altmetric
Articles

Tutorial: The LuxPy Python Toolbox for Lighting and Color Science

Pages 179-201 | Received 09 May 2018, Accepted 29 Aug 2018, Published online: 02 May 2019

Figures & data

Table 1. Overview of structure of the subpackages/modules in the LuxPy package.

Fig. 1. Output as generated by the plot() methods of classes SPD (top) and LAB (bottom).

Fig. 1. Output as generated by the plot() methods of classes SPD (top) and LAB (bottom).

Fig. 2. Plot of spectral data in REF.

Fig. 2. Plot of spectral data in REF.

Fig. 3. Monte Carlo–generated individual XYZ color matching functions.

Fig. 3. Monte Carlo–generated individual XYZ color matching functions.

Fig. 4. Output of plot_color_data().

Fig. 4. Output of plot_color_data().

Fig. 5. Plot of u’v’ coordinates of CIE TCS8 before (red circles) and after (blue diamonds) a von Kries CAT from a 3000 K blackbody radiator to CIE illuminant D65.

Fig. 5. Plot of u’v’ coordinates of CIE TCS8 before (red circles) and after (blue diamonds) a von Kries CAT from a 3000 K blackbody radiator to CIE illuminant D65.

Fig. 6. Plot of CIE TCS8 samples in CIECAM02 J, aM, bM. Red circles: default viewing conditions, blue diamonds: user-defined conditions.

Fig. 6. Plot of CIE TCS8 samples in CIECAM02 J, aM, bM. Red circles: default viewing conditions, blue diamonds: user-defined conditions.

Fig. 7. TM30-like graphic output of the color rendition properties of CIE illuminant F4. Top left: SPD with inline text of CCT, Duv, Rf, Rg, and Rt (metameric uncertainty index). Mid row, left: Rfhi index values for hue bins 1–16. Mid row, right: same but base color shifts predicted by a vector field model. Bottom row left and right: local hue hue and chroma shifts. Top right: color graphic icon. Bottom right: base color shifts predicted by a vector field model together with the Munsell-5 hue lines.

Fig. 7. TM30-like graphic output of the color rendition properties of CIE illuminant F4. Top left: SPD with inline text of CCT, Duv, Rf, Rg, and Rt (metameric uncertainty index). Mid row, left: Rfhi index values for hue bins 1–16. Mid row, right: same but base color shifts predicted by a vector field model. Bottom row left and right: local hue hue and chroma shifts. Top right: color graphic icon. Bottom right: base color shifts predicted by a vector field model together with the Munsell-5 hue lines.

Fig. 8. TM30-like graphic output of the color rendition properties of CIE illuminant F4. Similar to but with hue coloring turned off in the right graphs and with base color shift vectors overlayed with lines representing the distortion of concentric chroma circles due to the specific color rendition properties of the test light source. Hue shift information is represented by the width and coloring of the lines: wider, more reddish lines represent larger hue shifts.

Fig. 8. TM30-like graphic output of the color rendition properties of CIE illuminant F4. Similar to Fig. 7 but with hue coloring turned off in the right graphs and with base color shift vectors overlayed with lines representing the distortion of concentric chroma circles due to the specific color rendition properties of the test light source. Hue shift information is represented by the width and coloring of the lines: wider, more reddish lines represent larger hue shifts.

Fig. 9. Four monochromatic leds generated with spd_builder().

Fig. 9. Four monochromatic leds generated with spd_builder().

Fig. 10. Two phosphor-type and one monochromatic LED spectrum generated with spd_builder().

Fig. 10. Two phosphor-type and one monochromatic LED spectrum generated with spd_builder().

Fig. 11. Two phosphor-type LED spectra generated with spd_builder() for which the target chromaticity (CCT = 3500 K, Duv = 0) was inside the gamut spanned by its components.

Fig. 11. Two phosphor-type LED spectra generated with spd_builder() for which the target chromaticity (CCT = 3500 K, Duv = 0) was inside the gamut spanned by its components.

Fig. 12. Spectrum optimized from predefined, fixed component spectra for a CCT = 3500 K and IES TM30 Rf and Rg objective functions.

Fig. 12. Spectrum optimized from predefined, fixed component spectra for a CCT = 3500 K and IES TM30 Rf and Rg objective functions.

Fig. 13. Spectrum optimized from predefined, fixed component spectra for a CCT = 3500 K and IES TM30 Rf and Rg objective functions.

Fig. 13. Spectrum optimized from predefined, fixed component spectra for a CCT = 3500 K and IES TM30 Rf and Rg objective functions.

Fig. 14. Rendering results of simulated hyperspectral images. Top: using the 4000 K RGB LED test light source spectrum. Bottom: using the reference (D65) spectrum. A von Kries chromatic adaptation with degree of adaptation set to D = 1 has been applied.

Fig. 14. Rendering results of simulated hyperspectral images. Top: using the 4000 K RGB LED test light source spectrum. Bottom: using the reference (D65) spectrum. A von Kries chromatic adaptation with degree of adaptation set to D = 1 has been applied.