Color Constancy via Multi-Scale Region-Weighed Network Guided by Semantics
필름·전자재료 · (13) 프리즘 필름
기본 정보
- 저자
- DOI
- 10.3389/fnbot.2022.841426
- 저널
- Frontiers in Neurorobotics
- 발행년도
- 2022
- 발행기관
- Frontiers Media
- 피인용수
- 7
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3389/fnbot.2022.841426
- 토픽
- Color Science and Applications
- OpenAlex ID
- W4226027368
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 59,332자
본문 펼치기
섹션 본문 66문단 · 31,885자
(제목 없음)
1In obtaining color constancy, estimating the illumination of a scene is the most important task. However, due to unknown light sources and the influence of the external imaging environment, the estimated illumination is prone to color ambiguity. In this article, a learning-based multi-scale region-weighed network guided by semantic features is proposed to estimate the illuminated color of the light source in a scene. Cued by the human brain's processing of color constancy, we use image semantics and scale information to guide the process of illumination estimation. First, we put the image and its semantics into the network, and then obtain the region weights of the image at different scales. After that, through a special weight-pooling layer (WPL), the illumination on each scale is estimated. The final illumination is calculated by weighting each scale. The results of extensive experiments on Color Checker and NUS 8-Camera datasets show that the proposed approach is superior to the current state-of-the-art methods in both efficiency and effectiveness.
INTRODUCTION
2The observed color of an object in an image (representing the observed values in RGB space) depends on the intrinsic color and light-source color. It is quite easy to distinguish the reflectance from the light-source color for human beings while endowing a computer with the same ability is difficult (Gilchrist, 2006). For example, given a red object, how can one discern if it is a white object under red light or a red object under a white light? To assist a computer in solving this problem, it is necessary to separate the color of the light source, namely, the color constancy. 1 The goal of computational color constancy is to preserve the perceptive colors of objects under different lighting conditions by removing the effect of color casts caused by the scene's illumination.
3Color constancy is a fundamental research topic in the image-processing and computervision fields, and it has many applications in photographic technology, object recognition, object detection, image segmentation, and other version systems. Color casts caused by incorrectly applied computational color constancy can negatively impact the performance of image segmentation and classification (Afifi and Brown, 2019;Xue et al., 2021), thus, there is a rich body of work on this topic. Generally, methods for obtaining color constancy with image data are divided into two main categories: lowlevel-feature-based methods (Buchsbaum, 1980;Brainard and Wandell, 1986;Lee, 1986;Wandell and Tominaga, 1989;Nieves et al., 2000;Krasilnikov et al., 2002;Weijer et al., 2007;Gehler et al., 2008;Tan et al., 2008;Toro, 2008;Gijsenij et al., 2011;Finlayson, 2013;Gao et al., 2013;Barron, 2015;Bianco et al., 2015Bianco et al., , 2017Cheng et al., 2015;Shi et al., 2016;Xiao et al., 2020;Yu et al., 2020) and semantic-feature-based methods (Schroeder and Moser, 2001;Spitzer and Semo, 2002;Van De Weijer et al., 2007;Bianco et al., 2008;Lau, 2008;Li et al., 2008;Gao et al., 2015;Afifi, 2018).
4Low-level-features-based methods pay attention to the law of the color of the image itself, and they do not consider the imagecontent information. These methods consider the relationship between color and achromatic color statistics Gehler et al., 2008), inspired by the human visual system (Nieves et al., 2000;Krasilnikov et al., 2002;Gao et al., 2013), spatial derivatives, and frequency information of scene illuminations on the image (Nayar et al., 2007;Joze and Drew, 2014), extract handcrafted features from training data (Buchsbaum, 1980;Brainard and Wandell, 1986;Finlayson, 2013;Cheng et al., 2015), and learn features automatically by a convolutional neural network (CNN) from samples (Barron, 2015;Bianco et al., 2015Bianco et al., , 2017Shi et al., 2016;Xiao et al., 2020;Yu et al., 2020). Although these methods have achieved good results, especially the CNN-based methods, various methods are used to make the illumination estimation as accurate as possible, but in some complex situations, due to inflexibility, they cannot well solve the color ambiguity.
5Semantic-feature-based methods are more in line with human vision. When observing a scene, human beings have a certain psychological memory of the color of the object itself in the scene. Therefore, the content of the scene can play a certain guiding role in color constancy. Because previous attempts at semantic information extraction have not been accurate, there is relatively little research on this type of algorithm. Van De Weijer et al. (2007) proposed a color-constancy algorithm based on advanced visual information. The algorithm models the image into many semantic categories, such as sky, grassland, road, pedestrian, and vehicle, and it calculates multiple possible illumination values from these semantic categories. Each illumination is used to correct the image and calculate the semantic combination with the greatest probability. At this time, the illumination is the optimal scene illumination. Schroeder and Moser (2001) divided images into different categories, and then they learned different features for each type. Bianco et al. (2008) proposed an indoor and outdoor adaptive illumination estimation algorithm that uses a classification algorithm to divide the image into indoor and outdoor scenes, and then they estimated the illumination according to the parameters learned by training data. Afifi (2018) exploited the semantic information together with the color and spatial information of the input image, and they trained a CNN to estimate the illuminant color and gamma correction parameters. This is one of the most effective methods of this type.
6However, these two methods may not find the optimal solution in some complex situations due to inflexibility. To summarize, several open problems remain unsolved in these approaches, which can be generally concluded to have two aspects.
7• Color ambiguity with only low-level features: Many of these methods (Buchsbaum, 1980;Brainard and Wandell, 1986;Lee, 1986;Wandell and Tominaga, 1989;Nieves et al., 2000;Krasilnikov et al., 2002;Weijer et al., 2007;Gehler et al., 2008;Tan et al., 2008;Toro, 2008;Gijsenij et al., 2011;Finlayson, 2013;Gao et al., 2013;Cheng et al., 2015) only focus on the color of the image itself, for images with large color deviation, it is difficult to accurately estimate the illumination. The development of CNNs has facilitated a qualitative leap in illumination estimation, but many CNN-based methods (Barron, 2015;Shi et al., 2016;Bianco et al., 2017) are patchesbased, which take the small sampled image patches as input and learn the corresponding local estimations subsequently pooled into a global result. The small patches contain less contextual information, which commonly leads to ambiguity in local estimation. When inferring the illumination color in a patch, it is often the case that the patch contains little or no semantic context benefiting its reflectance or illumination estimation. To solve this problem, Hu et al. (2017) used a global image as input, and they designed a confidence weight layer to learn the weight of each patch. Afifi and Brown (2020) proposed an end-to-end approach to learn the correct white balance, which consists of a single encoder and multiple decoders, mapping an input image to two additional white-balance settings corresponding to indoor and outdoor illuminations. Both methods achieved great success. However, due to the lack of attention to semantic information, large errors in illumination estimation exist in some scenes, which has also been found in our experiments. • Inaccurate illumination with only semantics: Owing to the low accuracy of semantic segmentation, the early semanticbased color-constancy algorithm has great limitations. CNNs have greatly improved the accuracy of semantic segmentation. Afifi (2018) exploited the semantic information together with the color and spatial information of the input image, and they trained a CNN to estimate the illuminant color and gamma correction parameters. However, there is a possibility of error in segmentation, and incorrect segmentation will lead to errors in illumination estimation. In our experiments, we also verified that incorrect segmentation can lead to incorrect illumination estimates.
8To address the aforementioned open problems, we did some experiments. In one experiment, we conducted, yellow banana and a red apple were placed into a scene, illuminated with different colors of light, and then different observers were allowed to view the results. It was found that the observers can correctly distinguish the color of the fruit because humans generally think that bananas are yellow and apples are red. It can be seen that objects with inherent colors can guide observers to estimate the lighting of the scene; i.e., the objects in the scene have a great effect on the color constancy of human vision. In addition, we conducted an experiment in which some objects were placed in the scene to allow the observer to observe them from different distances. It was found that the colors of certain areas in the scene observed at different distances were biased (this deviation is relatively small), but the bias did not have much impact on the overall color. In addition, in the present study, traditional algorithms were used to estimate the illumination of the image at different scales. It was found that the estimated illumination at different scales exhibits some deviations, but they were all close to the actual illumination. It can be thought that scale has a certain influence on the color constancy of human vision. Estimating multiple illuminations from one image at multiple scales is also in line with a verification conclusion obtained in Shi et al. (2016), namely, that multiple hypothetical illuminations from one image can help improve the accuracy of illumination estimation. Inspired by that, we propose herein a learningbased Multi-scale Region-weighed Network guided by Semantics (MSRWNS) to estimate the illuminated color of the light source in a scene. First, the semantic context of an image is extracted, the image and its semantics are put into the network, and through a series of convolution layers, the region weights of the image at different scales are obtained. Then, through the weightpooling layer (WPL), the illumination estimation on each scale is obtained. The global illumination is calculated by weighting on each scale.
9The MSRWNS network differs from the existing methods and has three contributions, which follow.
10• It estimates multiple global illuminations at different feature scales, and it obtains the final lighting by simple weighting. • Different from previous semantic-based methods, while using semantic guidance, a new region-WPL is used. The network layer simultaneously learns the contribution and local illumination of different regions in the image at each scale. It can, thus, effectively solve the illumination estimation error caused by the semantic segmentation error. • A large strip is used in the convolution to replace the max pooling layer in the network, which improves the speed of light estimation without reducing accuracy.
11The rest of this article is organized as follows. In section 2, the structure of the proposed network and training strategy is presented, together with the related experimental content in section 3. Conclusions are given in section 4.
MULTI-SCALE REGION-WEIGHED NETWORK GUIDED BY SEMANTICS
12Following the widely accepted simplified diagonal model (Finlayson et al., 1994;Funt and Lewis, 2000), the color of the light source is represented as
13where I c = {I r , I g , I b } is the color image under an unknown light source, R c = {R r , R g , R b } the color image recorded by a whitelight source, and E c = {E r , E g , E b } the light source needed to be estimated from I c .
14A new color-space model has been used by color-constancy methods Barron, 2015;Shi et al., 2016) in recent years and has certain advantages, i.e., log − uv space. 2 The calculation method proceeds as follows:
15(2)
16After estimating the light, it can be converted back to RGB space through a very simple formula:
17is the image in RGB color space.
Problem Formulation
18Generally, we only know the image I c under an unknown light source E c that must be estimated. The goal of color constancy is to estimate E c from I c and then compute it as E c = I c /R c . How do we estimate E c from I c ? To address this problem, we formulate color constancy as a regression problem. First, we obtain the semantic context of the image, and for this, we use PSPNet , defined as I s , and then convert I c from RGB space to log − uv space to obtain (I u , I v ). Combining these three channels into a new three-channel image I n , the aim is to find a mapping f θ such that f θ (I n ) = P uv , where P uv represents the light value in log − uv space.
19As mentioned earlier, the objects in the scene have a great effect on the color constancy of human vision (Van De Weijer et al., 2007;Gao et al., 2019). Therefore, the designed colorconstancy algorithm should imitate the human visual system, i.e., the mapping f θ should be able to be based on semantic information and is used to support the larger contribution area and suppress the smaller contribution area in the image. Therefore, two aspects must be considered in the model: First, one must find a way to estimate the illumination of each area in the image, and, second, one must use an adaptive algorithm to integrate the illumination of these multiple areas into a global illumination. Supposing that R = R 1 , R 2 , ..., R n represents n nonoverlapping regions in the image I c , E uv i represents the estimated scene illumination of the ith area R i . Therefore, the mapping f θ can be expressed as follows:
20where w(R i ) represents the contribution of each area to the illumination estimation, i.e., the weight. In other words, if R i contains the semantic context information, the corresponding w(R i ) has a higher weight value.
Network Architecture
21It can be seen from Equation (4) that it is necessary to design a network structure f θ to be able to calculate w(R i ) and E i uv in each area. The network structure is shown in Figure 1.
22We learn P uv at different scales from the intermediate features with scales of 1/16, 1/32, and 1/64. Defining the superscript j to represent the scale, P uv j then represents the estimated illumination in log − uv space under the jth scale, which is converted back to RGB space according to Equation (3) to obtain P c j , where c = R, G, B. Finally, the final illumination P c in RGB color space is obtained by simple calculation of the obtained illumination on different scales, and the formula is:
23where C j represents the weight of the illumination obtained at each scale. In this article, j = 1, 2, 3. In the final illumination calculation, it is assumed that the estimated illumination at different scales contributes the same to the scene illumination, namely, C j = 1/3, j = 1, 2, 3.
Weight-Pooling Layer
24In most of the previous methods, the extracted features are directly calculated through several fully connected layers to obtain a global illumination. However, it can be seen from the results of the earlier literature that the effect of illumination estimation is not significantly improved. Referring to Hu et al. (2017), we used a custom network layer, called a WPL, the main function of which is to converge the regional illumination into a global illumination, and at the same time, learn the weight w(R i ) of each area; R i represents the ith area. The WPL on each scale is expressed as follows:
25where P j represents the output of the WPL layer in the jth scale, w i j the contribution of each region that must be learned on the jth scale, E i j the illumination of the i area on the jth scale that must be learned, and n represents the number of areas. In this study, each scale is n =
Illumination Fusion for Multiple Scales
26We made a simple attempt to determine how to select illumination at multiple scales, and we used several samples to train the 3 classification problems, hoping to obtain the probability of illumination at different scales. However, the training process model is difficult to converge and the effect is not ideal. Finally, for the sake of simplicity, it is assumed that each scale has the same contribution to the illumination estimation, so the average value of 3-scale illumination is taken as the final illumination in this section 3 , and the results also show that the It can be seen from the figure that under different scales, due to different area sizes, the estimated illumination is also different, but the overall color is basically the same.
27where Loss j is the loss function of the jth scale, E e is the illumination estimated by the network, E t is the ground truth illumination, and N represents the batch of the training samples. The loss is minimized using stochastic gradient descent with standard back-propagation.
Discussion of Network Structure
28Either shallower (i.e., Shi et al. 2016) or deeper networks (i.e., VGG-net Simonyan and Zisserman 2014) could replace the prefeature extraction in the proposed system. However, due to the color-constancy problem, the best network for feature extraction should have enough capacity to distinguish ambiguities and should be sensitive to different illuminants. We tried several common networks, such as AlexNet (Krizhevsky et al., 2012), VggNet16 (Simonyan and Zisserman, 2014), and VggNet19 (Simonyan and Zisserman, 2014), and they all achieved good results. Finally, to improve the computational efficiency of the network, we simplified AlexNet (Krizhevsky et al., 2012) and removed all of its pooling layers. The test results showed that the efficiency increased by approximately 4 and the accuracy by an average of 5.2%.
Datasets
29Because semantic information is needed in this study, we mainly used a semantic segmentation dataset, namely, the ADE20k dataset (Zhou et al., 2016). Meanwhile, we used PSPNET Zhou et al., 2017) 4 to segment the semantic information for Color Checker (Gehler et al., 2008;Zhou et al., 2017) and NUS 8-Camera datasets (Cheng et al., 2014). During the training process, 100 images with accurate semantic segmentation were manually selected from the Color Checker dataset (Gehler et al., 2008), and 200 images were extracted from the NUS 8-Camera dataset (Cheng et al., 2014).
30In addition, since the ADE20k dataset (Zhou et al., 2017) does not provide illumination information, it is assumed that the images in the ADE20k dataset are corrected white-balanced images, and we, therefore, visually selected 500 images with normal color. Different lights were then rendered according to the following equations:
31where (r i , g i , b i ) represents the simulated scene illumination. After simulation, more than 2,000 training images with illumination labels and accurate semantic information were obtained from the ADE20k (Zhou et al., 2017) dataset. These 2,000 images were cut, mirrored horizontally and vertically, and rotated from (−30 o , 30 o ), 90 o , 180 o , and a total of approximately 20,000 pieces of data were obtained. Similarly, the images selected from the Color Checker (Gehler et al., 2008) and NUS 8-Camera datasets (Cheng et al., 2014) were processed in the same way to obtain approximately 8,000 images. All 28,000 images were randomly cropped and normalized to 512×512 as network input. As in the previous study, 3-fold cross-validation was used for all of the datasets, and each one run was used for training, one for validation, and one for testing.
Metrics
32Color-constancy algorithms are often evaluated using a distance measure, such as Euclidean distance (Land, 1977;Buchsbaum, 1980), perceptual distances (Gijsenij et al., 2009), reproduction angular error (Finlayson et al., 2016), and angular error (Hordley and Finlayson, 2004;Cheng et al., 2014;Bianco et al., 2015;Shi et al., 2016). Within these metrics, the angular error is the most widely used in this field, and most of the existing works (Cheng et al., 2014;Bianco et al., 2015;Shi et al., 2016) that tested using the Color Checker (Gehler et al., 2008), NUS 8-Camera (Cheng et al., 2014), and ADE20k datasetd (Zhou et al., 2017) reported their performance in terms of the angular error in five indexes: Mean, Median, and TriMean of all errors; mean of the lowest 25% of errors (Best 25%); and mean of the highest 25% of errors (Worst 25%). Hence, in the present study, we also used these indexes. In particular, although we aimed to estimate the single illuminant in this study, we also tested performance on the popular outdoor multi-illuminant dataset (Arjan et al., 2012). The angular error between the estimated illuminant E e and ground-truth illuminant E * e is computed for each image as follows:
33The less the value of e is the better performance of the method.
Implementation Parameters
34In this subsection, the parameter settings for training our final model are given. Feature-extraction-network selection: Different network structures, such as AlexNet (Krizhevsky et al., 2012), VGGNet-19 (Simonyan and Zisserman, 2014), and SqueezeNet (Iandola et al., -hand side is the light estimated after using WPL and the right-hand side is that estimated without WPL). It can be seen that in an image with rich scenic content, the effect of using the WPL layer is significantly better than that of not using it. From the weighted image (the image after the weight is normalized, for which the gray value is high, the weight is large, and vice versa) and the local illumination image, different objects in the scene have different weights, and some contribute significantly. It can be seen from the estimated illumination and semantics that the illumination is also different in different semantic parts, and the approximate shape of the objects in the scene can be seen from the illumination image. Figure 2B, from which it can be seen that, although VGGNet-16 (Simonyan and Zisserman, 2014) and VGGNet-19 (Simonyan and Zisserman, 2014) network structures have a better effect than other networks, they take more time. Finally, considering effect and efficiency, the structure in Figure 1 is used in this study.
2016), were used to test performance. The comparison diagram is shown in
35Network input and output: We compared the performance of the model trained with (I u , I v , I t ) three-channel image input and (I u , I v ) two-channel input, and we tested the performance of different resolution images as network input. The comparison results are shown in Table 1. Considering effect and efficiency, the effect is the best when the network input image resolution is 512 and semantic information is used at the same time.
36For output, we tested the effects of Figures 2C,D. It can be seen that the effect is best when the scale is 4, but the time consumption is more than doubled when the scale is 3. Considering comprehensive effect and efficiency, we used 3 scales in the network. Figure 3 shows the intermediate results of estimating illumination at different 3 scales.
37Batch size and learning: For optimization, Adam (Kingma and Ba, 2014) was employed with a batch size of 64, and a basic learning rate of 0.0001 was set for training. We trained all of the experiments over 4,000 epochs (2,50,000 iterations with batch size 64). The average angular error is calculated in the Color Checker dataset for every 20 epochs. The curve is shown in Figure 2A. Figure 4 shows the resulting image and local illumination after different numbers of epochs. (Gehler et al., 2008).
Method
38Mean Median TriMean Best 25% Worst 25% 95th percentile
39White-Patch (Brainard and Wandell, 1986) 7.55 5.68 6.35 1.45 16.12 -Edge-based Gamut (Barnard, 2000) 6.52 5.04 5.43 1.90 13.58 -Gray-World (Buchsbaum, 1980) 6.36 6.28 6.28 2.33 10.58 11.3
401st-order Gray-Edge 5.33 4.52 4.73 1.86 10.03 11.0
412nd-order Gray-Edge 5.13 4.44 4.62 2.11 9.26 -Shades-of-Gray (Finlayson and Trezzi, 2004) 4.93 4.01 4.23 1.14 10.20 11.9
42Bayesian (Gehler et al., 2008) For each metric, red indicates the best performance and blue indicates the second-best performance.
Comparison With State-of-the-Art Methods
43To evaluate the performance of the proposed method and the influence of the WPL layer on the method. We trained two models. One used the mean value when the local region converges to the global, which is defined as MSRWNS-AVG, the other model used the WPL layer, which is defined as MSRWNS. In addition, we also estimated the illumination effect at each scale, defined as MSRWNS-1, MSRWNS-2, and MSRWNS-3. Several visualizations of processing outputs obtained using the proposed method are presented in Figure 5.
44The quantitative performance comparison on the Color Checker dataset is presented in Table 2 and the results on the NUS 8-Camera dataset in Table 3. The performance comparisons on the ADE20k (Zhou et al., 2017), SFU Lab dataset (Barnard et al., 2010), and SFU Gray-Ball dataset (200,2003) are shown in Tables 4-6, respectively. Most CNN-based methods compare the effects on only two datasets, Color Checker dataset and NUS 8-Camera dataset. In order to make the comparison results consistent, the data in Tables 2, 3 are from Shi et al. (2016), while others were trained by us with the same training samples mentioned in the datasets section.
45In addition, we compared our method with most of the existing works; typical works include the Deep Specialized Network (DS-Net) and Fully Convolutional Color Constancy with confidence-weighted pooling (FC4) (Hu et al., 2017). Several visualizations of testing outputs obtained using the proposed method are presented in Figures 6, 7.
46From Tables 2, 3, it can be seen that the mean error of the proposed method is reduced by 12.3% on the Color Checker dataset and by 5.8% compared to DS-Net , and reduced by 7.3% on the Color Checker dataset and reduced by 0.5% compared to FC4 (Hu et al., 2017). In addition, using the WPL layer under a single scale gives a better result than that obtained using the mean. The effect of using the mean of three scales on most indicators is better than the result of using a single scale.
47In particular, the proposed method shows the best performance on the ADE20k (Zhou et al., 2017) dataset. The mean angular error is lower than that of DS-Net by 29.7% (from 1.68 to 1.18), and the mean error of the worst 25% was reduced by 25.6% (from 3.86 to 2.87) compared to DS-Net . Other indicators have also been reduced to a certain extent. The reason for these results is that (Cheng et al., 2014).
Method
48Mean Median TriMean Best 25% Worst 25%
49White-Patch (Brainard and Wandell, 1986) Edge-based Gamut (Barnard, 2000) 8.43 7.05 7.37 2.41 16.08
50Pixel-Based Gamut (Gehler et al., 2008) 7.70 6.71 6.90 2.51 14.05
51Intersection-based Gamut (Gehler et al., 2008) 7.20 5.96 6.28 2.20 13.61
52Gray-World (Buchsbaum, 1980) 4.14 3.20 3.39 0.90 9.00
53Bayesian (Gehler et al., 2008) 3 Shades-of-Gray (Finlayson and Trezzi, 2004) 3.40 2.57 2.73 0.77 7.41
54Spatio-spectral (ML) (Hirakawa et al., 2012) 3.11 2.49 2.60 0.82 6.59
552nd-order Gray-Edge 3.20 2.26 2.44 0.75 7.27
56Bright Pixels (Joze et al., 2012) 3.17 2.41 2.55 0.69 7.02
571st-order Gray-Edge 3.20 2.22 2.43 0.72 7.36
58Spatio-spectral (GenPrior) (Hirakawa et al., 2012) For each metric, red indicates the best performance and blue indicates the second-best performance. -Ball dataset (200, 2003).
Method Mean Median TriMean
59Best 25% Worst 25%
60CCC (disc+ext) (Barron, 2015) 3.31 1.66 1.82 0.32 4.24
61CNN (Bianco et al., 2015) 2.96 1.32 1.14 0.23 3.94 For each metric, red indicates the best performance and blue indicates the second-best performance. the semantic segmentation model used is trained based on the ADE20k (Zhou et al., 2017) dataset. The accuracy of the semantics on this dataset is high, and there are parts of training data in the ADE20k dataset (Zhou et al., 2017).
DS-Net
62In addition, we also provided several natural examples captured by a Canon D7100 without auto-white-balance 5 , as shown in Figure 7, and we obtained several images of natural scenes with more accurate colors from the Internet, and then performed some random color casting. Results are shown in Figure 8.
63It can be seen From Figure 7 that on the image taken indoors (the first line in Figure 7) the image corrected by a CNN (Bianco et al., 2015) is obviously yellowish, and that corrected by DS-Net is slightly greenish. The white-balance effect of the camera and our result is similar and look relatively natural. In outdoor scenes, it can be seen from the second line that the image corrected by a CNN (Bianco et al., 2015) has a very obvious color cast. The other types are visually more natural. Our results are seen in the sky part of the image, in which the clouds are more realistic. The scene in the third row exhibits little difference in visual effects. This may be due to sufficient sunlight in the shooting scene, and the objects in the scene receive very uniform illumination. In this way, any method can obtain better results more accurately. From Figure 8, it can be found from the first row that, although there is a phenomenon of highlight overflow in some areas of the sky (due to random color casts leading to pixel overflow in some areas), the overall color is close to that of the real image; the second row is due to the random color cast. The resulting color cast is small and the corrected image is basically the same as the original image. In the third row, it can be seen that, although the corrected image is different from the original image, the visual perception is better.
Efficiency
64The code used to test the efficiency of the proposed method is based on Tensorflow (Rampasek and Goldenberg, 2016) and training took approximately 5 h, after which the loss tended to stabilize. In the testing phase, we converted the model to that of Caffe (Jia et al., 2014), implemented the WPL layer with C++ under Caffe, and finally used C++ code for testing. An average image took 34 ms on a CPU and only 12 ms on a GPU (the time does not include semantic segmentation) 6 .
Adaptation for Multi-Illuminant
65As mentioned in this article, the proposed method aims to solve the color constancy under a single illuminant, and we only compare our algorithm with existing single illuminant based methods. In addition, after the WPL layer, we can get
CONCLUSION
66In this article, we proposed a learning based multi-scale region weighed network guided by semantics (MSRWNS) to estimate the illuminated color of the light source in a scene. Cued by the human brain's processing of color constancy, we used image semantics and scale information to guide the process of illumination estimation. First, we put an image and its semantic mask into the network and, through a series of convolution layers, the region weights of the image at different scales were obtained. Then, through a WPL, the illumination estimation on each scale was obtained. Finally, we obtained the best estimation using the weighting on each scale, and state-of-the-art performance was achieved on three of the largest color-constancy datasets, i.e., the Color Checker, NUS 8-Camera, and ADE20k datasets. This study should prove applicable in the exploration of multi-scale and semantically directed networks for other fusion tasks in computer vision. In this study, we aim to solve the colorconstancy problem with a single light source, however, there are multiple light sources in the real world, in our future research, we will try to solve the problem of multiple illuminations. In addition, it is time-consuming to obtain semantics, in our future work, we will try to use semantic information only in the training phase, not in the illumination estimation phase. It can be seen from the first row that, although there is a phenomenon of highlight overflow in some areas of the sky (due to random color casts leading to pixel overflow in some areas), the overall color is close to the original image; the second row is due to the random color cast. The resulting color cast is small, and the corrected image is basically the same as the original image. In the third row, it can be seen that, although the corrected image is different from the original image, the visual perception is more realistic.
참고문헌 45건
- 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
- Edge-Based Color Constancy IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2007 10.1109/tip.2007.901808
- Mathematical model of the color constancy of the human visual system Journal of Optical Technology · Optica Publishing Group · 2002 10.1364/jot.69.000327
- 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
- Color constancy through inverse-intensity chromaticity space Journal of the Optical Society of America A · Optica Publishing Group · 2004 10.1364/josaa.21.000321
- Color Constancy Using Double-Opponency IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2015 10.1109/tpami.2015.2396053
- Diagonal versus affine transformations for color correction Journal of the Optical Society of America A · Optica Publishing Group · 2000 10.1364/josaa.17.002108
- Dichromatic illumination estimation without pre-segmentation Pattern Recognition Letters · Elsevier BV · 2008 10.1016/j.patrec.2008.01.004
- A spatial processor model for object colour perception Journal of the Franklin Institute · Elsevier BV · 1980 10.1016/0016-0032(80)90058-7
- A data set for color research Color Research & Application · Wiley · 2002 10.1002/col.10049
- Color Constancy Based on Image Similarity IEICE Transactions on Information and Systems · Institute of Electronics, Information and Communication Engineers · 2008 10.1093/ietisy/e91-d.2.375
- Perceptual analysis of distance measures for color constancy algorithms Journal of the Optical Society of America A · Optica Publishing Group · 2009 10.1364/josaa.26.002243
- The Retinex Theory of Color Vision Scientific American · Springer Nature · 1977 10.1038/scientificamerican1277-108
- Color constancy: a biological model and its application for still and video images Pattern Recognition · Elsevier BV · 2002 10.1016/s0031-3203(01)00160-1
- 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
- Response of the human visual system to variable illuminant conditions: An analysis of opponent-colour mechanisms in colour constancy Ophthalmic and Physiological Optics · Wiley · 2000 10.1016/s0275-5408(99)00027-7
- Computational Color Constancy: Survey and Experiments IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2118224
- Method for computing the scene-illuminant chromaticity from specular highlights Journal of the Optical Society of America A · Optica Publishing Group · 1986 10.1364/josaa.3.001694
- Standard surface-reflectance model and illuminant estimation Journal of the Optical Society of America A · Optica Publishing Group · 1989 10.1364/josaa.6.000576
- Color Constancy with Spatio-Spectral Statistics IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2011 10.1109/tpami.2011.252
- A comparison of computational color constancy Algorithms. II. Experiments with image data IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2002 10.1109/tip.2002.802529
- Improving Color Constancy Using Indoor–Outdoor Image Classification IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2008 10.1109/tip.2008.2006661
- Intrinsic Images by Entropy Minimization Lecture notes in computer science · Springer Science+Business Media · 2004 10.1007/978-3-540-24672-5_46
- 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
- Caffe 2014 10.1145/2647868.2654889
- Color Constancy for Multiple Light Sources IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2165219
- ImageNet Classification with Deep Convolutional Neural Networks Neural Information Processing Systems · 2012
- Using High-Level Visual Information for Color Constancy 2007 10.1109/iccv.2007.4409109
- TensorFlow: Biology’s Gateway to Deep Learning? Cell Systems · Elsevier BV · 2016 10.1016/j.cels.2016.01.009
- SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size arXiv (Cornell University) · Cornell University · 2016
- Neural inspired color constancy model based on double opponent neurons 2008 10.14711/thesis-b1029311
- The Reproduction Angular Error for Evaluating the Performance of Illuminant Estimation Algorithms IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2016 10.1109/tpami.2016.2582171
- Pyramid Scene Parsing Network 2017 10.1109/cvpr.2017.660
- Scene Parsing through ADE20K Dataset 2017 10.1109/cvpr.2017.544
- Combining Bottom-Up and Top-Down Visual Mechanisms for Color Constancy Under Varying Illumination IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2019 10.1109/tip.2019.2908783
- Semantic Understanding of Scenes through the ADE20K Dataset arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1608.05442
- Cascading Convolutional Color Constancy Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2020 10.1609/aaai.v34i07.6966
- Deep White-Balance Editing 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2020 10.1109/cvpr42600.2020.00147
- How does Color Constancy Affect Target Recognition and Instance Segmentation? Proceedings of the 30th ACM International Conference on Multimedia · 2021 10.1145/3474085.3475690
- Seeing Black and White 2006 10.1093/acprof:oso/9780195187168.001.0001
- Color Constancy through Inverse-Intensity Chromaticity Space Springer eBooks · Springer Nature · 2008 10.1007/978-0-387-75807_16
- Response of the human visual system to variable illuminant conditions: An analysis of opponent‐colour mechanisms in colour constancy Ophthalmic and Physiological Optics · Wiley · 2000 10.1046/j.1475-1313.2000.00471.x
- Re-evaluating colour constancy algorithms Proceedings of the 17th International Conference on Pattern Recognition, 2004. ICPR 2004. · 2004 10.1109/icpr.2004.1334009
- 2009 IEEE Conference on Computer Vision and Pattern Recognition 2009 10.1109/cvpr14067.2009
- Proceedings of IEEE International Conference on Computer Vision 1995 10.1109/iccv.1995.466933