원시데이터 수집 시스템
선정목록으로

Multi illumination color constancy based on multi-scale supervision and single-scale estimation cascade convolution neural network

간접 관련 패션 · (24) 패션(코오롱FnC) (17) 스펀본드 부직포(3) 자동차 인테리어 소재

기본 정보

저자
  1. Fei Wang — State Key Laboratory of Advanced Design and Manufacturing for Vehicle Body, Hunan University, China|||School of Electronic Engineering, Xi'an Shiyou University, China
  2. Wei Wang — School of Telecommunications Engineering, Xidian University, China
  3. Dan Wu — School of Electronic Engineering, Xi'an Shiyou University, China
  4. Guowang Gao — School of Electronic Engineering, Xi'an Shiyou University, China
  5. Zetian Wang — School of Electronic Engineering, Xi'an Shiyou University, China
DOI
10.3389/fninf.2022.953235
저널
Frontiers in Neuroinformatics
발행년도
2022
발행기관
Frontiers Media
피인용수
4
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3389/fninf.2022.953235
토픽
Color Science and Applications
OpenAlex ID
W4312000300

평가 내용

관련도
간접 관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
(17) 스펀본드 부직포, (3) 자동차 인테리어 소재
R&D 측면
분석·모델링
확신도
0.60
근거 용어
color constancy, quality control of textiles, convolutional neural network, multi-illumination estimation
판단 근거
논문은 다중 조명 환경에서 색상을 일정하게 유지하는 알고리즘을 다루며, 서론에서 섬유 품질 관리(quality control of textiles)에 활용될 수 있음을 명시하고 있습니다.
R&D 활용 포인트
섬유 및 인공피혁 제품의 색상 검사 자동화 공정에서 조명 변화에 강건한 비전 검사 알고리즘 및 품질 관리 시스템 구축에 활용 가능합니다.
평가 입력
본문 53,640자 중 30,032자 발췌

초록

Color constancy methods are generally based on a simplifying assumption that the spectral distribution of a light source is uniform across scenes. However, in reality, this assumption is often violated because of the presence of multiple light sources, that is, more than two illuminations. In this paper, we propose a unique cascade network of deep multi-scale supervision and single-scale estimation (CN-DMS4) to estimate multi-illumination. The network parameters are supervised and learned from coarse to fine in the training process and estimate only the final thinnest level illumination map in the illumination estimation process. Furthermore, to reduce the influence of the color channel on the Euclidean distance or the pixel-level angle error, a new loss function with a channel penalty term is designed to optimize the network parameters. Extensive experiments are conducted on single and multi-illumination benchmark datasets. In comparison with previous multi-illumination estimation methods, our proposed method displays a partial improvement in terms of quantitative data and visual effect, which provides the future research direction in end-to-end multi-illumination estimation.

본문 53,640자

