Computational Color Constancy Calculation Method for Spectral Imaging
HUANG Hao, LIAO Ning-fang*, ZHAO Chang-ming, WU Wen-min, FAN Qiu-mei
State Key Discipline Laboratory of Color Science and Engineering, School of Optics and Photonics, Beijing Institute of Technology, Beijing 100081, China
Abstract:Spectral imaging can record the spectral information of the scene to achieve high-fidelity color reproduction. The spectral image is usually mixed with the spectral information of the object and the light source information at the same time, so the existing color reproduction methods of spectral imaging need to obtain the light source information of the environment through the calibration target placed in advance or the object with known spectral characteristics, and then correct the color constancy of the image. However, it is usually difficult to meet the above conditions in the actual use of spectral cameras, which brings challenges for image high-fidelity color reproduction. A calculation method of image color constancy for spectral imaging was proposed. The spectral data obtained by the spectral imaging system were converted into the XYZ color space, and the image was divided into regions for statistics to get the statistical points of the image. According to the distribution rule of many common light sources, position weights and color temperature weights were applied to statistical points, and luminance weights were set to remove over-dark and over-saturated statistical points in the image. The chromaticity parameters of ambient light were obtained by weighted average. Moreover, the XYZ color space data of the image were converted to RGB color space according to the application requirements. The gains of different channels of the image were calculated according to the chromaticity parameters of ambient light to complete the spectral image’s color constancy calculation. In order to verify the effectiveness of the proposed algorithm, 140 spectral images were processed, and the reproduction angle error between the chromaticity of the ambient light obtained by the algorithm and the chromaticity of the real light source was calculated. The correction results showed that the proposed algorithm was better than the spectral images without processing and the Gray-world method. In order to further analyze the relationship between the algorithm correction results and human perception, a color psychophysics experiment was designed, 18 observers with normal vision participated in the experiment. The average score of all observers for the algorithm correction results was between good and excellent, which can meet the actual use needs. Along the direction of the average color temperature line, the chromaticity difference of the light source accepted by the observer was slightly larger than in other directions. When the image contained a large area of memory color, and the chromaticity of the light source shifted in a direction that increased the saturation of the memory color, the chromaticity difference accepted by the observer became larger. The results of objective and psychophysical experiments show that the proposed algorithm can deal with the image color constancy in spectral imaging well when the light source is unknown, and there is no calibration target, which lays a foundation for high-fidelity color reproduction of spectral images.
Key words:Spectral imaging; Camera; Color reproduction; Color constancy
[1] Khan H A, Thomas J B, Hardeberg J Y. Scandinavian Conference on Image Analysis. Springer, Cham, 2017: 459.
[2] Khan H A, Thomas J B, Hardeberg J Y, et al. Journal of Imaging Science and Technology, 2018, 62(2): 20504-1.
[3] Shrestha R, Hardeberg J Y. Optics Express, 2014, 22(8): 9123.
[4] HUANG Hong-lian, YI Wei-ning, DU Li-li, et al(黄红莲, 易维宁, 杜丽丽, 等). Infrared and Laser Engineering(红外与激光工程), 2016, 45(11): 1126002.
[5] WANG Hong, YANG Jian-feng, XUE Bin, et al(王 红, 杨建峰, 薛 彬, 等). Spectroscopy and Spectral Analysis(光谱学与光谱分析), 2018, 38(3): 877.
[6] Foster D H, Amano K. Journal of the Optical Society of America A: Optics and Image Science, and Vision, 2019, 36(4): 606.
[7] Dougherty E R. Digital Image Processing Methods. CRC Press, 2020.
[8] Kruisselbrink T, Dangol R, Rosemann A. Building and Environment, 2018, 138: 42.
[9] Morimoto T, Kusuyama T, Fukuda K, et al. Journal of Vision, 2021, 21(3): 7.
[10] Prasad D K, Wenhe L. Journal of the Optical Society of America A: Optics and Image Science, and Vision, 2015, 32(7): 1390.
[11] Hsu W Y, Cheng H C. IEEE Access, 2021, 9: 111925.