摘要
现有的颜色恒常性算法在常规场景中通常能获得准确、稳定的光源颜色估计结果,但在内容单一、具有大面积单一颜色表面的低颜色复杂度场景中仍有较大概率出现超容限的估测误差。利用设置于摄影镜头旁的环境光传感器,提出一种应用环境光传感器的颜色恒常性算法。首先建立传感器置信度评估模型,然后针对不同置信度设计基于颜色空间转换与基于传感器辅助中性色像素提取的两种光源颜色估计方法。此外,还建立包含传感器测量结果的数据集。测试结果表明,相比现有具有最高精度的同类算法,所提算法的角度误差均值、中位数、最差25%均值分别下降32%、21%、41%。所提算法应用于常规场景和低颜色复杂度场景时均具有优势。
Objective Color constancy is a fundamental characteristic of human vision that refers to the ability of correcting color deviations caused by a difference in illumination.However,digital cameras cannot automatically remove the color cast of the illumination,and the color bias is adjusted by correcting the image with illuminant estimation,generally executed by color constancy algorithms.As an essential part of image signal processing,color constancy algorithms are critical for improving image quality and accuracy of computer vision tasks.Substantial efforts have been made to develop illuminant estimation methods,resulting in the proliferation of statistical-and learningbased algorithms.The existing color constancy algorithms usually allow one to obtain accurate and stable illuminant estimation on conventional scenes.However,unacceptable errors may often arise on the low color complexity scenes with monotonous content and uniformly colored large surfaces due to the lack of hints about the illuminant color.To address these problems,this study proposes a color constancy algorithm with ambient light sensors(ALS)to improve the accuracy of illuminant estimation in scenes with low color complexity.This approach leverages the fact that most intelligent terminals are equipped with ALS,and can enhance illuminant estimation accuracy by using ALS measurements alongside the image content.Methods The color constancy algorithm proposed in this study comprises two steps.The first step involves evaluating the reliability of the ALS measurement using a confidence assessment model,based on which the illuminant estimation is performed using the appropriate method.The reliability of the ALS is affected by the relative position of the ALS and the light source.Therefore,a bagging tree classifier is trained to serve as the confidence assessment model,with the posture of the camera,the color complexity of the image,and Duv(distance from the black body locus)of the estimated illuminant chromaticity as input parameters.Two illuminant estimation methods are designed for different levels of confidence.When the confidence of the ALS measurement is high,the illuminant estimation is performed by color space transformation from the ALS response to camera RGB via a secondorder root polynomial model.This model is trained by minimizing the mean angular error of the training samples.Furthermore,if the ALS measurement has low confidence and the base algorithm has high confidence,illuminant estimation is performed by extracting neutral pixels using a mask determined by the ALS measurement and illuminant distribution characteristics based on the results of the existing neutral color extracting methods(Fig.2).Finally,if both the ALS measurement and base algorithm have low confidence,the illuminant color is obtained by averaging the results of the two methods mentioned above.To evaluate the proposed ALS based color constancy algorithm(ALSbased CC),a dataset was collected using a Nikon D3X camera mounted with TCS3440 ALS.The dataset includes both conventional and low color complexity scenes from indoors and outdoors(Fig.5),illuminated by light sources with a wide range of chromaticity(Fig.4).In each image of the dataset,a classic color checker was positioned as a label,which was masked out during the evaluation.Results and Discussions The confidence assessment model of the ALS is trained and tested using 50 and 20 samples,respectively,collected using the aforementioned setup.It is demonstrated that the confidence assessment model correctly identifies all of the low confidence testing samples,but misjudges some of the high confidence ones(Table 2).The ALSbased CC,whose parameters were determined based on the performance evaluated by statistics of angular error,is executed with Grey Pixels(GP)as the base algorithm for neutral pixel extraction.The performance of ALSbased CC is compared with statisticalbased counterparts using the established dataset.The results show that our proposed algorithm outperforms the counterparts in terms of the mean,trimean,and median of angular errors among the testing samples,indicating its overall high accuracy.Moreover,ALSbased CC achieves an angular error of less than 5°on the mean of the worst 25%of angular errors,demonstrating its excellent stability even in challenging scenes(Table 3).In terms of the visualization of typical scenes,ALSbased CC accurately estimates the illuminant most of the time,resulting in processed images that are largely consistent with the ground truth.However,all the counterparts perform poorly on some of the scenes with large pure color surfaces,resulting in quality degradation in their corrected images due to significant color bias(Fig.6).Furthermore,the operation time of ALSbased CC is reduced to 66%of GP on MATLAB 2021b,suggesting its potential for realtime illuminant estimation applications.Conclusions This study proposes a color constancy algorithm that integrates the ALS with the camera to improve illuminant estimation accuracy in scenes with low color complexity.The algorithm consists of a confidence assessment model for the ALS and two illuminant estimation methods based on color space transformation and neutral pixel extraction,designed for different confidence levels.Furthermore,a dataset with ALS measurement was established to evaluate the algorithm,and the results show that mean,median,and mean of worst 25%angular errors of the proposed method decrease by 32%,21%,and 41%,respectively,compared with the existing most accurate method.The proposed algorithm also has a potential for realtime illuminant estimation in both conventional and low color complexity scenes.
作者
李悦敏
徐海松
黄益铭
杨敏航
胡兵
张云涛
Li Yuemin;Xu Haisong;Huang Yiming;Yang Minhang;Hu Bing;Zhang Yuntao(State Key Laboratory of Modern Optical Instrumentation,College of Optical Science and Engineering,Zhejiang University,Hangzhou 310027,Zhejiang,China)
出处
《光学学报》
EI
CAS
CSCD
北大核心
2023年第14期310-317,共8页
Acta Optica Sinica
基金
中央高校基本科研业务费专项(S20220156)。
关键词
视觉光学
颜色恒常性
光源颜色估计
环境光传感器
中性色像素提取
低颜色复杂度场景
vision optics
color constancy
illuminant color estimation
ambient light sensor
neutral pixel extraction
scene with low color complexity