본문 펼치기
OPEN ACCESS EDITED BY Ludovico Minati, Tokyo Institute of Technology, Japan REVIEWED BY Kannimuthu Subramanian, Karpagam Academy of Higher Education, India Shaobing Gao, Sichuan University, China *CORRESPONDENCE Fei Wang [200102@xsyu.edu.cn](mailto:200102@xsyu.edu.cn) RECEIVED 26 May 2022 ACCEPTED 10 October 2022 PUBLISHED 09 December 2022 CITATION Wang F, Wang W, Wu D, Gao G and Wang Z (2022) Multi illumination color constancy based on multi-scale supervision and single-scale estimation cascade convolution neural network. _Front. Neuroinform._ 16:953235. [doi: 10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) COPYRIGHT © 2022 Wang, Wang, Wu, Gao and Wang. This is an open-access article distributed under the terms of the [Creative Commons Attribution License](http://creativecommons.org/licenses/by/4.0/) [(CC BY). The use, distribution or](http://creativecommons.org/licenses/by/4.0/) reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms. TYPE [Original Research](https://www.frontiersin.org/journals/neuroinformatics#editorial-board) PUBLISHED [09 December 2022](https://www.frontiersin.org/journals/neuroinformatics#editorial-board) DOI [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) # Multi illumination color constancy based on multi-scale supervision and single-scale estimation cascade convolution neural network Fei Wang <sup>1,2</sup> *, Wei Wang <sup>3</sup>, Dan Wu <sup>1</sup>, Guowang Gao <sup>1</sup> and Zetian Wang <sup>1</sup> 1School of Electronic Engineering, Xi’an Shiyou University, Xi’an, China, 2State Key Laboratory of Advanced Design and Manufacturing for Vehicle Body, Hunan University, Hunan, China, <sup>3</sup> School of Telecommunications Engineering, Xidian University, Xi’an, China Color constancy methods are generally based on a simplifying assumption that the spectral distribution of a light source is uniform across scenes. However, in reality, this assumption is often violated because of the presence of multiple light sources, that is, more than two illuminations. In this paper, we propose a unique cascade network of deep multi-scale supervision and single-scale estimation (CN-DMS4) to estimate multi-illumination. The network parameters are supervised and learned from coarse to fine in the training process and estimate only the final thinnest level illumination map in the illumination estimation process. Furthermore, to reduce the influence of the color channel on the Euclidean distance or the pixel-level angle error, a new loss function with a channel penalty term is designed to optimize the network parameters. Extensive experiments are conducted on single and multi-illumination benchmark datasets. In comparison with previous multi-illumination estimation methods, our proposed method displays a partial improvement in terms of quantitative data and visual effect, which provides the future research direction in end-to-end multi-illumination estimation. KEYWORDS color constancy, multi-illumination, convolution neural network, cascade, multiscale ## 1. Introduction With the rapid proliferation of digital imaging and digital video, accurate recording of the constant color of a scene from the device-captured image is of extreme importance for many practical applications, ranging from color-based object recognition and tracking to quality control of textiles (Funt et al., 1999; Vrhel et al., 2005; Gao et al., 2017, 2019). The color of an object is influenced by the illumination color and the observed color of an object in an image (representing the observed values in RGB space) depends on the intrinsic color and light-source color (Ebner, 2007). [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 01 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) Human color constancy (HCC) is a perceptual phenomenon that stabilizes the appearance of an object’s colors throughout changes in illumination. One possible-ecological justification for color constancy in mammals is to facilitate scene object recognition (Kraft and Brainard, 1999; Smithson, 2005). In Helmolt’s words: “Colors are mainly important for us as properties of objects and as means of identifying objects.” Then a mechanism that preserves the color appearance of objects will serve this purpose. As a perceptual phenomenon, all variables affecting color constancy lie in the content of the perceived scene, e.g., scene chromaticity, three dimensional information, object movement, and some others. All these factors are called visual cues (Jameson, 1989; Roca-Vila et al., 2009). Numerous tests of human perception of colored surfaces indicate a high level of perceptual constancy, in which the appearance of the surface is relatively little changed. However, endowing a computer with the same ability is difficult (Gilchrist, 2006; Roca-Vila et al., 2009). To assist a computer in solving this problem, our central problem is to estimate the real object’s color coordinates in some color space, which is called computational color constancy (CCC). Previous methods have mostly been limited to a singleillumination assumption. However, in reality, most scenes have more than one illumination. In multi-illumination scenes, each pixel in an image is influenced by different light sources, unlike that of single illumination. For example, in an image with shadows, there are at least two lights (the light colors of different degrees of shadow areas and normal sunlight areas are different). Therefore, research on multi-illumination color constancy (MCC) has more practical significance. However, fewer studies have been conducted on MCC than on single illumination. This is mainly because it is difficult to obtain datasets for multiple lighting conditions, especially for lighting colors requiring manual calibration of pixel-level accuracy. As with single illumination, MCC methods can be classified into optimization- and learning-based methods. Optimization-based methods: Land et al. first proposed the Retinex model (Brainard and Wandell, 1986; Land, 1986; Funt et al., 2004), which is the earliest theoretical model that can deal with the MCC problem. This theory is based on a series of psychological and physical experiments. The early purpose was not to estimate the illumination under multiple illumination conditions but to restore the relative reflectivity of objects in a scene. Barnard et al. (1997) proposed a model to deal with the MCC problem by detecting the change of illumination color in the scene. The model is patch-based and estimates the illumination of an image patch through singleillumination color constancy. Xiong and Funt (2006) used a diffusion technique in which a large-scale convolution kernel is used to filter the color-biased images in complex scenes. It is assumed that the images after convolution meet the local grayworld assumption. Although this method has achieved good results, it only uses simple convolution kernels that are easily affected by the real color of the object itself. For example, part of the obtained illumination map is the color of the object itself, rather than the illumination color. Learning-based methods: Like other data mining tasks, this method learns useful information from large amounts of data (Barnard et al., 2010; Kannimuthu et al., 2012; Arunkumar et al., 2019). Shi et al. (2016) and Bianco et al. (2017) used patchbased convolutional neural networks (CNNs) to estimate a single illumination for each patch. By inputting each patch into the network, the local illumination of all patches can be obtained. Afifi and Brown (2020) proposed an end-to-end approach to learning the correct white balance, which consists of a single encoder and multiple decoders, mapping an input image into two additional white-balance settings corresponding to indoor and outdoor illuminations. This method can also be used in multi-illumination estimation; however, our experiments show that it is very time-consuming. The abovementioned multi-illumination and singleillumination estimation methods have achieved good performance on some multi-illumination datasets. However, these methods may not find the optimal solution in some complex situations owing to their inflexibility. To summarize, there are still some unsolved open problems in these approaches, which can be generally summarized as two aspects: - Many of these methods (Xiong and Funt, 2006; Zeng et al., 2011; Mutimbu and Robles-Kelly, 2016) are implemented by clustering the illumination of local regions. However, the process of clustering is a difficult problem. If the illumination distribution in the scene is scattered, then it is difficult to obtain accurate illumination. In addition, the selection of region size is also a key problem. Inappropriate region size will reduce the accuracy of illumination estimation, and these methods are based on the traditional assumption of illumination estimation. If the region does not meet this assumption, the corresponding regional illumination estimation may be in error. - Most existing CNN-based single-illumination estimation methods used for multi-illumination estimation are timeconsuming (Barron, 2015; Shi et al., 2016; Bianco et al., 2017) when adopting the local image patches for estimation. In recent years, CNNs have been widely used, especially the fully convolutional networks for image pixel classification (Shelhamer et al., 2014; Yu and Koltun, 2015; Badrinarayanan et al., 2017) and image depth estimation (Eigen et al., 2014; Eigen and Fergus, 2015), to improve the estimation accuracy to a new level. In multi-illumination estimation, the pixellevel illumination is estimated from the original color-biased image, which is consistent with the image segmentation scene and depth estimation scene (Eigen et al., 2014; Shelhamer [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 02 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) et al., 2014; Yu and Koltun, 2015; Badrinarayanan et al., 2017). In this paper, we propose a cascade network of deep multiscale supervision and single-scale estimation to estimate multi-illumination (CN-DMS4) <sup>1</sup> . For training, the parameters are learned from coarse to fine and through different scales. In the test phase, only the illumination map of the thinnest level is estimated. The CN-DMS4 network differs from existing methods, and provides two contributions: - Multiscale supervision and single-scale estimation. The network is an end-to-end cascaded structure; the network parameters are supervised and learned from coarse to fine during the training process. Only the final thinnest level illumination map is estimated in the illumination estimation process. - A new loss function with a channel penalty term is designed to optimize the network parameters, which can solve the influence of color channels in the Euclidean distance or pixel-level angle error. The remainder of this paper is organized as follows. In Section 2, the structure of the proposed network and training strategy are presented. The experimental results are provided in Section 3. The conclusion is given in Section 4. ## 2. Multi-scale supervision and single-scale estimation in a cascade convolutional neural network Following the widely accepted simplified diagonal model (Finlayson et al., 1994; Funt and Lewis, 2000), we also use this model in our study. For multi-illumination estimation, we modify the diagonal model as follows: Ic(x, y) = Ec(x, y) × Rc(x, y), c ∈{r, g, b}, (1) where the illumination in the scene is Ec(x, y), (x, y) is the spatial position in an image, Ic(x, y) represents the image under unknown illumination, Ec(x, y) represents the illumination image, and Rc(x, y) represents the image under standard illumination. 2.1. Problem formulation As in the single-illumination estimate, we only know the image Ic(x, y) under an unknown light source Ec(x, y), which 1 We assume that there are multiple light sources in the scene and that the illumination of the multiple light sources is uniform. needs to be estimated. The goal of multi-illumination estimation is to estimate Ec(x, y) from Ic(x, y), and then compute it as Ec(x, y) = Ic(x, y)/Rc(x, y). To address the problem of estimating Ec(x, y) from Ic(x, y), we formulate it as a regression. A new color-space model, log - uv, has been used in color constancy methods (Finlayson et al., 2004; Barron, 2015; Shi et al., 2016) in recent years, and has certain advantages <sup>2</sup> . The calculation method is as follows: Lu = log(R/G), Lv = log(B/G), (2) After estimating the light, it can be converted back to the RGB space through a very simple formula: R = exp(−Lu)/z, G = 1/z, B = exp(−Lv)/z, where (Lu, Lv) is the image in the log - uv color space, and (R, G, B) is the image in the RGB color space. In this study, we first convert the RGB image Ic(x, y) to loguv image Iuv(x, y) = (Iu(x, y), Iv(x, y)). Our goal is to find a mapping f theta, such that fθ (Iuv) = Euv(x, y), where Euv(x, y) represents the illumination value at each (x, y) in the log - uv space; Euv(x, y) should be as close as possible to the real light at the position of (x, y). In this paper, we define f theta as a CNN model that is optimized by the parameter θ . Based on the semantic segmentation model, we define the network into the encoding and decoding parts. The encoding part performs the process of feature extraction, and the decoding part performs the process of remapping these features back to the image. We define the encoding process by Equation (4), and the decoding the process by Equation (5): Enc = ψ1(Iuv, θ1), (4) Dec = ψ2(Enc, θ2), (5) where ψ1 represents the network of the encoding process, θ1 indicates the parameters to be optimized in the encoding part, ψ2 represents the decoding process, and θ2 indicates the parameters to be optimized in the decoding part. In addition, refer to the idea in the literature (Mutimbu and Robles-Kelly, 2016), which uses a factor graph defined across the scale space of the input image and estimated the multiillumination at multiple scales from fine to coarse (i.e., the image becomes increasingly blur), the pixelwise illuminant can be viewed as the geometric mean of the illuminants across all 2 As demonstrated in the literature (Finlayson et al., 2004; Barron, 2015), log-uv has advantages over RGB. First, there are two variables instead of three. Second, the multiplicative constraint of the illumination estimation model is converted to a linear constraint. (3) z = �exp (−Lu) <sup>2</sup> + exp (−Lv) <sup>2</sup> + 1, [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 03 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) scales. In this paper, we also try to use a multiscale network to improve the estimation accuracy. The difference is that our method supervises and learns the parameters from coarse to fine (i.e., the image becomes increasingly clear). 2.2. Network architecture As introduced in the previous section, it is necessary to design a network structure that includes an encoding part ψ1 and decoding part ψ2. The network structure is shown in Figure 1. Encoding part of the network . In Figure 1, the encoding part indicates ψ1 in Equation 4. The encoding part is used to extract features, which are then input to the decoding part to estimate the illumination. In this part, we also used FIGURE 1 The network structure of CN-DMS4. AlexNet (Krizhevsky et al., 2017), VGGNet-16 (Simonyan and Zisserman, 2014), and VGGNet-19 (Simonyan and Zisserman, 2014), but the results showed little difference. Finally, we used the structure improved from AlexNet (Krizhevsky et al., 2017) containing 5 convolutions. We removed all the pooling layers and replaced them with a large stride of convolution kernels. All the layers use the convolution kernel of 3 × 3, and the stride of all the convolutions is set to 2. Decoding part of the network . In Figure 1, the decoding part indicates ψ2 in Equation 5. The decoding part is used to reconstruct the pixel-level illumination. However, conv6, conv7, conv8, and conv9 use the convolution kernel of 1 × 1 to reduce the dimension, while the others use the convolution kernel of 3×3 and the stride is set to 2. In the training phase, in addition to Ec, the Ec <sup>1</sup>, Ec <sup>3</sup>, and Ec <sup>3</sup> also participates in supervised learning. In the illumination estimation stage, illumination images at [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 04 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) different scales can be obtained, or only the final and the finest illumination can be obtained but the part marked by the green box in Figure 1 cannot participate in the calculation. 2.3. Loss function Our goal is to train a mapping function for generating an illumination image E(u, v) that is close to the ground-truth illumination image Et(u, v). Instead of minimizing the mean squared error between E(u, v) and Et(u, v) at each scale, we propose a variant of the L1. The overall loss function is defined as: S <u>�j=1</u> Loss = <sup><u>1</u></sup> N N <u>�i=1</u> ω(ω(E <sup>j</sup> u <sup>j</sup> <sup>−</sup> <sup>Ej</sup> u <sup>j</sup> _t <sup>) + ω(E</sup> v <sup>j</sup> v <sup>j</sup> <sup>−</sup> <sup>E</sup> v <sup>j</sup> v <sup>j</sup> _t <sup>)),</sup> (6) in Gao (2017), we use the single-illumination datasets Color Checker (Gehler et al., 2008) and NUS 8-Camera (Cheng et al., 2014) to render a large number of multi-illumination datasets. The operation process is as follows. First, the images are corrected to standard white light according to the illumination provided by the datasets. Next, multiple spatial positions are randomly generated on each image, and 3 − 8 different lighting colors are simulated, as shown in Figure 2A (the boundary is blurred). In addition, the following multi-illumination datasets collected in real scenes are used, respectively. The Gijsenij dataset (Arjan et al., 2012), is a multi-illumination dataset collected in a natural scene that includes 59 indoor and 9 outdoor multi-illumination images, and their corresponding illuminations. Figure 2B shows an indoor and an outdoor image from this database. The multiple-input multiple-output (MIMO) dataset (Beigpour et al., 2014) was established by Beigpour et al., which contains 57 indoor images and 21 outdoor images; it provides pixel-level illumination images. Figure 2C shows an indoor and an outdoor image from this database. The Bleier dataset (Bleier et al., 2011) was collected and established by Bleier et al. The dataset contains 36 high-quality images and corresponding illumination images obtained by nine different illuminations in four scenes. Figure 2D shows two images from the database. To enable the model to be used for single-light estimation, we added a single-light dataset, SFU Grayball dataset (Ciurea and Funt, 2003). In addition, we utilize horizontal and vertical mirroring, rotating at [90 <sup>o</sup>, 180 <sup>o</sup> ] and at [−60 <sup>o</sup>, 60 <sup>o</sup> ] every five degrees, whereeach batch, ω(x) S = indicates the scale of the cascade,�x <sup>2</sup> + ε <sup>2</sup>, N indicates the number of samples for Eu <sup>j</sup> <sup>, E</sup> v <sup>j</sup> <sup>represents</sup> where ω(x) = u <sup>j</sup> <sup>, E</sup> v <sup>j</sup> each batch, S indicates the scale of the cascade, Eu <sup>j</sup> <sup>, E</sup> v <sup>j</sup> <sup>represents</sup> the illumination in the log-uv space estimated by the model at the j scale, Eu <sup>j</sup> _t <sup>and E</sup> v <sup>j</sup> _t <sup>represents the ground truth at j scale,</sup> and ε takes the empirical value ε = 0.001. u <sup>j</sup> _t <sup>and E</sup> v <sup>j</sup> ## 3. Experimental results 3.1. Datasets There are only a few public multi-illumination datasets, and the number of images in the datasets is limited. In the phase of network training, more data is needed. Based on the dissertation FIGURE 2 [Images under multiple illuminations. From left to right: (A) Synthetic images; (B) Images from Gijsenij dataset: http://www.colorconstancy.com/](http://www.colorconstancy.com/wp-content/uploads/2014/10/multiple_light_sources_dataset.zip) [wp-content/uploads/2014/10/multiple_light_sources_dataset.zip Reproduced with permission from Arjan et al. (2012); (C) Images from MIMO](http://www.colorconstancy.com/wp-content/uploads/2014/10/multiple_light_sources_dataset.zip) [dataset available at: http://www5.cs.fau.de/research/data/two-illuminant-dataset-with-computed-ground-truth/. Reproduced with](http://www5.cs.fau.de/research/data/two-illuminant-dataset-with-computed-ground-truth/) [persmission from Beigpour et al. (2014); (D) Images from Bleier dataset available at: http://www5.cs.fau.de/research/data/multi-illuminant-](http://www5.cs.fau.de/research/data/multi-illuminant-dataset/index.html) [dataset/index.html. Reproduced with permission from Bleier et al. (2011).](http://www5.cs.fau.de/research/data/multi-illuminant-dataset/index.html) [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 05 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) M x�=1 respectively. At the same time, we scale the data from [0.6, 1.5] times to obtain a total of 14,500 real scene datasets. We selected 5,000 images from the real multi-illumination dataset, 4,000 from the dataset that we constructed as training data, 3,000 from SFU Grayball dataset (Ciurea and Funt, 2003), and 2,500 from Shadow removal datasets (Zhu et al., 2010; Gong and Cosker, 2014; Sidorov, 2019). Finally, we resized these data to 512 × 512 as the input of the training network. Similar to most learning-based tasks, we used the 3-fold cross-validation. 3.2. Metrics Similar to color constancy under single illumination, we use angular error to measure the performance of our MCC method. The difference is that we calculate the angular error pixel-bypixel, and then average the angular error of the whole image. The angular error is defined by Equation (4). where Ee(x, y) and Ee <sup>∗</sup> (x, y) represents the estimated illumination and real illumination at position (x, y), respectively, and M, N represents the width and height of the image. The less the err is, the better the method performs. Similar to previous multi-illumination estimate studies (Brainard and Wandell, 1986; Land, 1986; Barnard et al., 1997; Funt et al., 2004; Xiong and Funt, 2006; Zeng et al., 2011; Mutimbu and Robles-Kelly, 2016), we only compare the mean and median on multi-illumination datasets. 3.3. Implementation parameters In this subsection, the parameter sets for training our final model are given. <u>1</u> err = M × N N y�=1 (arccos - ||EeE(ex(,x y, y)||)..||Ee <sup>∗</sup> E (e <sup><u>∗</u></sup> <u>x (,x y, y)</u> )|| ) (7) FIGURE 3 Performance curves under different parameters. (A) Comparison of training time of different decoding scales; (B) Comparison of average angular errors of different decoding scales; (C) Comparison of average time consumption of illumination estimation at different decoding scales; (D) Comparison of training curves of different loss functions. [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 06 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) Encoding network selection: Different network structures, such as AlexNet (Krizhevsky et al., 2017), VGGNet-16 (Simonyan and Zisserman, 2014), and VGGNet-19 (Simonyan and Zisserman, 2014), are used to test the performance. The network we designed (modified from AlexNet Krizhevsky et al., 2017) is slightly worse than VGGNet-19 (Simonyan and Zisserman, 2014), but the speed is more than 4 times faster than AlexNet (Krizhevsky et al., 2017) and VGGNet19 (Simonyan and Zisserman, 2014). Finally, considering the effect and efficiency, the structure in Figure 1 is used in this study. Decoding network selection: The decoder part is equivalent to a process of feature reconstruction. The backbone network structure we used was symmetrical to the encoding network. We tested with different resized stages and compared the performance. The resulting curve is shown in Figures 3A– C. Finally, considering the effect and efficiency, the decoding structure shown in Figure 1 is used in this study. It can also be seen from the curve that under different resize levels of the decoder, the number of deconvolution layers does not increase, and the time consumptions of illumination estimations are essentially equal. Loss function selection: During training, the angular error and loss function proposed in this study are compared, and the resulting curve is shown in Figure 3D. As can be seen from the curve, the loss function used in this paper converges faster than the angular error, and the training error is relatively smooth. At the same time, the test average error in several datasets is slightly lower than the angular error. Training parameters: We used Adam (Kingma and Adam, 2014), and set batch = 64 to optimize the network in this work. The learning rate was set to 0.0001. Approximately 4, 000 epochs (total 906, 250 iterations at batch = 64) were performed. 3.4. Comparison with state-of-the-art methods This paper is aimed at multi-illumination estimation. We compare the proposed method with some existing MCC methods and with some methods that can estimate local illumination, including the following three types. One type consists of methods for which segmentation is not required, such as gray pixel (GP) (Yang et al., 2015), and a retinal neuron mechanism-based method proposed by Zhang et al. (2016). The second type requires image segmentation, including the method of Arjan et al. (2012), the multi-illumination model proposed by Gu et al. (2014), and a multi-illumination estimation model based on the factor graph (FG) model (Mutimbu and Robles-Kelly, 2016). The third type, developed in recent years, comprises singleillumination estimation methods based on CNNs, including the CNN method of Bianco et al. (2015) CC-CNN, DS-Net (Shi et al., 2016), and the grayness index (GI) (Qian et al., 2019). The quantitative performance comparison on the Gijsenij dataset (Arjan et al., 2012) is presented in Table 1, the results on FIGURE 4 Qualitative results on MIMO multi-illumination datasets (Beigpour et al., 2014), the top right-hand corner of each image indicates the angle error. From left to right: (A) Original image; (B) Ground truth illumination image; (C) Estimated illumination image; (D) Corrected image; (E) [Ground truth image. Dataset available at: http://www5.cs.fau.de/research/data/two-illuminant-dataset-with-computed-ground-truth/.](http://www5.cs.fau.de/research/data/two-illuminant-dataset-with-computed-ground-truth/) Reproduced with permission from Beigpour et al. (2014). [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 07 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) TABLE 1 Quantitative evaluation on the Gijsenij dataset (Arjan et al., 2012), red indicates the best. Lab Outdoor <u>Method</u> <u>Mean</u> <u>Median</u> <u>Mean</u> <u>Median</u> Retinex (Funt et al., 2004) 13.15 13.16 6.62 7.25 Zhang (Zhang et al., 2016) 14.64 14.48 8.45 8.23 GIJ-GW (Arjan et al., 2012) 11.7 - 6.4 GIJ-GE2 (Arjan et al., 2012) 12.4 - 5.1 GU-GE1 (Gu et al., 2014) 3.25 - 3.26 GU-WP (Gu et al., 2014) 2.97 - 3.20 TABLE 2 Quantitative Evaluation on MIMO (Beigpour et al., 2014), red indicates the best. MIMO dataset Lab Outdoor <u>Method</u> <u>Median</u> Mean <u>Median</u> <u>Mean</u> Retinex (Funt et al., 2004) 4.92 5.36 4.69 5.84 Zhang (Zhang et al., 2016) 2.71 3.21 4.35 5.18 GIJ-WP (Arjan et al., 2012) 4.2 5.1 3.8 4.2 GIJ-GE1 (Arjan et al., 2012) 4.2 4.8 9.2 9.1 GU-GE1 (Gu et al., 2014) 3.16 - 3.54 GU-GW (Gu et al., 2014) 3.86 - 4.43 FG (Mutimbu and Robles-Kelly, 2016) 2.68 - 3.10 FG (Mutimbu and Robles-Kelly, 2016) 2.96 - 3.48 CC-CNN (Bianco et al., 2015) 5.71 5.97 3.92 4.26 DS-Net (Shi et al., 2016) 3.76 4.13 4.60 4.80 CN-DMS4 2.51 2.58 2.39 2.41 MIMO (Beigpour et al., 2014) in Table 2, and Bleier (Bleier et al., 2011) in Table 3. Some results are shown in Figure 4. From Tables 1, 2, it can be seen that the mean error of the proposed method is reduced by 6.3% on the Gijsenij dataset and 15.5% on the MIMO dataset compared to the second best way. It can be seen From Figure 4, from the first row of images, we find that the approximate shadow boundary can be accurately distinguished at the position of the illumination shadow boundary. Better fineness can be achieved in these scenes because our method is a step-by-step process; thus, we can accurately estimate the illumination position. In addition, there are a large number of synthetic images in the training datasets. The illumination boundary position of the synthetic color biased image is very similar to the light and shadows. Therefore, our method can deal with this boundary well. The images in the second column have more illumination colors, and almost every pixel given by the dataset is different. There is no such fine data in the training data, hence the estimated illumination is only consistent in the overall color. In addition, it is observed that the real illumination color in the training datasets is close to the color of the actual object surface in many areas and, in our method, it is difficult to accurately distinguish whether the color is that of the real illumination or the color of the object surface itself. However, it should be noted that the best existing MCC method must use gray-world to estimate the color of the light source. Gray-world is prone to different degrees of color deviation because of the color of the scene object itself. Because the high-precision dataset of multi-illumination scenes is limited, a learning-based method cannot learn the features well. Therefore, it can be considered that all known MCC-based methods have such problems, which may lead to color deviation. Further research is required to solve this problem with a small number of samples. CC-CNN (Bianco et al., 2015) 2.98 3.22 3.35 3.72 DS-Net (Shi et al., 2016) 3.21 3.46 3.01 3.86 CN-DMS4 2.50 2.83 2.99 3.33 TABLE 3 Quantitative evaluation on Bleier (Bleier et al., 2011), red indicates the best. Bleier dataset Lab <u>Method</u> <u>Median</u> <u>Mean</u> Retinex (Funt et al., 2004) 2.68 3.40 Zhang (Zhang et al., 2016) 3.97 4.50 GIJ-GW (Arjan et al., 2012) 4.71 4.93 GIJ-GE1 (Arjan et al., 2012) 14.89 14.52 GU-GE1 (Gu et al., 2014) 3.39 3.32 GU-GW (Gu et al., 2014) 1.18 1.16 FG (Mutimbu and Robles-Kelly, 2016) 2.90 2.95 CC-CNN (Bianco et al., 2015) 3.32 3.51 DS-Net (Shi et al., 2016) 3.10 3.46 CN-DMS4 2.54 2.61 In addition, we searched and downloaded several visual deviation images with multiple lighting from the Internet <sup>3</sup> . These color-biased images are corrected by different MCC methods. Because real illumination cannot be obtained, the effect of the corrected images can only be judged subjectively. Some correction comparison results are shown in Figure 5. As can be seen from the first row in the figure, these scenes contain a variety of lighting. Visually, the color deviation caused by a different illumination has been partially improved; for example, in the images in the first column, the light of the morning glow is yellow, which blocks the green of some trees. After our method, the trees and the sky are more real in visual effect. It can be seen from the images in the second and fourth columns that although other methods also eliminate part of the light, the overall color tone still shows color deviation visually. On applying our method, although the image still looks a little color biased, the image is more natural. 3 [https://image.baidu.com](https://image.baidu.com) [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 08 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) FIGURE 5 [Qualitative results on natural scenes. The images in columns 1, 2, and 4 are taken from Baidu.com, available at: http://mms2.baidu.com/it/u=](http://mms2.baidu.com/it/u=3199546478,84333290&fm=253&app=138&f=PNG&fmt=auto&q=75?w=669&h=500) [3199546478,84333290&fm=253&app=138&f=PNG&fmt=auto&q=75?w=669&h=500, http://mms0.baidu.com/it/u=576667012,](http://mms2.baidu.com/it/u=3199546478,84333290&fm=253&app=138&f=PNG&fmt=auto&q=75?w=669&h=500) [1565892735&fm=253&app=138&f=JPEG&fmt=auto&q=75?w=500&h=331 and http://mms2.baidu.com/it/u=3592193920,2788102915&fm=](http://mms0.baidu.com/it/u=576667012,1565892735&fm=253&app=138&f=JPEG&fmt=auto&q=75?w=500&h=331) [253&app=138&f=JPEG&fmt=auto&q=75?w=500&h=329. The image in the third column is from the doctoral thesis (Gao, 2017). For each](http://mms2.baidu.com/it/u=3592193920,2788102915&fm=253&app=138&f=JPEG&fmt=auto&q=75?w=500&h=329) column, from top to bottom: Original image; (A) Result By GP (Yang et al., 2015); (B) Result By Retinex (Brainard and Wandell, 1986); (C) Result By Zhang (Zhang et al., 2016); (D) Our method. As the lack of multi-illumination datasets, as an extension, we evaluate the proposed method using a tinted Multiilluminant dataset (Sidorov, 2019) which is synthesized from the SFU Gray-Ball (Ciurea and Funt, 2003), this method not only synthesizes multiple lights but also synthesizes the superposition of multiple lights. Performance is quantitatively compared to the performance of state-of-the-art methods and is reported in Table 4, and some images are demonstrated for visual evaluation in Figure 6. It may be seen that the proposed technique outperforms all existing multi-illuminant algorithms. We observed that some images had slightly increased or reduced brightness, although the color cast is removed correctly. 3.5. Adaptation for single-illumination As mentioned in this paper, the proposed method aims to solve the color constancy problem under multiple illuminations, and we mainly compare it with existing MCC methods and [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 09 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) with methods that can estimate local illumination. For singleillumination, we added some single-illumination datasets and used the same illumination as illumination maps for training. we take the mean value of the illumination map as the estimated illumination, and compare it with three singleillumination methods: DS-Net (Shi et al., 2016), FC4 (Hu TABLE 4 Quantitative evaluation on the tinted multi-illuminant dataset (Sidorov, 2019), red indicates the best. <u>Method</u> <u>Median</u> <u>Mean</u> GIJ-GW (Arjan et al., 2012) 6.61 10.50 GIJ-GE1 (Arjan et al., 2012) 6.70 12.10 GU-GE1 (Gu et al., 2014) 8.14 15.56 GU-GW (Gu et al., 2014) 5.51 9.78 CC-CNN (Bianco et al., 2015) 5.64 5.88 DS-Net (Shi et al., 2016) 6.19 7.66 FC4 (Hu et al., 2017) 4.27 4.89 CN-DMS4 3.42 3.71 et al., 2017), and our previous single-illumination method, MSRWNS (Wang et al., 2022). The quantitative performance TABLE 5 Quantitative evaluation on SFU Gray-Ball (Ciurea and Funt, 2003), red indicates the best. <u>Method</u> <u>Median</u> <u>Mean</u> DS-Net (Shi et al., 2016) 0.96 2.41 FC4 (Hu et al., 2017) 1.12 2.33 MSRWNS (Wang et al., 2022) 0.82 1.83 <u>CN-DMS4</u> <u>0.95</u> <u>2.24</u> TABLE 6 Quantitative evaluation on ADE20k (Zhou et al., 2016), red indicates the best. <u>Method</u> <u>Median</u> <u>Mean</u> DS-Net (Shi et al., 2016) 0.96 1.68 FC4 (Hu et al., 2017) 1.32 1.56 MSRWNS (Wang et al., 2022) 0.61 1.68 <u>CN-DMS4</u> <u>1.13</u> <u>0.95</u> FIGURE 6 Results produced by the proposed approach on removing of multi-illuminant color cast, the images come from SFU Gray-Ball (Ciurea and Funt, [2003). From left to right: (A) Tint maps; (B) Synthesized images; (C) Predictions; (D) Ground truth. Dataset available at: https://www2.cs.sfu.ca/~](https://www2.cs.sfu.ca/~colour/data/gray_ball/index.html) [colour/data/gray_ball/index.html. Reproduced with permission from Ciurea and Funt (2003).](https://www2.cs.sfu.ca/~colour/data/gray_ball/index.html) [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 10 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) FIGURE 7 Result of single illumination, the images come from ADE20k (Zhou et al., 2016). From left to right: (A) Original image; (B) Result by DS-Net (Shi et al., 2016); (C) Result by FC4 (Hu et al., 2017); (D) Result by MSRWNS (Wang et al., 2022); (E) Result by proposed method; (F) Ground truth. [Dataset available at: https://groups.csail.mit.edu/vision/datasets/ADE20K/. Reproduced with permission from Zhou et al. (2016).](https://groups.csail.mit.edu/vision/datasets/ADE20K/) comparison of the SFU Gray-Ball dataset (Ciurea and Funt, 2003) and ADE20k dataset (Zhou et al., 2016) are presented in Tables 5, 6, some results are shown in Figure 7. It may be seen that the proposed method also shows a better performance in single-light estimation, second only to our previous method. 3.6. Efficiency The code used to test the efficiency of the proposed method is based on PyTorch (Paszke et al., 2019) and the training took approximately 8 h, after which the loss tended to stabilize. In the testing phase, we used OpenCV (Bradski, 2000) to load the model. An average image required 200 ms on a CPU, and 32 ms on a GPU <sup>4</sup> . For low-resolution images, the real-time estimation can be achieved using a GPU, but for high-resolution images, the algorithm requires significant time. In the future study, we will try to prune the model to further improve its efficiency. ## 4. Conclusion Most studies of color constancy are based on the assumption that there is only a single-illumination in the scene. However, in reality, most scenes have more than one illumination. For the 4 Experimental hardware platform: Intel Xeon Silver 4210R, 64-GB memory, GTX3090. The resolution of the test image was less than 800*600. illumination estimation in this study, the encoding and decoding network was introduced, and a unique network model of multiscale supervision and single-scale estimation was designed. An optimization network with an improved loss function and a simple operator with a penalty was designed to train the network. By testing on several public datasets, our method yielded a partial improvement in terms of quantitative data and visual effects compared with previous multi-illumination estimation methods. This provides a research direction in endto-end multi-illumination estimation. ## Data availability statement The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author. ## Author contributions FW is responsible for conceptualization, investigation, data curation, and writing. WW is responsible for formal analysis, investigation, and methodology. DW is responsible for formal analysis, investigation, and validation. GG is responsible for data curation and investigation. ZW is responsible for polishing the language and the major experiments in the revised version. All authors contributed to the article and approved the submitted version. [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 11 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) ## Funding The Project supported by the Science Fund of State Key Laboratory of Advanced Design and Manufacturing for Vehicle Body (No. 32015013) and the Shaanxi Province Key R&D Program Project (No. 2022GY-435). ## Conflict of interest The authors declare that the research was conducted in the absence of any commercial or financial relationships ## References Afifi, M., and Brown, M. S. (2020). “Deep white-balance editing,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (Seattle, WA: IEEE). Arjan, G., Rui, L., and Theo, G. (2012). Color constancy for multiple light [sources. IEEE Trans. Image Process. 21, 697. doi: 10.1109/TIP.2011.2165219](https://doi.org/10.1109/TIP.2011.2165219) Arunkumar, P., Chandramathi, S., and Kannimuthu, S. (2019). Sentiment analysis-based framework for assessing internet telemedicine videos. Int. J. Data [Anal. Techn. Strategies 11, 328–336. doi: 10.1504/IJDATS.2019.103755](https://doi.org/10.1504/IJDATS.2019.103755) Badrinarayanan, V., Kendall, A., and Cipolla, R. (2017). SegNet: a deep convolutional encoder-decoder architecture for scene segmentation. IEEE Trans. [Pattern Anal. Mach. Intell. 39, 2481–2495. doi: 10.1109/TPAMI.2016.2644615](https://doi.org/10.1109/TPAMI.2016.2644615) Barnard, K., Finlayson, G. D., and Funt, B. V. (1997). Colour constancy for scenes with varying illumination. Comput. Vis. Image Understand. 65, 311–321. [doi: 10.1006/cviu.1996.0567](https://doi.org/10.1006/cviu.1996.0567) Barnard, K., Martin, L., Funt, B., and Coath, A. (2010). A data set for color [research. Color Res. Appl. 27, 1049. doi: 10.1002/col.10049](https://doi.org/10.1002/col.10049) Barron, J. T. (2015). “Convolutional color constancy,” in Proceedings of IEEE International Conference on Computer Vision (Santiago: IEEE), 379–387. Beigpour, S., Riess, C., van de Weijer, J., and Angelopoulou, E. (2014). Multiilluminant estimation with conditional random fields. IEEE Trans. Image Process. [23, 83–96. doi: 10.1109/TIP.2013.2286327](https://doi.org/10.1109/TIP.2013.2286327) Bianco, S., Cusano, C., and Schettini, R. (2015). Color constancy using CNNs. 5, [81–89. doi: 10.1109/CVPRW.2015.7301275](https://doi.org/10.1109/CVPRW.2015.7301275) Bianco, S., Cusano, C., and Schettini, R. (2017). Single and multiple illuminant estimation using convolutional neural networks. IEEE Trans. Image Process. 26, [4347–4362. doi: 10.1109/TIP.2017.2713044](https://doi.org/10.1109/TIP.2017.2713044) Bleier, M., Riess, C., Beigpour, S., Eibenberger, E., Angelopoulou, E., Tröger, T., et al. (2011). “Color constancy and non-uniform illumination: can existing algorithms work?” in IEEE International Conference on Computer Vision Workshops (Barcelona: IEEE), 774–781. Bradski, G. (2000). The opencv library. Dr. Dobb’s Journal: Software Tools for the Professional Programmer 25, 120–123. Brainard, D. H., and Wandell, B. A. (1986). Analysis of the retinex theory of color [vision. J. Opt. Soc. Am. A Optics Image Sci. 3, 1651. doi: 10.1364/JOSAA.3.001651](https://doi.org/10.1364/JOSAA.3.001651) Cheng, D., Prasad, D. K., and Brown, M. S. (2014). Illuminant estimation for color constancy: why spatial-domain methods work and the role of the color distribution. J. Opt. Soc. Am. A Opt. Image Sci. Vis. 31, 1049. [doi: 10.1364/JOSAA.31.001049](https://doi.org/10.1364/JOSAA.31.001049) Ciurea, F., and Funt, B. (2003). “A large image database for color constancy research,” in Color and Imaging Conference (Society for Imaging Science and Technology), Vol. 2003. p. 160–4. Available online at: [https://www2.cs.sfu.ca/~](https://www2.cs.sfu.ca/~colour/publications/PCIC-2003/LargeImageDatabase.pdf) [colour/publications/PCIC-2003/LargeImageDatabase.pdf](https://www2.cs.sfu.ca/~colour/publications/PCIC-2003/LargeImageDatabase.pdf) Ebner, M. (2007). Color constancy, Vol. 7. John Wiley and Sons. Eigen, D., and Fergus, R. (2015). “Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture,” in IEEE International Conference on Computer Vision (Santiago: IEEE), 2650–2658. that could be construed as a potential conflict of interest. ## Publisher’s note All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher. Eigen, D., Puhrsch, C., and Fergus, R. (2014). “Depth map prediction from a single image using a multi-scale deep network,” in 28th Annual Conference on Neural Information Processing Systems 2014, NIPS 2014 (Neural Information Processing Systems Foundation), 2366–2374. Finlayson, G. D., Drew, M. S., and Funt, B. V. (1994). Spectral sharpening: sensor transformations for improved color constancy. J. Opt. Soc. Am. A Opt. Image Sci. [Vis. 11, 1553–1563. doi: 10.1364/JOSAA.11.001553](https://doi.org/10.1364/JOSAA.11.001553) Finlayson, G. D., Drew, M. S., and Lu, C. (2004). Intrinsic Images by Entropy Minimization. Berlin; Heidelberg: Springer. Funt, B., Barnard, K., and Martin, L. (1999). “Is machine colour constancy good enough?” in Proceedings of European Conference on Computer Vision (Berlin: Springer). Funt, B., Ciurea, F., and Mccann, J. (2004). Retinex in matlab. J. Electron. [Imaging 13, 112–121. doi: 10.1117/1.1636761](https://doi.org/10.1117/1.1636761) Funt, B. V., and Lewis, B. C. (2000). Diagonal versus affine transformations for color correction. J. Opt. Soc. Am. A Opt. Image Sci. Vis. 17, 2108–2112. [doi: 10.1364/JOSAA.17.002108](https://doi.org/10.1364/JOSAA.17.002108) Gao, S. (2017). Computational Models of Visual Adaptation and Color Constancy and Applications (Ph.D. thesis). University of Electronic Science and Technology of China. Gao, S. B., Zhang, M., Li, C. Y., and Li, Y. J. (2017). Improving color constancy by discounting the variation of camera spectral sensitivity. J. Opt. Soc. Am. A Opt. Image Vis. 34, 1448–1462. doi: 10.1364/JOSAA.34. 001448 Gao, S. B., Zhang, M., and Li, Y. J. (2019). Improving color constancy by selecting suitable set of training images. Opt. Express. 27, 25611. [doi: 10.1364/OE.27.025611](https://doi.org/10.1364/OE.27.025611) Gehler, P. V., Rother, C., Blake, A., Minka, T., and Sharp, T. (2008). “Bayesian color constancy revisited,” in Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (Anchorage, AK: IEEE), 1–8. Gilchrist, A. (2006). Seeing Black and White. Oxford: Oxford University Press. Gong, H., and Cosker, D. (2014). “Interactive shadow removal and ground truth for variable scene categories,” in BMVC (Citeseer), 1–11. Gu, L., Huynh, C. P., and Robleskelly, A. (2014). Segmentation and estimation of spatially varying illumination. IEEE Trans. Image Process. 23, 3478–3489. [doi: 10.1109/TIP.2014.2330768](https://doi.org/10.1109/TIP.2014.2330768) Hu, Y., Wang, B., and Lin, S. (2017). “Fc4: fully convolutional color constancy with confidence-weighted pooling,” in IEEE Conference on Computer Vision and Pattern Recognition (Honolulu, HI: IEEE), 330–339. Jameson, D. H. L. (1989). Essay concerning color constancy. Annu. Rev. Psychol. 40, 1–22. doi: 10.1146/annurev.ps.40.020189.00 0245 Kannimuthu, S., Premalatha, K., and Shankar, S. (2012). “Investigation of high utility itemset mining in service oriented computing: deployment of knowledge as a service in e-commerce,” in 2012 Fourth International Conference on Advanced Computing (ICoAC) (IEEE), 1–8. [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 12 [frontiersin.org](https://www.frontiersin.org) Wang et al. [10.3389/fninf.2022.953235](https://doi.org/10.3389/fninf.2022.953235) Kingma Diederik, P., and Adam, J. B. (2014). A method for stochastic [optimization. arXiv [Preprint]. arXiv: 1412.6980. Available online at: https://arxiv.](https://arxiv.org/pdf/1412.6980.pdf) [org/pdf/1412.6980.pdf](https://arxiv.org/pdf/1412.6980.pdf) Kraft, J. M., and Brainard, D. H. (1999). Mechanisms of color constancy under nearly natural viewing. Proc. Natl. Acad. Sci. U.S.A. 96, 307–312. [doi: 10.1073/pnas.96.1.307](https://doi.org/10.1073/pnas.96.1.307) Krizhevsky, A., Sutskever, I., and Hinton, G. E. (2017). Imagenet classification with deep convolutional neural networks. ACM Commun. 60, 84–90. Available online at: [https://proceedings.neurips.cc/paper/2012/file/](https://proceedings.neurips.cc/paper/2012/file/c399862d3b9d6b76c8436e924a68c45b-Paper.pdf) [c399862d3b9d6b76c8436e924a68c45b-Paper.pdf](https://proceedings.neurips.cc/paper/2012/file/c399862d3b9d6b76c8436e924a68c45b-Paper.pdf) Land, E. H. (1986). Recent advances in retinex theory. Vis. Res. 26, 7–21. [doi: 10.1016/0042-6989(86)90067-2](https://doi.org/10.1016/0042-6989%0x2886%0x2990067-2) Mutimbu, L., and Robles-Kelly, A. (2016). Multiple illuminant colour estimation via statistical inference on factor graphs. IEEE Trans. Image Process. 25, 5383–5396. [doi: 10.1109/TIP.2016.2605003](https://doi.org/10.1109/TIP.2016.2605003) Paszke, A., Gross, S., Massa, F., Lerer, A., and Chintala, S. (2019). Pytorch: An imperative style, high-performance deep learning library. Qian, Y., Nikkanen, J., Kmrinen, J. K., and Matas, J. (2019). “On finding gray pixels,” in 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (Long Beach, CA: IEEE). Roca-Vila, J., Parraga, C. A., and Vanrell, M. (2009). Human and Computational Color Constancy. Shelhamer, E., Long, J., and Darrell, T. (2014). Fully convolutional networks for semantic segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 39, 640–651. [doi: 10.1109/TPAMI.2016.2572683](https://doi.org/10.1109/TPAMI.2016.2572683) Shi, W., Loy, C. C., and Tang, X. (2016). “Deep specialized network for illuminant estimation,” in European Conference on Computer Vision (Springer), 371–378. Sidorov, O. (2019). “Conditional gans for multi-illuminant color constancy: revolution or yet another approach?” in The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops (Long Beach, CA: IEEE). Simonyan, K., and Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv [Preprint]. arXiv: 1409.1556. Available online [at: https://arxiv.org/pdf/1409.1556.pdf](https://arxiv.org/pdf/1409.1556.pdf) Smithson, H. E. (2005). Sensory, computational and cognitive components of human colour constancy. Philos. Trans. R. Soc. B 360, 1329–1346. [doi: 10.1098/rstb.2005.1633](https://doi.org/10.1098/rstb.2005.1633) Vrhel, M., Saber, E., and Trussell, H. J. (2005). Color image generation and display technologies. IEEE Signal Process. Mag. 22, 23–33. [doi: 10.1109/MSP.2005.1407712](https://doi.org/10.1109/MSP.2005.1407712) Wang, F., Wang, W., Wu, D., and Gao, G. (2022). Color constancy via multi-scale region-weighed network guided by semantics. Front. Neurorobot. [16,](https://doi.org/10.3389/fnbot.2022.841426) 841426. doi: 10.3389/fnbot.2022. 841426 Xiong, W., and Funt, B. (2006). “Color constancy for multiple-illuminant scenes using retinex and svr,” in Color and Imaging Conference (Society for Imaging Science and Technology), Vol. 2006. p. 304–308. Yang, K. -F., Gao, S. -B., and Li, Y. -J. (2015). “Efficient illuminant estimation for color constancy using grey pixels,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (IEEE), 2254–2263. Yu, F., and Koltun, V. (2015). Multi-scale context aggregation by dilated [convolutions. arXiv [Preprint]. arXiv: 1511.07122. Available online at: https://arxiv.](https://arxiv.org/pdf/1511.07122.pdf) [org/pdf/1511.07122.pdf](https://arxiv.org/pdf/1511.07122.pdf) Zeng, C., Li, Y., Yang, K., and Li, C. (2011). Contour detection based on a non-classical receptive field model with butterfly-shaped inhibition subregions. Neurocomputing 74, 1527–1534. doi: 10.1016/j.neucom.2010. 12.022 Zhang, X. S., Gao, S. B., Li, R. X., Du, X. Y., Li, C. Y., and Li, Y. J. (2016). A retinal mechanism inspired color constancy model. IEEE Trans. Image Process. 25, [1219–1232. doi: 10.1109/TIP.2016.2516953](https://doi.org/10.1109/TIP.2016.2516953) Zhou, B., Zhao, H., Puig, X., Fidler, S., Barriuso, A., and Torralba, A. (2016). Semantic understanding of scenes through the ade20k dataset. Int. J. Comput. Vis. [127,](https://doi.org/10.1109/CVPR.2017.544) 302–321. doi: 10.1109/CVPR.20 17.544 Zhu, J., Samuel, K., Masood, S. Z., and Tappen, M. F. (2010). “Learning to recognize shadows in monochromatic natural images,” in 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (San Francisco, CA: IEEE). [Frontiers in Neuroinformatics](https://www.frontiersin.org/journals/neuroinformatics) 13 [frontiersin.org](https://www.frontiersin.org)

섹션 본문 62문단 · 25,797자

. Introduction

2With the rapid proliferation of digital imaging and digital video, accurate recording of the constant color of a scene from the device-captured image is of extreme importance for many practical applications, ranging from color-based object recognition and tracking to quality control of textiles (Funt et al., 1999;Vrhel et al., 2005;Gao et al., 2017Gao et al., , 2019. The color of an object is influenced by the illumination color and the observed color of an object in an image (representing the observed values in RGB space) depends on the intrinsic color and light-source color (Ebner, 2007).

3. /fninf. . Human color constancy (HCC) is a perceptual phenomenon that stabilizes the appearance of an object's colors throughout changes in illumination. One possible-ecological justification for color constancy in mammals is to facilitate scene object recognition (Kraft and Brainard, 1999;Smithson, 2005). In Helmolt's words: "Colors are mainly important for us as properties of objects and as means of identifying objects." Then a mechanism that preserves the color appearance of objects will serve this purpose. As a perceptual phenomenon, all variables affecting color constancy lie in the content of the perceived scene, e.g., scene chromaticity, three dimensional information, object movement, and some others. All these factors are called visual cues (Jameson, 1989;Roca-Vila et al., 2009). Numerous tests of human perception of colored surfaces indicate a high level of perceptual constancy, in which the appearance of the surface is relatively little changed. However, endowing a computer with the same ability is difficult (Gilchrist, 2006;Roca-Vila et al., 2009). To assist a computer in solving this problem, our central problem is to estimate the real object's color coordinates in some color space, which is called computational color constancy (CCC).

4Previous methods have mostly been limited to a singleillumination assumption. However, in reality, most scenes have more than one illumination. In multi-illumination scenes, each pixel in an image is influenced by different light sources, unlike that of single illumination. For example, in an image with shadows, there are at least two lights (the light colors of different degrees of shadow areas and normal sunlight areas are different). Therefore, research on multi-illumination color constancy (MCC) has more practical significance.

5However, fewer studies have been conducted on MCC than on single illumination. This is mainly because it is difficult to obtain datasets for multiple lighting conditions, especially for lighting colors requiring manual calibration of pixel-level accuracy.

6As with single illumination, MCC methods can be classified into optimization-and learning-based methods.

7Optimization-based methods: Land et al. first proposed the Retinex model (Brainard and Wandell, 1986;Land, 1986;Funt et al., 2004), which is the earliest theoretical model that can deal with the MCC problem. This theory is based on a series of psychological and physical experiments. The early purpose was not to estimate the illumination under multiple illumination conditions but to restore the relative reflectivity of objects in a scene. Barnard et al. (1997) proposed a model to deal with the MCC problem by detecting the change of illumination color in the scene. The model is patch-based and estimates the illumination of an image patch through singleillumination color constancy. Xiong and Funt (2006) used a diffusion technique in which a large-scale convolution kernel is used to filter the color-biased images in complex scenes. It is assumed that the images after convolution meet the local grayworld assumption. Although this method has achieved good results, it only uses simple convolution kernels that are easily affected by the real color of the object itself. For example, part of the obtained illumination map is the color of the object itself, rather than the illumination color.

8Learning-based methods: Like other data mining tasks, this method learns useful information from large amounts of data (Barnard et al., 2010;Kannimuthu et al., 2012;Arunkumar et al., 2019). Shi et al. (2016) and Bianco et al. (2017) used patchbased convolutional neural networks (CNNs) to estimate a single illumination for each patch. By inputting each patch into the network, the local illumination of all patches can be obtained. Afifi and Brown (2020) proposed an end-to-end approach to learning the correct white balance, which consists of a single encoder and multiple decoders, mapping an input image into two additional white-balance settings corresponding to indoor and outdoor illuminations. This method can also be used in multi-illumination estimation; however, our experiments show that it is very time-consuming.

9The abovementioned multi-illumination and singleillumination estimation methods have achieved good performance on some multi-illumination datasets. However, these methods may not find the optimal solution in some complex situations owing to their inflexibility. To summarize, there are still some unsolved open problems in these approaches, which can be generally summarized as two aspects:

10• Many of these methods (Xiong and Funt, 2006;Zeng et al., 2011;Mutimbu and Robles-Kelly, 2016) are implemented by clustering the illumination of local regions. However, the process of clustering is a difficult problem. If the illumination distribution in the scene is scattered, then it is difficult to obtain accurate illumination. In addition, the selection of region size is also a key problem. Inappropriate region size will reduce the accuracy of illumination estimation, and these methods are based on the traditional assumption of illumination estimation. If the region does not meet this assumption, the corresponding regional illumination estimation may be in error. • Most existing CNN-based single-illumination estimation methods used for multi-illumination estimation are timeconsuming (Barron, 2015;Shi et al., 2016;Bianco et al., 2017) when adopting the local image patches for estimation.

11In recent years, CNNs have been widely used, especially the fully convolutional networks for image pixel classification (Shelhamer et al., 2014;Yu and Koltun, 2015;Badrinarayanan et al., 2017) and image depth estimation (Eigen et al., 2014;Eigen and Fergus, 2015), to improve the estimation accuracy to a new level. In multi-illumination estimation, the pixellevel illumination is estimated from the original color-biased image, which is consistent with the image segmentation scene and depth estimation scene (Eigen et al., 2014;Shelhamer . /fninf. . et al., 2014;Yu and Koltun, 2015;Badrinarayanan et al., 2017). In this paper, we propose a cascade network of deep multiscale supervision and single-scale estimation to estimate multi-illumination (CN-DMS4) . For training, the parameters are learned from coarse to fine and through different scales. In the test phase, only the illumination map of the thinnest level is estimated.

12The CN-DMS4 network differs from existing methods, and provides two contributions:

13• Multiscale supervision and single-scale estimation. The network is an end-to-end cascaded structure; the network parameters are supervised and learned from coarse to fine during the training process. Only the final thinnest level illumination map is estimated in the illumination estimation process. • A new loss function with a channel penalty term is designed to optimize the network parameters, which can solve the influence of color channels in the Euclidean distance or pixel-level angle error.

14The remainder of this paper is organized as follows. In Section 2, the structure of the proposed network and training strategy are presented. The experimental results are provided in Section 3. The conclusion is given in Section 4.

15. Multi-scale supervision and single-scale estimation in a cascade convolutional neural network Following the widely accepted simplified diagonal model (Finlayson et al., 1994;Funt and Lewis, 2000), we also use this model in our study. For multi-illumination estimation, we modify the diagonal model as follows:

16where the illumination in the scene is E c (x, y), (x, y) is the spatial position in an image, I c (x, y) represents the image under unknown illumination, E c (x, y) represents the illumination image, and R c (x, y) represents the image under standard illumination.

. . Problem formulation

17As in the single-illumination estimate, we only know the image I c (x, y) under an unknown light source E c (x, y), which

18We assume that there are multiple light sources in the scene and that the illumination of the multiple light sources is uniform.

19needs to be estimated. The goal of multi-illumination estimation is to estimate E c (x, y) from I c (x, y), and then compute it as E c (x, y) = I c (x, y)/R c (x, y). To address the problem of estimating E c (x, y) from I c (x, y), we formulate it as a regression. A new color-space model, log − uv, has been used in color constancy methods (Finlayson et al., 2004;Barron, 2015;Shi et al., 2016) in recent years, and has certain advantages . The calculation method is as follows:

20After estimating the light, it can be converted back to the RGB space through a very simple formula:

21represents the illumination value at each (x, y) in the log − uv space; E uv (x, y) should be as close as possible to the real light at the position of (x, y). In this paper, we define f theta as a CNN model that is optimized by the parameter θ .

22Based on the semantic segmentation model, we define the network into the encoding and decoding parts. The encoding part performs the process of feature extraction, and the decoding part performs the process of remapping these features back to the image. We define the encoding process by Equation (4), and the decoding the process by Equation (5):

23where ψ 1 represents the network of the encoding process, θ 1 indicates the parameters to be optimized in the encoding part, ψ 2 represents the decoding process, and θ 2 indicates the parameters to be optimized in the decoding part. In addition, refer to the idea in the literature (Mutimbu and Robles-Kelly, 2016), which uses a factor graph defined across the scale space of the input image and estimated the multiillumination at multiple scales from fine to coarse (i.e., the image becomes increasingly blur), the pixelwise illuminant can be viewed as the geometric mean of the illuminants across all As demonstrated in the literature (Finlayson et scales. In this paper, we also try to use a multiscale network to improve the estimation accuracy. The difference is that our method supervises and learns the parameters from coarse to fine (i.e., the image becomes increasingly clear).

. . Network architecture

24As introduced in the previous section, it is necessary to design a network structure that includes an encoding part ψ 1 and decoding part ψ 2 . The network structure is shown in Figure 1.

25Encoding part of the network. In Figure 1, the encoding part indicates ψ 1 in Equation 4. The encoding part is used to extract features, which are then input to the decoding part to estimate the illumination. In this part, we also used AlexNet (Krizhevsky et al., 2017), VGGNet-16 (Simonyan and Zisserman, 2014), and VGGNet-19 (Simonyan and Zisserman, 2014), but the results showed little difference. Finally, we used the structure improved from AlexNet (Krizhevsky et al., 2017) containing 5 convolutions. We removed all the pooling layers and replaced them with a large stride of convolution kernels. All the layers use the convolution kernel of 3 × 3, and the stride of all the convolutions is set to 2.

26Decoding part of the network. In Figure 1, the decoding part indicates ψ 2 in Equation 5. The decoding part is used to reconstruct the pixel-level illumination. However, conv6, conv7, conv8, and conv9 use the convolution kernel of 1 × 1 to reduce the dimension, while the others use the convolution kernel of 3×3 and the stride is set to 2. In the training phase, in addition to E c , the E c 1 , E c 3 , and E c 3 also participates in supervised learning.

27In the illumination estimation stage, illumination images at different scales can be obtained, or only the final and the finest illumination can be obtained but the part marked by the green box in Figure 1 cannot participate in the calculation.

. . Loss function

28Our goal is to train a mapping function for generating an illumination image E (u, v) that is close to the ground-truth illumination image E t (u, v). Instead of minimizing the mean squared error between E(u, v) and E t (u, v) at each scale, we propose a variant of the L1. The overall loss function is defined as: . Experimental results

. . Datasets

29There are only a few public multi-illumination datasets, and the number of images in the datasets is limited. In the phase of network training, more data is needed. Based on the dissertation in Gao (2017), we use the single-illumination datasets Color Checker (Gehler et al., 2008) and NUS 8-Camera (Cheng et al., 2014) to render a large number of multi-illumination datasets.

30The operation process is as follows. First, the images are corrected to standard white light according to the illumination provided by the datasets. Next, multiple spatial positions are randomly generated on each image, and 3 − 8 different lighting colors are simulated, as shown in Figure 2A (the boundary is blurred).

31In addition, the following multi-illumination datasets collected in real scenes are used, respectively. The Gijsenij dataset (Arjan et al., 2012), is a multi-illumination dataset collected in a natural scene that includes 59 indoor and 9 outdoor multi-illumination images, and their corresponding illuminations. Figure 2B shows an indoor and an outdoor image from this database.

32The multiple-input multiple-output (MIMO) dataset (Beigpour et al., 2014) was established by Beigpour et al., which contains 57 indoor images and 21 outdoor images; it provides pixel-level illumination images. Figure 2C shows an indoor and an outdoor image from this database.

33The Bleier dataset (Bleier et al., 2011) was collected and established by Bleier et al. The dataset contains 36 high-quality images and corresponding illumination images obtained by nine different illuminations in four scenes. Figure 2D shows two images from the database.

34To enable the model to be used for single-light estimation, we added a single-light dataset, SFU Grayball dataset (Ciurea and Funt, 2003).

35In addition, we utilize horizontal and vertical mirroring, respectively. At the same time, we scale the data from [0.6, 1.5] times to obtain a total of 14,500 real scene datasets. We selected 5,000 images from the real multi-illumination dataset, 4,000 from the dataset that we constructed as training data, 3,000 from SFU Grayball dataset (Ciurea and Funt, 2003), and 2,500 from Shadow removal datasets (Zhu et al., 2010;Gong and Cosker, 2014;Sidorov, 2019). Finally, we resized these data to 512 × 512 as the input of the training network. Similar to most learning-based tasks, we used the 3-fold cross-validation.

. . Metrics

36Similar to color constancy under single illumination, we use angular error to measure the performance of our MCC method. The difference is that we calculate the angular error pixel-bypixel, and then average the angular error of the whole image. The angular error is defined by Equation (4).

37where E e (x, y) and E * e (x, y) represents the estimated illumination and real illumination at position (x, y), respectively, and M, N represents the width and height of the image. The less the err is, the better the method performs.

38Similar to previous multi-illumination estimate studies (Brainard and Wandell, 1986;Land, 1986;Barnard et al., 1997;Funt et al., 2004;Xiong and Funt, 2006;Zeng et al., 2011;Mutimbu and Robles-Kelly, 2016), we only compare the mean and median on multi-illumination datasets.

. . Implementation parameters

39In this subsection, the parameter sets for training our final model are given.

Encoding network selection:

40Different network structures, such as AlexNet (Krizhevsky et al., 2017), VGGNet-16 (Simonyan and Zisserman, 2014), and VGGNet-19 (Simonyan and Zisserman, 2014), are used to test the performance. The network we designed (modified from AlexNet Krizhevsky et al., 2017) is slightly worse than VGGNet-19 (Simonyan and Zisserman, 2014), but the speed is more than 4 times faster than AlexNet (Krizhevsky et al., 2017) and VGGNet-19 (Simonyan and Zisserman, 2014). Finally, considering the effect and efficiency, the structure in Figure 1 is used in this study.

41Decoding network selection: The decoder part is equivalent to a process of feature reconstruction. The backbone network structure we used was symmetrical to the encoding network. We tested with different resized stages and compared the performance. The resulting curve is shown in Figures 3A-C. Finally, considering the effect and efficiency, the decoding structure shown in Figure 1 is used in this study. It can also be seen from the curve that under different resize levels of the decoder, the number of deconvolution layers does not increase, and the time consumptions of illumination estimations are essentially equal.

42Loss function selection: During training, the angular error and loss function proposed in this study are compared, and the resulting curve is shown in Figure 3D. As can be seen from the curve, the loss function used in this paper converges faster than the angular error, and the training error is relatively smooth. At the same time, the test average error in several datasets is slightly lower than the angular error.

43Training parameters: We used Adam (Kingma and Adam, 2014), and set batch = 64 to optimize the network in this work. The learning rate was set to 0.0001. Approximately 4, 000 epochs (total 906, 250 iterations at batch = 64) were performed.

. . Comparison with state-of-the-art methods

44This paper is aimed at multi-illumination estimation. We compare the proposed method with some existing MCC methods and with some methods that can estimate local illumination, including the following three types.

45One type consists of methods for which segmentation is not required, such as gray pixel (GP) (Yang et al., 2015), and a retinal neuron mechanism-based method proposed by Zhang et al. (2016).

46The second type requires image segmentation, including the method of Arjan et al. (2012), the multi-illumination model proposed by Gu et al. (2014), and a multi-illumination estimation model based on the factor graph (FG) model (Mutimbu and Robles-Kelly, 2016).

47The third type, developed in recent years, comprises singleillumination estimation methods based on CNNs, including the CNN method of Bianco et al. (2015) CC-CNN, DS-Net (Shi et al., 2016), and the grayness index (GI) (Qian et al., 2019).

48The quantitative performance comparison on the Gijsenij dataset (Arjan et al., 2012) is presented in Table 1, the results on

Method Mean Median Mean Median

49Retinex (Funt et al., 2004) 13.15 13.16 6.62 7.25

50Zhang (Zhang et al., 2016) MIMO (Beigpour et al., 2014) in Table 2, and Bleier (Bleier et al., 2011) in Table 3. Some results are shown in Figure 4. From Tables 1, 2, it can be seen that the mean error of the proposed method is reduced by 6.3% on the Gijsenij dataset and 15.5% on the MIMO dataset compared to the second best way.

51It can be seen From Figure 4, from the first row of images, we find that the approximate shadow boundary can be accurately distinguished at the position of the illumination shadow boundary. Better fineness can be achieved in these scenes because our method is a step-by-step process; thus, we can accurately estimate the illumination position. In addition, there are a large number of synthetic images in the training datasets. The illumination boundary position of the synthetic color biased image is very similar to the light and shadows. Therefore, our method can deal with this boundary well. The images in the second column have more illumination colors, and almost every pixel given by the dataset is different. There is no such fine data in the training data, hence the estimated illumination is only consistent in the overall color. In addition, it is observed that the real illumination color in the training datasets is close to the color of the actual object surface in many areas and, in our method, it is difficult to accurately distinguish whether the color is that of the real illumination or the color of the object surface itself. However, it should be noted that the best existing MCC method must use gray-world to estimate the color of the light source. Gray-world is prone to different degrees of color deviation because of the color of the scene object itself. Because the high-precision dataset of multi-illumination scenes is limited, a learning-based method cannot learn the features well. Therefore, it can be considered that all known MCC-based methods have such problems, which may lead to color deviation. Further research is required to solve this problem with a small number of samples.

Method Median Mean Median Mean

52Retinex (Funt et al., 2004)

Method Median Mean

53Retinex (Funt et al., 2004) 2.68 3.40

54Zhang (Zhang et al., 2016) In addition, we searched and downloaded several visual deviation images with multiple lighting from the Internet . These color-biased images are corrected by different MCC methods. Because real illumination cannot be obtained, the effect of the corrected images can only be judged subjectively. Some correction comparison results are shown in Figure 5. As can be seen from the first row in the figure, these scenes contain a variety of lighting. Visually, the color deviation caused by a different illumination has been partially improved; for example, in the images in the first column, the light of the morning glow is yellow, which blocks the green of some trees. After our method, the trees and the sky are more real in visual effect. It can be seen from the images in the second and fourth columns that although other methods also eliminate part of the light, the overall color tone still shows color deviation visually. On applying our method, although the image still looks a little color biased, the image is more natural. (Gao, ). For each column, from top to bottom: Original image; (A) Result By GP (Yang et al., ); (B) Result By Retinex (Brainard and Wandell, ); (C) Result By Zhang (Zhang et al., ); (D) Our method.

55As the lack of multi-illumination datasets, as an extension, we evaluate the proposed method using a tinted Multiilluminant dataset (Sidorov, 2019) which is synthesized from the SFU Gray-Ball (Ciurea and Funt, 2003), this method not only synthesizes multiple lights but also synthesizes the superposition of multiple lights. Performance is quantitatively compared to the performance of state-of-the-art methods and is reported in Table 4, and some images are demonstrated for visual evaluation in Figure 6. It may be seen that the proposed technique outperforms all existing multi-illuminant algorithms.

56We observed that some images had slightly increased or reduced brightness, although the color cast is removed correctly.

. . Adaptation for single-illumination

57As mentioned in this paper, the proposed method aims to solve the color constancy problem under multiple illuminations, and we mainly compare it with existing MCC methods and with methods that can estimate local illumination. For singleillumination, we added some single-illumination datasets and used the same illumination as illumination maps for training. we take the mean value of the illumination map as the estimated illumination, and compare it with three singleillumination methods: DS-Net (Shi et al., 2016), FC4 (Hu comparison of the SFU Gray-Ball dataset (Ciurea and Funt, 2003) and ADE20k dataset (Zhou et al., 2016) are presented in Tables 5, 6, some results are shown in Figure 7. It may be seen that the proposed method also shows a better performance in single-light estimation, second only to our previous method.

. . E ciency

58The code used to test the efficiency of the proposed method is based on PyTorch (Paszke et al., 2019) and the training took approximately 8 h, after which the loss tended to stabilize. In the testing phase, we used OpenCV (Bradski, 2000) to load the model. An average image required 200 ms on a CPU, and 32 ms on a GPU . For low-resolution images, the real-time estimation can be achieved using a GPU, but for high-resolution images, the algorithm requires significant time. In the future study, we will try to prune the model to further improve its efficiency.

. Conclusion

59Most studies of color constancy are based on the assumption that there is only a single-illumination in the scene. However, in reality, most scenes have more than one illumination. For the Experimental hardware platform: Intel Xeon Silver R, -GB memory, GTX . The resolution of the test image was less than * .

60illumination estimation in this study, the encoding and decoding network was introduced, and a unique network model of multiscale supervision and single-scale estimation was designed. An optimization network with an improved loss function and a simple operator with a penalty was designed to train the network. By testing on several public datasets, our method yielded a partial improvement in terms of quantitative data and visual effects compared with previous multi-illumination estimation methods. This provides a research direction in endto-end multi-illumination estimation.

Data availability statement

61The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author.

Author contributions

62FW is responsible for conceptualization, investigation, data curation, and writing. WW is responsible for formal analysis, investigation, and methodology. DW is responsible for formal analysis, investigation, and validation. GG is responsible for data curation and investigation. ZW is responsible for polishing the language and the major experiments in the revised version. All authors contributed to the article and approved the submitted version.

63. /fninf. .

참고문헌 41건

  1. Single and Multiple Illuminant Estimation Using Convolutional Neural Networks IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/tip.2017.2713044
  2. Color constancy using CNNs 2015 10.1109/cvprw.2015.7301275
  3. Segmentation and Estimation of Spatially Varying Illumination IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2014 10.1109/tip.2014.2330768
  4. Chromatic settings and the structural color constancy index Journal of Vision · Association for Research in Vision and Ophthalmology · 2013 10.1167/13.4.3
  5. Essay Concerning Color Constancy Annual Review of Psychology · Annual Reviews · 1989 10.1146/annurev.ps.40.020189.000245
  6. Contour detection based on a non-classical receptive field model with butterfly-shaped inhibition subregions Neurocomputing · Elsevier BV · 2011 10.1016/j.neucom.2010.12.022
  7. Spectral sharpening: sensor transformations for improved color constancy Journal of the Optical Society of America A · Optica Publishing Group · 1994 10.1364/josaa.11.001553
  8. Diagonal versus affine transformations for color correction Journal of the Optical Society of America A · Optica Publishing Group · 2000 10.1364/josaa.17.002108
  9. Learning to recognize shadows in monochromatic natural images 2010 10.1109/cvpr.2010.5540209
  10. Mechanisms of color constancy under nearly natural viewing Proceedings of the National Academy of Sciences · National Academy of Sciences · 1999 10.1073/pnas.96.1.307
  11. A data set for color research Color Research & Application · Wiley · 2002 10.1002/col.10049
  12. Color Constancy for Scenes with Varying Illumination Computer Vision and Image Understanding · Elsevier BV · 1997 10.1006/cviu.1996.0567
  13. Recent advances in retinex theory Vision Research · Elsevier BV · 1986 10.1016/0042-6989(86)90067-2
  14. Color image generation and display technologies IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2005 10.1109/msp.2005.1407712
  15. Illuminant estimation for color constancy: why spatial-domain methods work and the role of the color distribution Journal of the Optical Society of America A · Optica Publishing Group · 2014 10.1364/josaa.31.001049
  16. Retinex in MATLAB™ Journal of Electronic Imaging · SPIE · 2004 10.1117/1.1636761
  17. Multi-Illuminant Estimation With Conditional Random Fields IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2013 10.1109/tip.2013.2286327
  18. Intrinsic Images by Entropy Minimization Lecture notes in computer science · Springer Science+Business Media · 2004 10.1007/978-3-540-24672-5_46
  19. Analysis of the retinex theory of color vision Journal of the Optical Society of America A · Optica Publishing Group · 1986 10.1364/josaa.3.001651
  20. Color Constancy for Multiple Light Sources IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2165219
  21. Sensory, computational and cognitive components of human colour constancy Philosophical Transactions of the Royal Society B Biological Sciences · Royal Society · 2005 10.1098/rstb.2005.1633
  22. Proceedings European Conference on Computer Vision 2002 2002
  23. A Retinal Mechanism Inspired Color Constancy Model IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2016 10.1109/tip.2016.2516953
  24. Fully Convolutional Networks for Semantic Segmentation IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2016 10.1109/tpami.2016.2572683
  25. Color Constancy for Multiple-Illuminant Scenes using Retinex and SVR Color and Imaging Conference · 2006 10.2352/cic.2006.14.1.art00056
  26. Multiple Illuminant Color Estimation via Statistical Inference on Factor Graphs IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2016 10.1109/tip.2016.2605003
  27. Improving color constancy by discounting the variation of camera spectral sensitivity Journal of the Optical Society of America A · Optica Publishing Group · 2017 10.1364/josaa.34.001448
  28. Investigation of high utility itemset mining in service oriented computing: Deployment of knowledge as a service in E-commerce 2012 10.1109/icoac.2012.6416812
  29. Scene Parsing through ADE20K Dataset 2017 10.1109/cvpr.2017.544
  30. SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2017 10.1109/tpami.2016.2644615
  31. Conditional GANs for Multi-Illuminant Color Constancy: Revolution or yet Another Approach? 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · 2019 10.1109/cvprw.2019.00225
  32. Improving color constancy by selecting suitable set of training images Optics Express · Optica Publishing Group · 2019 10.1364/oe.27.025611
  33. On Finding Gray Pixels 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00825
  34. Sentiment analysis-based framework for assessing internet telemedicine videos International Journal of Data Analysis Techniques and Strategies · Inderscience Publishers · 2019 10.1504/ijdats.2019.103755
  35. Deep White-Balance Editing 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2020 10.1109/cvpr42600.2020.00147
  36. Color Constancy via Multi-Scale Region-Weighed Network Guided by Semantics Frontiers in Neurorobotics · Frontiers Media · 2022 10.3389/fnbot.2022.841426
  37. Seeing Black and White 2006 10.1093/acprof:oso/9780195187168.001.0001
  38. Proceedings of IEEE Conference on Computer Vision and Pattern Recognition 1993 10.1109/cvpr.1993
  39. 2013 IEEE International Conference on Computer Vision 2013 10.1109/iccv19984.2013
  40. 2009 IEEE Conference on Computer Vision and Pattern Recognition 2009 10.1109/cvpr14067.2009
  41. Proceedings of IEEE International Conference on Computer Vision 1995 10.1109/iccv.1995.466933