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

Bag of Color Features for Color Constancy

관련 필름·전자재료 · (15) 디스플레이 패널재료

기본 정보

저자
  1. Firas Laakom — Faculty of Information Technology and Communication Sciences, Tampere University, Tampere, Finland
  2. Nikolaos Passalis — Faculty of Information Technology and Communication Sciences, Tampere University, Tampere, Finland
  3. Jenni Raitoharju — Faculty of Information Technology and Communication Sciences, Tampere University, Tampere, Finland
  4. Jarno Nikkanen — INTEL, Tampere, Finland
  5. Anastasios Tefas — Department of Informatics, Aristotle University of Thessaloniki, Thessaloniki, Greece
  6. Alexandros Iosifidis — Department of Engineering, Aarhus University, Aarhus, Denmark
  7. Moncef Gabbouj — Faculty of Information Technology and Communication Sciences, Tampere University, Tampere, Finland
DOI
10.1109/tip.2020.3004921
저널
IEEE Transactions on Image Processing
발행년도
2020
발행기관
Institute of Electrical and Electronics Engineers
피인용수
33
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/tip.2020.3004921
토픽
Color Science and Applications
OpenAlex ID
W3105694456

평가 내용

관련도
관련
사업분야
필름·전자재료 · (15) 디스플레이 패널재료
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 디스플레이 패널재료' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

In this paper, we propose a novel color constancy approach, called Bag of Color Features (BoCF), building upon Bag-of-Features pooling. The proposed method substantially reduces the number of parameters needed for illumination estimation. At the same time, the proposed method is consistent with the color constancy assumption stating that global spatial information is not relevant for illumination estimation and local information (edges, etc.) is sufficient. Furthermore, BoCF is consistent with color constancy statistical approaches and can be interpreted as a learning-based extension of many statistical approaches. To further improve the illumination estimation accuracy, we propose a novel attention mechanism for the BoCF model with two variants based on self-attention. BoCF approach and its variants achieve competitive, compared to the state of the art, results while requiring much fewer parameters on three benchmark datasets: ColorChecker RECommended, INTEL-TUT version 2, and NUS8.

본문 67,557자

본문 펼치기
## Bag of Color Features for Color Constancy Firas Laakom, Nikolaos Passalis, Jenni Raitoharju, _Member,_ _IEEE,_ Jarno Nikkanen, Anastasios Tefas, _Member,_ _IEEE_, Alexandros Iosifidis, _Senior_ _Member,_ _IEEE_, and Moncef Gabbouj, _Fellow,_ _IEEE_ _Abstract_ —In this paper, we propose a novel color constancy approach, called Bag of Color Features (BoCF), building upon Bag-of-Features pooling. The proposed method substantially reduces the number of parameters needed for illumination estimation. At the same time, the proposed method is consistent with the color constancy assumption stating that global spatial information is not relevant for illumination estimation and local information (edges, etc.) is sufficient. Furthermore, BoCF is consistent with color constancy statistical approaches and can be interpreted as a learning-based extension of many statistical approaches. To further improve the illumination estimation accuracy, we propose a novel attention mechanism for the BoCF model with two variants based on self-attention. BoCF approach and its variants achieve competitive, compared to the state of the art, results while requiring much fewer parameters on three benchmark datasets: ColorChecker RECommended, INTEL-TUT version 2, and NUS8. _Index Terms_ —Color constancy, illumination estimation, bag of features, attention mechanism. I. INTRODUCTION OLOR constancy in general is the ability of an imaging system to discount the effects of illumination on the # C observed colors in a scene [1], [2]. When a person stands in a room lit by a colorful light, the Human Visual System (HVS) unconsciously removes the lightening effects and the colors are perceived as if they were illuminated by a neutral, white light. While this ability is very natural for the HVS, mimicking the same ability in a computer vision system is a challenging and under-constrained problem. Given a green pixel, one can not assert if it is a green pixel under a white illumination or a white pixel lit with a greenish illumination. Manuscript received June 15, 2019; revised December 11, 2019, February 29, 2020, and April 14, 2020; accepted June 12, 2020. Date of publication July 1, 2020; date of current version July 14, 2020. This work was supported in part by the NSF-Business Finland Center for Visual and Decision Informatics Project (CVDI) and in part by the Project AMALIA, through the Intel Finland under Grant 3333/31/2018. The associate editor coordinating the review of this manuscript and approving it for publication was Dr. Yun Fu. _(Corresponding_ _author:_ _Firas_ _Laakom.)_ Firas Laakom, Nikolaos Passalis, Jenni Raitoharju, and Moncef Gabbouj are with the Faculty of Information Technology and Communication Sciences, Tampere University, FI-33014 Tampere, Finland (e-mail: firas.laakom@tuni.fi; nikolaos.passalis@tuni.fi; jenni.raitoharju@tuni.fi; moncef.gabbouj@tuni.fi). Jarno Nikkanen is with INTEL, FI-33720 Tampere, Finland (e-mail: jarno.nikkanen@intel.com). Anastasios Tefas is with the Department of Informatics, Aristotle University of Thessaloniki, 54124 Thessaloniki, Greece (e-mail: tefas@aiia. csd.auth.gr). Alexandros Iosifidis is with the Department of Engineering, Aarhus University, 8200 Aarhus, Denmark (e-mail: alexandros.iosifidis@eng.au.dk). Digital Object Identifier 10.1109/TIP.2020.3004921 Nonetheless, illumination estimation is considered an important component of many higher level computer vision tasks such as object recognition and tracking. Thus, it has been extensively studied in order to develop reliable color constancy systems which can achieve illumination invariance to some extent [1], [3]. The RGB image value _ρ(x, y)_ in the position _(x, y)_ of an image can be expressed as a function depending on three key factors [3]: the illuminant distribution _I_ _(x, y, λ)_, the surface reflectance _R(x, y, λ)_ and the camera sensitivity _S(λ)_, where _λ_ is the wave length. This dependency is expressed as _λ_ where _I_ is the global illumination, i.e., it is assumed constant over the scene. Recently, deep learning approaches and Convolutional Neural Networks (CNNs) in particular have become dominant in almost all computer vision tasks, including color constancy [5]–[8], due to their ability to take raw images directly as input and incorporate feature extraction in the learning process [9]. Despite their accuracy in estimating illumination across multiple datasets [6], [10], [11], deploying CNN-based approaches on low computational power devices, e.g., mobile devices, is still limited, since most of the high-accuracy deep models are computationally expensive [6]–[8], which make them inefficient in terms of time and energy consumption. Additionally, most of the available datasets for illumination estimation are rather small-scale [10], [12], [13] and hence not suitable for training large models. For this purpose, many state of the art approaches [5], [6] rely on pre-trained networks to overcome this limitation. On the other hand, these pre-trained networks [9], [14] are originally trained for a classification task. Thus, they are usually agnostic to the illumination color. This makes their usage in color constancy counter-intuitive as the illumination information is distorted in the early pretrained layers. An alternative approach is of course to reduce the number of model parameters in order to use existing datasets, as shallower models, in general, need less examples to learn. _ρ(x, y)_ = _I_ _(x, y, λ)R(x, y, λ)S(λ)dλ._ (1) _λ_ Color constancy methods [3], [4] aim to estimate a uniform projection of _I_ _(x, y, λ)_ on the sensor spectral sensitivities _S(λ)_, i.e., _I_ = _I_ _(x, y)_ = _I_ _(x, y, λ)S(λ)dλ,_ (2) This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ Fig. 1. Building blocks of Bag of Color Features (BoCF) approach for illumination estimation. Furthermore, in [13], [15] it is argued that global spatial information is not an important feature in color constancy. The local information, i.e., the color distribution and the color gradient distribution (i.e. edges) can be sufficient to extract the illumination information [13]. Thus, using regular neural networks configurations to extract deep features is counter-intuitive in this particular problem. To address these drawbacks and challenges, we propose in this paper a novel color constancy deep learning approach called Bag of Color Features (BoCF). BoCF uses Bag-of-Features Pooling [16], which takes advantage of the ability of CNNs to learn relevant shallow features while keeping the model suitable for low-power hardware. Furthermore, the proposed approach is consistent with the assumption that global spatial information is not relevant [13], [15] for color illumination estimation. Bag-of-Features Pooling is a neural extension [16], [17] of the famous Bag-of-Features model (BoF), also known as Bag-of-Visual Words (BoVW) [18], [19]. BoFs are widely used in computer vision tasks, such as action recognition [20], object detection/recognition, sequence classification [21], and information retrieval [22]. A BoF layer can be combined with convolutional layers to form a powerful convolutional architecture that is end-to-end trainable using the regular backpropagation algorithm [17]. The block diagram of the proposed BoCF model is illustrated in Figure 1. It consists of three main blocks: feature extraction block, Bag of Features block, and an estimation block. In the first block, regular convolutional layers are used to extract relevant features. Inspired by the assumption that second order gradient information is sufficient to extract the illumination information [13], we use only two convolutional layers to extract the features. In our experiments, we also study and validate this hypothesis empirically. In the second block, i.e., the Bag of Features block, the network learns the dictionary using back-propagation [17] over the non linear transformation provided by the first block. This block outputs a histogram representation, which is fed to the last component, i.e., the estimation block, to regress to the scene illumination. In most CNN-based approaches used to solve the color constancy problem [5]–[8], fully connected layers are connected directly to a flattened version of the last convolutional layer output. This increases the numbers of parameters dramatically, as convolutional layer outputs usually have a high dimensionality. In the proposed method, we address this problem by introducing an intermediate pooling block, i.e., the Bag of Features block, between the last convolutional layer and the fully connected layers. The proposed model achieves comparable results to previous state of the art illumination estimation methods while substantially reducing the number of the needed parameters, by up to 95%. Additionally, the pooling process natively discards all global spatial information, which is, as discussed earlier, irrelevant for color constancy. Using only two convolutional layers in the first block limits the model to only shallow features. These two advantages make the proposed approach both consistent and in full corroboration with statistical approaches [13]. To further improve the performance of the proposed model, we also propose two variants of a self-attention mechanism for the BoCF model. In the first variant, we add an attention mechanism between the feature extraction block and the Bag of Features block. This mechanism allows the network to dynamically select parts of the image to use for estimating the illumination, while discarding the remaining parts. Thus, the network becomes robust to noise and irrelevant features. In the second variant, we add an attention mechanism on top of the histogram representation, i.e., between the Bag of Features block and the estimation block. In this way, we allow the network to learn to adaptively select the elements of the histogram which best encode the illuminant information. The model looks over the whole histogram after the spatial information has been discarded and generates a proper representation according the current context (histogram). The introduced dynamics will be shown in the experiments to enhance the model performance with respect to all evaluation metrics and across all the datasets. The main contributions of the paper are as follows: - From the application side, we propose a novel CNNbased color constancy method, called Bag of Color Features (BoCF), which is light weight and able to achieve comparable results across multiple datasets compared to the state of the art. - From the interpretability side, we establish explicit links between BoCF and prior statistical methods for illumination estimation and show that the proposed method can be framed as a learning-based extension of many statistical approaches. Thus, this powerful approach fills the gap and provides the missing links between CNN-based approaches and static approaches. - From the methodology side, we propose two novel attention mechanisms for BoCF that can further boost the performance of neural BoF compared to the standard BoF in the color constancy problem. To the best of our knowledge, this is the first work which combines an attention mechanism with Bag-of-Features Pooling. - The proposed method is extensively evaluated over three datasets showing a competitive performance with respect to the existing state of the art, while substantially reducing the number of parameters. The rest of this paper is organized as follows. Section II provides the background of color constancy approaches and a brief review of the Bag-of-Features Pooling technique and the attention mechanism used in this work. Section III details the proposed approach along with the two attention mechanisms based variants. Section IV introduces the datasets and the evaluation metrics used in this work along with the evaluation procedure. Section V presents the experimental results on three datasets: ColorChecker RECommended [12], NUS8Dataset [13], and INTEL-TUT version2 [10]. In Section VI, we highlight the links between our approach and many existing methods and we show how our approach can be considered as a generic framework for expressing existing approaches. Section VII concludes the paper. II. RELATED WORK _A._ _Color_ _Constancy_ Typically, two types of color constancy approaches are distinguished, namely static methods and supervised methods. The former involves methods with static parameters settings that do not need any labeled image data for learning the model, while the latter are data-driven approaches that learn to estimate the illuminant in a supervised manner using labeled data. _1)_ _Static_ _Methods:_ Static methods exploit the statistical or physical properties of a scene by making assumptions about the nature of colors. They can be classified into two categories: methods based on low-level statistics [23]–[26] and methods based on the physics-based dichromatic reflection model [4], [15], [27], [28]. A number of approaches belonging to the first category were unified by Van de Weijer _et_ _al._ [25] into a single framework, where the illumination _I_ <sup>_est_</sup> is estimated as follows: | ▽ <sup>_n_</sup> _ρσ_ _(x, y)_ | <sup>_p_</sup> _dxdy)_ _I_ <sup>_est_</sup> _(n, p, σ)_ = <sup>1</sup> _k_ <sup>_(_</sup> _x_ the color distribution in the scene to build their estimations, Gray-Edge method [25] utilizes image derivatives. Instead of the global average color, Gray-Edge methods _(n_ = 1 _,_ _p_ = _p, σ_ = _σ)_ assume that the average color of edges or the gradient of edges is gray. The illuminant’s color is then estimated as the shift of the average edge color from gray. Physics-based dichromatic reflection models estimate the illumination by analyzing the scene and exploiting the physical interactions between the objects and the illumination. The main assumption of most methods in this category is that all pixels of a surface form a plane in RGB color space. As a scene contains multiple surfaces, this results in multiple planes. The intersection between these planes is used to compute the color of the light source [27]. Lee _et_ _al._ [15] exploited the bright areas in the captured scene to obtain an estimate of the illuminant color. In this work, we establish links between our proposed approach, BoCF, and several static methods. We show that BoCF can be interpreted as a learningbased extension of several of these approaches. _2)_ _Supervised_ _Methods:_ Supervised methods can be further divided into two main categories: characterization-based methods [29], [30] and training-based methods [5], [6], [31], [32]. The former involves ’light’ training processes in order to learn the characterization of the camera response in some way, while the latter involves methods that try to learn the illumination directly from the scene. Gamut Mapping [29], [30] is one of the most famous characterization-based approaches. It assumes that, for a given illumination condition, only a limited number of colors can be observed. Thus any unexpected variation in the observed colors is caused by the light source illuminant. The set of colors that can occur under a given illumination, called canonical gamut, is first learned in a supervised manner. In the evaluation, an input gamut which represents the set of colors used to acquire the scene is constructed. The illumination is then estimated by mapping this input gamut to the canonical gamut. Fast Fourier Color Constancy (FFCC) method [33] reformulated the color constancy problem as a spatial localization task in the Fourier domain. Another group of training-based methods combines different illumination estimation approaches and learns a model that uses the best performing method or a combination of methods to estimate the illuminant of each input based on the scene characteristics [31]. Bianco _et_ _al._ used indoor/outdoor classification to select the optimal color constancy algorithm given an input image [32]. Lu _et_ _al._ proposed an approach which exploits 3D scene information for estimating the color of a light source [34]. However, these methods tend to overfit and fail to generalize to all scene types. The first attempt to use Convolutional Neural Networks (CNNs) for solving the illuminant estimation problem was established by Bianco _et_ _al._ in [5], where they adopted a CNN architecture operating on small local patches to overcome the data shortage. In the testing phase, a map of local estimates is pooled to obtain one global illuminant estimate using median or mean pooling. Hu _et_ _al._ [6] introduced a pooling layer, namely confidence-weighted pooling. In their fully convolutional network, they incorporate learning the 1 _p,_ (3) _y_ where _n_ denotes the derivative order, _p_ the Minkowski norm and _k_ the normalization constant for _I_ <sup>_est_</sup> . Also, _ρσ_ _(x, y)_ = _ρ(x, y)_ ∗ _gσ_ _(x, y)_ denotes the image convolution with a Gaussian filter with a scale parameter _σ_ . This framework allows for deriving different algorithms simply by setting the appropriate values for _n_, _p_ and _σ_ . The well-known GrayWorld method [24], corresponding to _(n_ = 0 _, p_ = 1 _,_ _σ_ = 0 _)_, assumes that under a neutral illumination the average reflectance in a scene is achromatic and the illumination is estimated as the shift of the image average color from gray. WhitePatch [23] _(n_ = 0 _, p_ = ∞ _, σ_ = 0 _)_, assumes that the maximum values of RGB color channels are caused by a perfectly reflecting surface in the scene. Therefore, the illumination components correspond to these maximum values. Besides Gray-World and White-Patch methods, which make use of confidence of each patch of the image in an end-to-end learning process. Patches in an image can carry different confidence weights according to their estimated accuracy in predicting the illumination. Shi _et_ _al._ [7] proposed a network with two interacting sub-networks to estimate the illumination. One sub-network, called the hypothesis network, is used to generate multiple plausible illuminant estimations depending on the patches in the scene. The second sub-network, called the selection network, is trained to select the best estimate generated by the first sub-network. Inspired by the success of Generative Adversarial Networks (GANs) in image to image translation [35], Das _et_ _al._ formulated the illumination estimation task as an image-to-image translation task [36] and used a GAN to solve it. However, these CNN-based methods suffer from certain weaknesses: computational complexity and disconnection with both the illumination assumption [13] and the prior static methods, e.g., Grey-World [24] and WhitePatch [23]. This paper attempts to cure these drawbacks by proposing a novel CNN approach, BoCF, which discards the global spatial information in agreement with [13] and [25], and is competitive with the training-based methods while using only 5% of the parameters. _B._ _Bag-of-Features_ _Pooling_ Passalis and Tefas proposed a Bag-of-Features Pooling (BoFP) layer [16], [17], which is a neural extension of the Bag-of-Features model (BoF). BoFPL can be combined with convolutional layers to form a powerful architecture which can be trained end-to-end using the regular back-propagation algorithm [17], [37]. In this work, we use this pooling technique to learn the codebook of color features. Thus, the naming Bag of Color Features (BoCF). This pooling discards all the global spatial information and outputs a fixed length histogram representation. This allows us to reduce the large number of parameters usually needed when linking convolutional layers to fully connected layers. Furthermore, discarding global spatial information forces the network to learn to extract the illumination without global spatial inference, thus improving model robustness and adhering to the illumination assumption [13]. As an additional novel feature to the prior works using Bag-of- Features Pooling [17], [37], we propose an attention mechanism to enable the model to discard noise and focus only on relevant parts of the input presentation. To the best of our knowledge, this is the first work which combines attention mechanisms with Bag-of-Features Pooling. _C._ _Attention_ _Mechanisms_ Attention mechanisms were introduced in Natural Language Processing (NLP) [38] for sequence-to-sequence (seq2seq) models in order to tackle the problem of short-term memory faced in machine translators. They allow a machine translator to see the full information contained in the original input and then generate the proper translation for the current word. More specifically, they allow the model to focus on local or global features, as needed. Self-attention [39], also known as intraattention, is an attention mechanism relating different positions of a single sequence in order to compute a representation of the same sequence. In other words, the attention mask is computed directly from the original sequence. This idea has been exported to many other problems in NLP and computer vision such as machine reading [40], text summarization [41], [42], and image description generation [43]. In [43], self-attention is applied to an image to enable the network to generate an attention mask and focus on the region of interest in the original image. Attention in deep learning can be broadly interpreted as a mask of importance weights. In order to evaluate the importance of a single element, such as a pixel or a feature in general, for the final inference, one can form an attention vector by estimating how strongly the element is correlated with the other elements and use this attention vector as a mask when evaluating the final output [43]. Let x = [ _x_ 1 _, . . ., xn_ ] ∈ R <sup>_n_</sup> be a vector. The goal of a self-attention mechanism is to learn to generate a mask vector v ∈ R <sup>_n_</sup> depending only on x, which encodes the importance weights of the elements of x . Let _f_ be a mapping function between x and v . The dependency can be expressed as follows: v = _f (_ x _)_ = [ _v_ 1 _, . . ., vn_ ] _,_ (4) under the constraint: - _n_ _i_ =1 _vi_ = 1 _._ (5) After computing the mask vector v, the final output of the attention layer y is computed as follows: y = [ _y_ 1 _, . . ., yn_ ] = [ _x_ 1 _v_ 1 _, . . ., xnvn_ ] _._ (6) The concept of attention, i.e., focusing on particular regions to extract the illumination information in color constancy, can be rooted back to many statistical approaches. For example, White-Patch reduces this region to the pixel with the highest RGB values. Other methods, such as [15] focus on the bright areas in the captured scene, called specular highlights. Instead of making such a strong assumption on the relevant regions, in BoCF we allow the model to learn to extract these regions dynamically. In FC4 [6], the concept of confidence maps resembles attention, as the network learns to assign a confidence score to each patch. To the best of our knowledge, this is the first work, which directly uses attention mechanisms in the color constancy problem. III. PROPOSED APPROACH In order to reduce the number of parameters needed to learn the illumination [6], [7], we propose a novel color constancy approach based on the Bag-of-Features Pooling [17], called herein the BoCF approach. The proposed approach along with the novel attention variants is illustrated in Figure 2. The proposed model has three main blocks, namely the feature extraction, the Bag of Features, and the illumination estimation blocks. In the first block, a nonlinear transformation of a raw image is obtained. In the second block, a histogram representation of this transformation is compiled. This histogram is used in the third block to estimate the illumination. For the first variant of attention, as illustrated in Figure 2 (in red), the attention is applied on the image representation before the BoF, whereas for the second variant (in green) it is applied on the histogram output of the BoF. _A._ _Feature_ _Extraction_ The feature extraction algorithm takes a raw image as an input and outputs a nonlinear transformation representing the image features. A CNN is used in this block. CNNs are known for their ability to extract relevant features directly from raw images. Technically, any CNN architecture can be used in this block. However, we observed in our experiments that only two convolutions followed by downsampling layers, e.g., maxpooling yields satisfactory results. This is in accordance with the assumption of statistical methods that the second order information is enough to estimate the illumination [13], [25]. After a raw image is fed to the feature extraction block, the output of the last convolutional layer is used to extract feature vectors that are subsequently fed to the next block. The number of extracted feature vectors depends on the size of the feature map and the used filter size as described in [17]. _B._ _Bag-of-Features_ The Bag-of-Features is essentially a codebook (dictionary) learning component. The output features of the previous block are pooled using the Bag-of-Features Pooling and mapped to a final histogram representation. During training, the network optimizes the codebook using the traditional back-propagation. The output of this block is a histogram of a fixed size, i.e., the size of the codebook, which is a hyper-parameter that needs to be tuned to avoid over-fitting. This approach discards all global spatial information. As described in [17], the Bag-ofFeatures Pooling is composed of two sub-layers: an RBF layer that measures the similarity of the input features to the RBF centers and an accumulation layer that builds the histogram of the quantized feature vectors. The normalized output of each RBF neuron can be expressed as _exp(_ −|| x - y _k_ || _/mk)_ [ _�(_ x _)_ ] _k_ = - _j_ <sup>_exp(_</sup> <sup>−||</sup> <sup>x</sup> <sup>−</sup> <sup>y</sup> _j_ <sup>||</sup> <sup>_/m j_</sup> <sup>_),_</sup> (7) where x is a feature vector (output of the feature extraction block), y _k_ is the center of the k-th RBF neuron, _exp_ is the exponential function, and _mk_ is a scaling factor. The output of the RBF neurons is accumulated in the next layer, compiling the final representation s of each image: s = <sup>1</sup> _N_ _j_ _�(_ x _j_ _),_ (8) Let s ∈ R <sup>_n_</sup> be the histogram compiled by the second block, the BoF block, as defined in Eq. 8. The intermediate layer output h ∈ R <sup>_m_</sup> of the illumination estimation block can be computed as follows h = _ϕ(_ W 1 s + b 1 _),_ (9) where W 1 ∈ R <sup>_n_</sup> <sup>×</sup> <sup>_m_</sup> is the weight matrix, b 1 ∈ R <sup>_m_</sup> is the bias vector, and _ϕ_ is the Rectified Linear Units (ReLU) activation function [44]. The final estimate I ∈ R <sup>3</sup> is computed as follows I = _φ(_ W 2 h + b 2 _),_ (10) where W 2 ∈ R <sup>_m_</sup> <sup>×3</sup> is the weight matrix, b 2 ∈ R <sup>3</sup> is the bias vector, and _φ_ is the _softmax_ activation function defined by _exp(ai)_ _φ(ai_ _)_ = - _j_ <sup>_exp(a j_</sup> <sup>_),_</sup> (11) _D._ _Attention_ _Mechanism_ _for_ _BoCF_ We introduce a novel attention mechanism in the BoCF model to enable the algorithm to dynamically learn to focus on a specific region of interest in order to yield a confident output. We combine self-attention, described in Section II-C, with the Bag-of-Features Pooling for the color constancy problem. We propose two variants of this mechanism which can be applied in our model. In the first variant, we apply attention on the nonlinear transformation of the image after the feature extraction block. This enables the model to learn to ’attend’ the region of the interest in the mapping and to reduce noise before pooling. By applying attention in this stage, the number of parameters will rise exponentially as we need as many parameters as features. In the second variant, we apply the attention mechanism on the histogram representation of the BoCF, i.e., after the global spatial information has been discarded. This enables the model to dynamically learn to ’attend’ to the relevant parts of the histogram which encode the illuminant information. In this variant, the attention mask size is equal to the size of the histogram. Thus, the number of additional parameters is relatively small. Following the notations of Eq. 4 and Eq. 5, x ∈ R <sup>_n_</sup> is the feature vector extracted from the CNN for the first mechanism or the histogram output for the second mechanism. The attention mask v ∈ R <sup>_n_</sup> is obtained via the following transformation: v = _φ(_ Wx + b _),_ (12) where W ∈ R <sup>_N_</sup> <sup>×</sup> <sup>_N_</sup> is a weight matrix, b ∈ R <sup>_N_</sup> is the bias. Using _softmax_ as _φ_ ensures that the masking constraint defined in (Eq. 5) is not violated. Finally, y, the final output of the attention mechanism, is computed using the following equation y = _λ(_ v ⊙ x _)_ + _(_ 1 − _λ)_ x _,_ (13) where ⊙ is the element wise product operator and _λ_ ∈ R is a weighting parameter between the original x and the masked x, i.e., v ⊙ x . _λ_ is a learnable parameter in our model. Not using where N is the number of feature vectors extracted from the last convolutional layer. _C._ _Illumination_ _Estimation_ In the illumination estimation block, we use a fully connected network, which takes as input the histogram formed in the previous block and outputs the illumination, i.e, 3-element vector containing an RGB value. To this end, we use a multilayer perceptron with only one hidden layer. Fig. 2. Proposed approach (basic, no attention) along with attention variants (Attention1 in red and Attention2 in green). An example input image is fed into the three different models and the corresponding three different outputs for the estimated illuminant are illustrated in the Figure. _λ_ and outputting only the masked histogram is also an option. However, we determined experimentally that outputting the weighted sum of both the original and the masked version is more robust and stable for the gradient-based optimizers, since it is less susceptible to random initialization weights of the attention. Parameter _λ_ can be optimized using the gradient decent in the back-propagation process along with the rest of the parameters. Its gradient with respect to the output of the attention block can be obtained via the following equation _∂_ y _∂λ_ <sup>=</sup> <sup>v</sup> <sup>⊙</sup> <sup>x</sup> <sup>−</sup> <sup>x</sup> <sup>_._</sup> (14) IV. EXPERIMENTAL SETUP In this section, we present the experimental setup used in this work. In Subsection IV-A, we introduce the datasets used to test our models. In Subsection IV-B, we report the network architectures of the three blocks used in BoCF. In Subsection IV-C, we detail the evaluation process followed in our experiments. Finally, the evaluation metrics used are briefly described in Subsection IV-D. _A._ _Image_ _Datasets_ _1)_ _ColorChecker_ _RECommended_ _Dataset:_ ColorChecker RECommended dataset [12] is a publicly available updated version of Gehler-Shi dataset [11] <sup>1</sup> with a proposed (recommended) ground truth to use for evaluation. This dataset 1http://www.cs.sfu.ca/ colour/data/shi_gehler/ contains 568 high-quality indoor and outdoor images acquired by two cameras: Canon 1D and Canon 5D. Similar to the works in [5]–[8], for ColorChecker REComended dataset, we used three-fold cross validation to evaluate our algorithms. _2)_ _NUS-8_ _Camera_ _Dataset:_ NUS-8 is a publicly available dataset, <sup>2</sup> containing 1736 raw images from eight different camera models. Each camera has about 210 images. Following previous works [6], [13], we perform 3-fold cross validation experiments on each camera separately and report the mean of all the results for each evaluation metric. As a result, although the total number of images in NUS-8 dataset is large, each experiment involves using only 210 images for both training and testing. _3)_ _INTEL-TUT2:_ INTEL-TUT2 <sup>3</sup> is the second version of the publicly available INTEL-TUT dataset [10]. The main particularity of this dataset is that it contains a large number of images taken by several cameras from different scenes. We use this dataset with an extreme testing protocol, the third protocol described in [10]. The models are trained with images acquired by one camera and containing one type of scene and tested on the other cameras and the other scenes. This extreme test is useful to show the robustness of a given model and its ability to generalize across different cameras and scenes. INTEL-TUT2 contains images acquired with three different cameras, namely Canon, Nikon, and, Mobile. For each camera, the images are divided into four sets: _field_ (144 images per camera), _lab_ _printouts_ (300 images per camera), _lab_ _real_ 2http://cvil.eecs.yorku.ca/projects/public_html/illuminant/illuminant.html 3http://urn.fi/urn:nbn:fi:csc-kata20170901151004490662 Fig. 3. Samples from INTEL-TUT2 dataset. The rows contain samples images taken by Canon, Nikon, and mobile cameras, respectively, while the columns contain images from _lab_ _printouts_, _lab_ _real_ scenes, and _field_, respectively. Fig. 4. Samples from _field2_ set specific for Canon in INTEL-TUT2 dataset. _scenes_ (4 images per camera), and _field2_ . The last set _field2_ concerns only Canon and it has a total of 692 images. Figure 3 shows some samples from the _field_, _lab_ _printouts_, and _lab_ _real_ _scenes_ sets of the three cameras, while Figure 4 displays samples from _field2_ related to Canon camera. We used only Canon _field2_ set for training and validation (80% for training and 20% for validation). We constructed two test sets. The first one, called _field_ in this work, contains all the field images (field sets, i.e., non lab images) taken by the other camera models, i.e., Nikon and Mobile. The second set, called _non-field_ in this work, contains the rest of the images, i.e., lab scenes, acquired by Nikon and Mobile (lab printouts and lab real scenes sets). Comparing the performance on these two sets allowed us to test both scene and camera invariance of the model. As we were using different camera models in same experiments, the variation of camera spectral sensitivity was discounted. For this purpose, we used Color Conversion Matrix (CCM) based preprocessing [45] to learn the 3 × 3 color conversion matrices (CCMs) for each camera pair. _B._ _Network_ _Architectures_ The BoCF network is composed of three blocks: the feature extraction, the Bag of Features block, and the illumination estimation blocks as described in Section III. The feature extraction block consists of convolution layers followed by max pooling operators. We experimented with different number of layers two and three. Thirty convolution filters of size 4 × 4 are used in each layer. Max-pooling with a window size 2 was applied in each layers. For the codebook size, i.e., number of RBF neurons in the Bag of Features block, Fig. 5. Bag of Color Features (BoCF) network topology. we experimented with three different values 50, 150, and 200. The illumination estimation block consists of 2 fully connected layers. The first (hidden layer) has a size of 40 and it takes as an input the histogram representation and the second one (final output) has a size of 3 to output the illumination. The network is trained from scratch. The biases were initialized with zeroes while the convolution filters and the fully connected layers’ weights with Xavier uniform. Figure 5 represents the architecture of the basic model used in our work with two convolution layers and a dictionary with 150 elements. _C._ _Evaluation_ _Procedure_ To evaluate the proposed approach, we used two sets of experiments. In the first set, we evaluated different variants of the model to study the effect of the hyper-parameters and validate the effectiveness of each component in our model by conducting ablation studies. For this purpose, we used ColorChecker RECommended dataset. In the second set of experiments, we compared our approach with current stateof-the-art approaches on the three datasets. For all testing scenarios, we augmented the datasets using the following process: As the size of the original raw images is high, we first randomly cropped 512 × 512 patches of each image. This ensured getting meaningful patches. The crops were then rotated by a random angle between −30 <sup>◦</sup> and +30 <sup>◦</sup> . Finally, we rescaled the RGB values of each patch and its corresponding ground truths by a random factor in the range of [0.8, 1.2]. Before feeding the sample to the network, we downsampled it to 227 × 227. In testing, the images were resized to 227 × 227 to fit the network model. Our network was implemented in Keras [46] with Tensorflow backend [47]. We trained our network end-to-end by back-propagation. The loss function used is the Recovery Angular Error defined in Sec IV-D. For optimization, Adam [48] was employed with a batch size of 15 and a learning rate of 3 × 10 <sup>−4</sup> . The model was trained on image patches of size 227 × 227 for 3000 epochs. The centers of the dictionary were initialized using the k-means algorithm as described in [17]. The parameter _λ_ discussed in Section III-D was initialized as 0.5. _D._ _Evaluation_ _Metrics_ We report the mean of the top 25%, the mean, the median, Tukey’s trimean, and the mean of the worst 25% of the recovery angular error (RAE) [49] between the ground truth TABLE I COMPARISON OF DIFFERENT VARIANTS OF THE PROPOSED BOCF APPROACH ON COLORCHECKER RECOMMENDED DATASET illuminant and the estimated illuminant, defined as _I_ <sup>_gt_</sup> _I_ <sup>_Est_</sup> RAE _(I_ <sup>_gt_</sup> _, I_ <sup>_Est_</sup> _)_ = cos <sup>−1</sup> _(_ _I_ <sup>_gt_</sup> _I_ <sup>_Est_</sup> <sup>_),_</sup> (15) where _I_ <sup>_gt_</sup> is the ground truth illumination for a given image and _I_ <sup>_Est_</sup> is the estimated illumination. The mean of the worst 25% reflects how the model performs in the worst-case scenario and typically shows the largest differences between different methods.. V. EXPERIMENTAL RESULTS In this section, we provide the experimental evaluation of the proposed method and its variants. In Subsection V-A, different topologies for the three blocks of BoCF are evaluated on the ColorChecker RECommended dataset and the effect of each block in our model is examined by reporting the results of the ablation studies. In Subsection V-B, we compare the performance of the proposed models with different state-ofthe-art algorithms on the three datasets. _A._ _BoCF_ _Performance_ _Evaluation_ We first evaluated the accuracy of the different variants of BoCF on ColorChecker RECommended dataset. Table I presents the comparative results for BoCF using different topologies in the three blocks. We evaluated the model using different numbers of convolution layers in the first block, different dictionary sizes in the second block (codewords), and with/without attention. In addition, in order to show the effect of using more convolutional layers, we used the pretrained model SqueezeNet [9] in the first block. Table I shows that the dictionary size in the Bag-of-Features Pooling block significantly affects the overall performance of the model. Using a larger codebook results in higher risk of overfitting to the training data, while using a smaller codebook size restricts the model to only few codebook centers which can decrease the overall performance of the model. Thus, the choice of this hyperparameter is critical for our model. The findings in Table I confirm this effect and highlights the importance of this hyperparameter. By comparing the model performance using different dictionary sizes, we can see that a dictionary of size 150 yields the best compromise between the number of parameters and the overall performance. Using three convolutional layers instead of two in the first block yields slightly better median errors and worse trimean errors. We note that using a pretrained model, squeezeNet, increases the number of parameters without improving the overall results. However, to keep the model as shallow as possible, we opt for the two convolution layers. Table I shows that models equipped with an attention mechanism perform better than models without attention almost consistently across all error metrics. This is expected as attention mechanisms allow the model to focus on relevant parts only and, as a result, the model becomes more robust to noise and to inadequate features. The performance boost obtained by both attention variants is more highlighted in terms of the median and trimean errors compared to the nonattention variant. By comparing the performance achieved by the two attention variants, we note that the first attention variant yields in a better performance in terms of worst 25% error rate, while the second variant yields better median and trimean error rates. It should also be remembered that the first variant applies attention over the feature map output of the first convolutional block. Thus, it dramatically increases the number of model parameters (over 20 times) compared to the second variant (doubling the number of parameters) which applies the attention over the histogram. Figure 6 presents a visualization of the attention weights [50] for both attention variants. The heat maps demonstrate which regions of the image each model pays attention to so as to output a certain illumination. We note a large difference between the attention variants. The first attention variant tends to focus on regions with dense edges and sharp shapes, while the second model focuses on uniform regions to estimate the illumination. With the second variant of attention, the model learns to focus on homogeneous areas because attention is applied on top of a histogram. Thus, the model learns to focus on certain bins of this histogram. As each bin corresponds to the occurrence of one specific element of the dictionary, it is usually mapped to a homogeneous region of the image. With regards to the the first variant, one plausible explanation is that the models learns to focus on the edges. It is known that Fig. 6. Attention mask visualization [50] for three samples from INTEL-TUT2, ColorChecker RECommended, and NUS8 datasets, respectively. The first column contains the input image. The second one illustrates the attention mask generated by the first attention variant overlaid on the input image. The last column contains the attention masks generated by the second variant of the attention overlaid on the input image. Gamma correction was applied for visualization. TABLE II RESULTS OF THE ABLATION STUDIES FOR THE BOCF OVER THE REC OMMENDED COLORCHECKER DATASET. BOCF IS THE BASIC BOCF COMPOSED OF THE THREE BLOCKS. IN BOCF-1, THE FEATURE EXTRACTION BLOCK IS REMOVED, WHILE IN BOCF-2 THE FULLY CONNECTED LAYER IN THE ESTIMATION BLOCK IS SUBSTITUTED WITH A LINEAR REGRESSION. IN BOCF-3, THE BOF POOLING LAYER IS REPLACED WITH A GLOBAL AVERAGE POOLING LAYER the edges are an important feature in color constancy [25] and the model learns to extract and ’attend’ this information to estimate the illumination. _Ablation_ _studies_ To examine the effect of each block in our proposed approach, we conduct ablation studies on the ColorChecker RECommended dataset. Table II reports the results of the basic BoCF approach, the results achieved by removing the feature extraction block, the results obtained by removing the estimation block, i.e., replacing the fully connected layer in the estimation block with a simple regression, and the results obtained by replacing the BoF block by a global average pooling layer [51]. We note that removing any TABLE III NUMBER OF PARAMETERS OF DIFFERENT CNN-BASED APPROACHES block significantly decreases the overall performance of our models. Comparing the model with and without the feature extraction block, we note a large drop in performance especially in terms of the worst 25% error rate, i.e., 1 _._ 8 <sup>◦</sup> drop compared to 0 _._ 6 <sup>◦</sup> drop when the estimation block is removed. We also note that BoF pooling performs better than global average pooling across all metrics except the median. _B._ _Comparisons_ _Against_ _State-of-the-art_ We compared our BoCF approach with the state-of-theart methods on ColorChecker RECommended, NUS-8, and INTEL-TUT2 datasets. Tables IV, V, and VI provide quantitative results for ColorChecker RECommended, NUS-8, and INTEL-TUT2 datasets, respectively. We provide results for the static methods Grey-World, White-Patch, Shades-of-Grey, and TABLE IV RESULTS OF BOCF APPROACH AND COMPARATIVE METHODS ON THE RECOMMENDED COLORCHECKER DATASET TABLE V RESULTS OF BOCF APPROACH AND BENCHMARK METHODS ON NUS-8 DATASET General Grey-World. The parameter values _n_, _p_, _ρ_ are set as described in [25]. In addition, we compare against Pixelbased Gamut, Bright Pixels, Spatial Correlations, Bayesian Color Constancy [11], and six convolutional approaches: Deep Specialized Network for Illuminant Estimation (DS-Net) [7], Bianco CNN [5], Fast Fourier Color Constancy [33], Convolutional Color Constancy [52], Fully Convolutional Color Constancy With Confidence-Weighted Pooling (FC4) [6], and Color Constancy GANs (CC-GANs) [36]. The results for ColorChecker RECommended and NUS-8 datasets were taken from related papers [6], [36]. From RECommended ColorChecker and NUS-8 results in Tables IV and V, we note that the learning-based methods usually outperform the statistical-based methods across all error metrics. This can be explained by the fact that statistical approaches rely on some assumptions in their model. These assumptions can be violated in some testing samples which results in high error rates especially in terms of the worst 25% error. TABLE VI RESULTS OF BOCF APPROACH AND BENCHMARK METHODS ON INTEL-TUT2 Table IV shows that the proposed method BoCF variants achieve competitive results on RECommended ColorChecker dataset. The only models performing slightly better than BoCF TABLE VII RESULTS OF BOCF APPROACH AND COMPARATIVE METHODS ON THE RECOMMENDED COLORCHECKER DATASET USING REPRODUCTION ANGULAR ERROR METRIC are FC4(SqueezeNet) and DS-Net. By comparing the number of parameters required by each model given in Table III, we see that BoCF achieves very competitive results, while using less than 1% of the parameters of FC4(SqueezeNet) and less than 0.1% of the parameters of DS-Net. Compared to Bianco CNN, we note that our model performs better across all error metrics except for the worst 25% error metric. Bianco CNN operates on patches instead of the full image directly and this makes it more robust but, at the same time, it increases its time complexity as the network has to estimate many local estimates before outputting the global one. Results for NUS-8 dataset are similar to their counter parts on ColorChecker RECommended, as illustrated in Table V. Our models achieve comparable results with FC4 and overall better results compared to DS-Net across all error metrics. Bianco CNN outperforms all the other CNN-based methods. As discussed earlier, this can likely be explained by the fact that Bianco operates on patches while BoCF and FC4 produce global estimates directly. Table VI reports the comparative results achieved on INTEL-TUT2 dataset. We note that all the error rates are high as this is an extreme testing scenario. The models are trained and validated using only one type of scene ( _field2_ set) acquired by one camera model (Canon) and then evaluated over different scene types and different camera models not seen during the training as described in Section IV-C. The proposed BoCF model achieves better overall performance compared to Bianco CNN on the _non-field_ set, on both sets compared to Color Constancy Convolutional AutoEncoder (C3AE) methods and competitive results compared to FC4. The model is robust in transfer learning because it is invariant to the spatial location of the extracted feature (this is the strong point of the BoF). So, by having a representation that is "by construction" invariant to spatial changes makes the network less sensitive to spatial changes, and as a result, more robust. By comparing the performance achieved by BoCF with and without attention, we note that both the attention mechanisms proposed in this paper significantly boost the performance of our model for all datasets. It should also be mentioned that despite requiring much less parameters, the second variant of our attention model, where the attention is applied over the histogram representation, performs slightly better than the first variant, where the attention is applied over the feature extraction block. We also compare the performance of the proposed method based on Reproduction Angular Error [53] with other methods, which have been evaluated using this metric in the literature. The comparison are shown in Table 7. We note that our models outperform Bianco CNN across all metrics and the second variant of attention outperforms FFCC model in terms of mean error, while achieving similar performance in terms of trimean. VI. DISCUSSION When comparing our approach to the competing methods, it must be pointed out that our approach can be linked to many static-based approaches. In Grey-World [24], one takes the average of the RGB channels of the image. In the proposed method, this corresponds to using the identity as a feature extractor and using equal weights in the estimation block. This way all the histogram bins will contribute equally in the estimation. White-Patch [23] takes the maximum across the color channels, which corresponds to giving a high weight to the histogram bin with the highest intensity and giving zero weights to the rest. Grey-edge and its variants [25] correspond to using the first and second order derivatives as a feature extractor. Thus, BoCF approach can be interpreted as a learning-based extension of these statistical based approaches. Instead of using the image directly, we allow the model to learn a suitable non-linear transformation of the original image, through the feature extraction block, and instead of imposing a prior assumption on the contribution of each feature in the estimation, we allow the model to learn the mapping dynamically using the training data. BoF provides the link between these two tasks as it allows us to learn a dictionary and to output a histogram representation of the transformed image. It is interesting to note that the attention variants in our approach can be tightly linked to the confidence maps in FC4 [6]. In FC4, confidence scores are assigned to each patch of the image and a final estimate is generated by a weighted sum of the scores and their corresponding local estimates. This way the network learns to select which features contribute to the estimation and which parts should be discarded. Similarly, attention mechanism learns to dynamically pay attention to the parts encoding the illumination information and discarding the rest. VII. CONCLUSION In this paper, we proposed a novel color constancy method called BoCF, which is composed of three blocks. In first block, called feature extraction, we employ convolutional layers to extract relevant features from the input image. In the second block, we apply Bag-of-Features Pooling to learn a codebook and output a histogram. The latter is fed into the last block, the estimation block, where the final illumination is estimated. This end-to-end model is evaluated and compared with prior works over three datasets: ColorChecker RECommended, NUS-8, and INTEL-TUT2. BoCF was able to achieve competitive results compared to state-of-the-art methods while reducing the number of parameters up to 95%. In this paper, we also discussed links between the proposed method and statistic-based methods and we showed how the proposed approach can be interpreted as a supervised extension of these approaches and can act as a generic framework for expressing existing approaches as well as developing new powerful methods. In addition, we proposed combining the Bag-of-Features Pooling with two novel attention mechanisms. In the first variant, we apply attention over the nonlinear transform of the image after the feature extraction block. In the second extension, we apply attention over the histogram representation of the Bag-of-Features Pooling. These extensions are shown to improve the overall performance of our model. In future work, extensions of the proposed approach could include exploring regularization techniques to ensure diversity in the learned dictionary and improve the extension capability of the model. REFERENCES [1] M. Ebner, _Color_ _Constancy_, 1st ed. Hoboken, NJ, USA: Wiley, 2007. [2] J. J. M. Granzier, E. Brenner, and J. B. J. Smeets, “Can illumination estimates provide the basis for color constancy?” _J._ _Vis._, vol. 9, no. 3, p. 18, 2009. [3] K. Barnard, “Practical colour constancy,” Ph.D. dissertation, School Comput., Simon Fraser Univ., Burnaby, BC, Canada, 1999. [4] A. Gijsenij, T. Gevers, and J. van de Weijer, “Computational color constancy: Survey and experiments,” _IEEE_ _Trans._ _Image_ _Process._, vol. 20, no. 9, pp. 2475–2489, Sep. 2011. [5] S. Bianco, C. Cusano, and R. Schettini, “Color constancy using CNNs,” in _Proc. IEEE Conf._ _Comput._ _Vis. Pattern Recognit._ _Workshops_, Jun. 2015, pp. 81–89. [6] Y. Hu, B. Wang, and S. Lin, “FC <sup>4</sup> : Fully convolutional color constancy with confidence-weighted pooling,” in _Proc._ _IEEE_ _Conf._ _Comput._ _Vis._ _Pattern_ _Recognit._, Jul. 2017, pp. 4085–4094. [7] W. Shi, C. C. Loy, and X. Tang, “Deep specialized network for illumi nant estimation,” in _Proc._ _Eur._ _Conf._ _Comput._ _Vis._ Cham, Switzerland: Springer, 2016, pp. 371–387. [8] Y. Hold-Geoffroy, K. Sunkavalli, S. Hadap, E. Gambaretto, and J.-F. Lalonde, “Deep outdoor illumination estimation,” in _Proc._ _IEEE_ _Conf. Comput. Vis. Pattern Recognit. (CVPR)_, Jul. 2017, pp. 2373–2382. [9] A. Krizhevsky, I. Sutskever, and G. Hinton, “ImageNet classification with deep convolutional neural networks,” in _Proc._ _Adv._ _Neural_ _Inf._ _Process._ _Syst._, 2012, pp. 1097–1105. [10] C. Aytekin, J. Nikkanen, and M. Gabbouj, “A data set for camera independent color constancy,” _IEEE_ _Trans._ _Image_ _Process._, vol. 27, no. 2, pp. 530–544, Feb. 2018. [11] P. V. Gehler, C. Rother, A. Blake, T. Minka, and T. Sharp, “Bayesian color constancy revisited,” in _Proc._ _IEEE_ _Conf._ _Comput._ _Vis._ _Pattern_ _Recognit._, Jun. 2008, pp. 1–8. [12] G. Hemrit _et_ _al._, “Rehabilitating the colorchecker dataset for illuminant estimation,” in _Proc._ _Color_ _Imag._ _Conf._, 2018, pp. 350–353. [13] D. Cheng, D. K. Prasad, and M. S. Brown, “Illuminant estimation for color constancy: Why spatial-domain methods work and the role of the color distribution,” _J._ _Opt._ _Soc._ _Amer. A,_ _Opt._ _Image_ _Sci._, vol. 31, no. 5, pp. 1049–1058, 2014. [14] F. N. Iandola, S. Han, M. W. Moskewicz, K. Ashraf, W. J. Dally, and K. Keutzer, “SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and _<_ 0.5 MB model size,” 2016, _arXiv:1602.07360_ . [Online]. Available: https://arxiv.org/abs/1602.07360 [15] H. C. Lee, “Method for computing the scene-illuminant chromaticity from specular highlights,” _J._ _Opt._ _Soc._ _Amer._ _A,_ _Opt._ _Image_ _Sci._, vol. 3, no. 10, pp. 1694–1699, 1986. [16] N. Passalis and A. Tefas, “Neural bag-of-features learning,” _Pattern_ _Recognit._, vol. 64, pp. 277–294, Apr. 2017. [17] N. Passalis and A. Tefas, “Learning bag-of-features pooling for deep convolutional neural networks,” in _Proc._ _IEEE_ _Int._ _Conf._ _Comput._ _Vis._, Oct. 2017, pp. 5755–5763. [18] F.-F. Li and P. Perona, “A Bayesian hierarchical model for learning natural scene categories,” in _Proc._ _IEEE_ _Comput._ _Soc._ _Conf._ _Comput._ _Vis._ _Pattern_ _Recognit._, Jun. 2005, pp. 524–531. [19] G. Qiu, “Indexing chromatic and achromatic patterns for content-based colour image retrieval,” _Pattern Recognit._, vol. 35, no. 8, pp. 1675–1686, Aug. 2002. [20] A. Iosifidis, A. Tefas, and I. Pitas, “Discriminant bag of words based representation for human action recognition,” _Pattern_ _Recognit._ _Lett._, vol. 49, pp. 185–192, Nov. 2014. [21] A. Iosifidis, A. Tefas, and I. Pitas, “Multidimensional sequence classifi cation based on fuzzy distances and discriminant analysis,” _IEEE Trans._ _Knowl._ _Data_ _Eng._, vol. 25, no. 11, pp. 2564–2575, Nov. 2013. [22] Y.-G. Jiang, C.-W. Ngo, and J. Yang, “Towards optimal bag-of-features for object categorization and semantic video retrieval,” in _Proc._ _ACM_ _Int._ _Conf._ _Image_ _Video_ _Retr._, 2007, pp. 494–501. [23] A. Rizzi, C. Gatta, and D. Marini, “Color correction between gray world and white patch,” _Int. Soc. Opt. Eng._, vol. 4662, pp. 367–375, May 2002. [24] J. Cepeda-Negrete and R. E. Sanchez-Yanez, “Gray-world assumption on perceptual color spaces,” in _Proc._ _Pacific-Rim_ _Symp._ _Image_ _Video_ _Technol._ Berlin, Germany: Springer, 2013, pp. 493–504. [25] J. van de Weijer, T. Gevers, and A. Gijsenij, “Edge-based color con stancy,” _IEEE_ _Trans._ _Image_ _Process._, vol. 16, no. 9, pp. 2207–2214, Sep. 2007. [26] X.-S. Zhang, S.-B. Gao, R.-X. Li, X.-Y. Du, C.-Y. Li, and Y.-J. Li, “A retinal mechanism inspired color constancy model,” _IEEE_ _Trans._ _Image_ _Process._, vol. 25, no. 3, pp. 1219–1232, Mar. 2016. [27] R. Tan, K. Nishino, and K. Ikeuchi, “Color constancy through inverse intensity chromaticity space,” _J._ _Opt._ _Soc._ _Amer._ _A,_ _Opt._ _Image_ _Sci._, vol. 21, no. 3, pp. 321–334, 2004. [28] J. Vazquez-Corral, M. Vanrell, R. Baldrich, and F. Tous, “Color con stancy by category correlation,” _IEEE_ _Trans._ _Image_ _Process._, vol. 21, no. 4, pp. 1997–2007, Apr. 2012. [29] J. Fröhlich, A. Schilling, and B. Eberhardt, “Gamut mapping for digital cinema,” in _Proc._ _SMPTE_ _Annu._ _Tech._ _Conf._ _Exhib._, 2013, pp. 1–11. [30] G. Finlayson and S. Hordley, “Improving gamut mapping color con stancy,” _IEEE_ _Trans._ _Image_ _Process._, vol. 9, no. 10, pp. 1774–1783, Oct. 2000. [31] S. Bianco, G. Ciocca, C. Cusano, and R. Schettini, “Automatic color constancy algorithm selection and combination,” _Pattern_ _Recognit._, vol. 43, no. 3, pp. 695–705, Mar. 2010. [32] S. Bianco, G. Ciocca, C. Cusano, and R. Schettini, “Improving color constancy using indoor–outdoor image classification,” _IEEE_ _Trans._ _Image_ _Process._, vol. 17, no. 12, pp. 2381–2392, Dec. 2008. [33] J. T. Barron and Y.-T. Tsai, “Fast Fourier color constancy,” in _Proc._ _IEEE_ _Conf._ _Comput._ _Vis._ _Pattern_ _Recognit._, Jul. 2017, pp. 886–894. [34] R. Lu, A. Gijsenij, T. Gevers, V. Nedovic, D. Xu, and J.-M. Geusebroek, “Color constancy using 3D scene geometry,” in _Proc._ _IEEE_ _12th_ _Int._ _Conf._ _Comput._ _Vis._, Sep. 2009, pp. 1749–1756. [35] P. Isola, J.-Y. Zhu, T. Zhou, and A. A. Efros, “Image-to-Image translation with conditional adversarial networks,” in _Proc. IEEE Conf. Comput. Vis._ _Pattern_ _Recognit._ _(CVPR)_, Jul. 2017, pp. 5967–5976. [36] P. Das, A. S. Baslamisli, Y. Liu, S. Karaoglu, and T. Gevers, “Color constancy by GANs: An experimental survey,” 2018, _arXiv:1812.03085_ . [Online]. Available: https://arxiv.org/abs/1812.03085 [37] N. Passalis, A. Tsantekidis, A. Tefas, J. Kanniainen, M. Gabbouj, and A. Iosifidis, “Time-series classification using neural bag-of-features,” in _Proc._ _25th_ _Eur._ _Signal_ _Process._ _Conf._ _(EUSIPCO)_, Aug. 2017, pp. 301–305. [38] D. Bahdanau, K. Cho, and Y. Bengio, “Neural machine translation by jointly learning to align and translate,” 2014, _arXiv:1409.0473_ . [Online]. Available: https://arxiv.org/abs/1409.0473 [39] A. Vaswani _et_ _al._, “Attention is all you need,” in _Proc. Conf._ _Neural_ _Inf._ _Process._ _Syst._, 2017, pp. 5998–6008. [40] J. Cheng, L. Dong, and M. Lapata, “Long short-term memory-networks for machine reading,” in _Proc._ _Conf._ _Empirical_ _Methods_ _Natural_ _Lang._ _Process._, 2016, pp. 551–561. [41] D. Britz, A. Goldie, M.-T. Luong, and Q. Le, “Massive exploration of neural machine translation architectures,” 2017, _arXiv:1703.03906_ . [Online]. Available: https://arxiv.org/abs/1703.03906 [42] T. Luong, H. Pham, and C. D. Manning, “Effective approaches to attention-based neural machine translation,” in _Proc._ _Conf._ _Empirical_ _Methods_ _Natural_ _Lang._ _Process._, 2015, pp. 1412–1421. [43] K. Xu _et_ _al._, “Show, attend and tell: Neural image caption genera tion with visual attention,” in _Proc._ _Int._ _Conf._ _Mach._ _Learn._, 2015, pp. 2048–2057. [44] V. Nair and G. E. Hinton, “Rectified linear units improve restricted Boltzmann machines,” in _Proc._ _Int._ _Conf._ _Mach._ _Learn._, 2010, pp. 807–814. [45] S. Gao, M. Zhang, C. Li, and Y. Li, “Improving color constancy by discounting the variation of camera spectral sensitivity,” _J._ _Opt._ _Soc._ _Amer._ _A,_ _Opt._ _Image_ _Sci._, vol. 34, no. 8, pp. 1448–1462, 2017. [46] F. Chollet. (2015). _Keras_ . [Online]. Available: https://keras.io [47] M. Abadi _et_ _al._, “TensorFlow: A system for large-scale machine learn ing,” in _Proc._ _12th_ _USENIX_ _Symp._ _Operating_ _Syst._ _Design_ _Implement._, 2016, pp. 265–283. [48] D. P. Kingma and J. Ba, “Adam: A method for stochastic opti mization,” 2014, _arXiv:1412.6980_ . [Online]. Available: https://arxiv. org/abs/1412.6980 [49] S. D. Hordley and G. D. Finlayson, “Re-evaluating colour constancy algorithms,” in _Proc._ _Int._ _Conf._ _Pattern_ _Recognit._, 2004, pp. 76–79. [50] R. Kotikalapudi. (2017). _keras-vis_ . [Online]. Available: https://github.com/raghakot/keras-vis [51] M. Lin, Q. Chen, and S. Yan, “Network in network,” in _Proc._ _Int._ _Conf._ _Learn._ _Represent._, 2014. [52] J. T. Barron, “Convolutional color constancy,” in _Proc._ _IEEE_ _Int._ _Conf._ _Comput._ _Vis._, Dec. 2015, pp. 379–387. [53] G. D. Finlayson, R. Zakizadeh, and A. Gijsenij, “The reproduction angular error for evaluating the performance of illuminant estimation algorithms,” _IEEE_ _Trans._ _Pattern_ _Anal._ _Mach._ _Intell._, vol. 39, no. 7, pp. 1482–1488, Jul. 2017. [54] G. Finlayson and E. Trezzi, “Shades of gray and colour constancy,” in _Proc._ _Color_ _Imag._ _Conf._, 2004, pp. 37–41. [55] J. van de Weijer, C. Schmid, and J. Verbeek, “Using high-level visual information for color constancy,” in _Proc. IEEE Int._ _Conf._ _Comput._ _Vis._, Oct. 2007, pp. 1–8. [56] A. Chakrabarti, K. Hirakawa, and T. Zickler, “Color constancy with spatio-spectral statistics,” _IEEE_ _Trans._ _Pattern_ _Anal._ _Mach._ _Intell._, vol. 34, no. 8, pp. 1509–1519, Aug. 2012. [57] D. Cheng, B. Price, S. Cohen, and M. S. Brown, “Effective learning based illuminant estimation using simple features,” in _Proc._ _IEEE Conf._ _Comput._ _Vis._ _Pattern_ _Recognit._, Jun. 2015, pp. 1000–1008. [58] H. R. V. Joze, M. S. Drew, G. D. Finlayson, and P. A. T. Rey, “The role of bright pixels in illumination estimation,” in _Proc._ _Color_ _Imag._ _Conf._, 2012, pp. 41–46. [59] F. Laakom, J. Raitoharju, A. Iosifidis, J. Nikkanen, and M. Gabbouj, “Color constancy convolutional autoencoder,” in _Proc._ _Symp._ _Comput._ _Intell._, Dec. 2019, pp. 1085–1090. Firas Laakom received the Engineering degree from Tunisia Polytechnic School (TPS) in 2018. He is currently pursuing the Ph.D. degree with Tampere University, Finland. His research interests include deep learning, computer vision, and computational intelligence. Nikolaos Passalis is currently a Postdoctoral Researcher with Tampere University, Finland. He has coauthored more than 45 journal articles and conference papers and contributed one chapter to one edited book. His research interests include machine learning, information retrieval, and computational intelligence. Jenni Raitoharju (Member, IEEE) received the Ph.D. degree from Tampere University of Technology, Finland, in 2017. Since 2017, she has worked as a Post-Doctoral Research Fellow with the Faculty of Information Technology and Communication Sciences, Tampere University, Finland. In September 2019, she started working as a Senior Research Scientist with the Finnish Environment Institute, Jyväskylä, Finland, after receiving Academy of Finland Post-Doctoral Researcher funding from 2019 to 2022. She has coauthored 15 journal articles and 27 conference papers. Her research interests include machine learning and pattern recognition methods along with applications in biomonitoring and autonomous systems. She is the Chair of the Young Academy Finland 2019–2020. Jarno Nikkanen received the M.Sc. degree in signal processing and Dr.Sc.Tech. degree in software systems from the Tampere University of Technology in 2001 and 2013, respectively. He has 20 years of industry experience in digital imaging topics, including Nokia Corporation where he developed and productized many digital camera algorithms, Intel Corporation where he worked as the Intel Principal Engineer and Imaging Technology Architect, and Xiaomi Technologies where he is currently working as the Head of Xiaomi Finland camera Research and Development and the Leader of Xiaomi’s Tampere site. He holds international patents for over 20 digital camera related inventions and multiple additional patents pending. Anastasios Tefas (Member, IEEE) is currently an Associate Professor with the Department of Informatics, Aristotle University of Thessaloniki. He has coauthored 120 journal articles, 235 papers in international conferences and contributed eight chapters to edited books in his area of expertise. Over 6000 citations have been recorded to his publications and his H-index is 37 according to Google scholar. His current research interests include computational intelligence, deep learning, digital signal and image analysis and retrieval, and computer vision. Alexandros Iosifidis (Senior Member, IEEE) is currently an Associate Professor with Aarhus University, Denmark. He has contributed in more than twenty Research and Development projects financed by EU, Greek, Finnish, and Danish funding agencies and companies. He has coauthored 71 articles in international journals and 88 papers in international conferences proposing novel machine learning techniques/methods and their application in a variety of problems. His current research interests include machine learning solutions for problems coming from signal processing, computer vision, and financial modeling. Moncef Gabbouj (Fellow, IEEE) received the M.S. and Ph.D. degrees in EE from Purdue University, in 1986 and 1989, respectively. He is currently a Professor of signal processing with the Department of Computing Sciences, Tampere University, Finland. His research interests include big data analytics, multimedia analysis, artificial intelligence, machine learning, pattern recognition, nonlinear signal processing, video processing, and coding. He is a member of the Academia Europaea and the Finnish Academy of Science and Letters.

섹션 본문 72문단 · 43,301자

(제목 없음)

1In this paper, we propose a novel color constancy approach, called Bag of Color Features (BoCF), building upon Bag-of-Features pooling. The proposed method substantially reduces the number of parameters needed for illumination estimation. At the same time, the proposed method is consistent with the color constancy assumption stating that global spatial information is not relevant for illumination estimation and local information (edges, etc.) is sufficient. Furthermore, BoCF is consistent with color constancy statistical approaches and can be interpreted as a learning-based generalization of many statistical approaches. To further improve the illumination estimation accuracy, we propose a novel attention mechanism for the BoCF model with two variants based on self-attention. BoCF approach and its variants achieve competitive, compared to the state of the art, results while requiring much fewer parameters on three benchmark datasets: ColorChecker RECommended, INTEL-TUT version 2, and NUS8.

INTRODUCTION

2C OLOR constancy in general is the ability of an imaging system to discount the effects of illumination on the observed colors in a scene [1], [2]. When a person stands in a room lit by a colorful light, the Human Visual System (HVS) unconsciously removes the lightening effects and the colors are perceived as if they were illuminated by a neutral, white light. While this ability is very natural for the HVS, mimicking the same ability in a computer vision system is a challenging and under-constrained problem. Given a green pixel, one can not assert if it is a green pixel under a white illumination or a white pixel lit with a greenish illumination. Nonetheless, illumination estimation is considered an important component of many higher level computer vision tasks such as object recognition and tracking. Thus, it has been extensively studied in order to develop reliable color constancy systems which can achieve illumination invariance to some extent [1], [3].

3The RGB image value ρ(x, y) in the position (x, y) of an image can be expressed as a function depending on three key factors [3]: the illuminant distribution I(x, y, λ), the surface reflectance R(x, y, λ) and the camera sensitivity S(λ), where λ is the wave length. This dependency is expressed as ρ(x, y) = λ I(x, y, λ)R(x, y, λ)S(λ)dλ.

4(

5Color constancy methods [3], [4] aim to estimate a uniform projection of I(x, y, λ) on the sensor spectral sensitivities F. Laakom

6where I is the global illumination of the scene. Recently, deep learning approaches and Convolutional Neural Networks (CNNs) in particular have become dominant in almost all computer vision tasks, including color constancy [5], [6], [7], [8] due to their ability to take raw images directly as input and incorporate feature extraction in the learning process [9]. Despite their accuracy in estimating illumination across multiple datasets [6], [10], [11], deploying CNN-based approaches on low computational power devices, e.g., mobile devices, is still limited, since most of the high-accuracy deep models are computation-ally expensive [6], [7], [8], which make them inefficient in terms of time and energy consumption. Additionally, most of the available datasets for illumination estimation are rather small-scale [10], [12], [13] and hence not suitable for training large models. For this purpose, many state of the art approaches [5], [6] rely on pre-trained networks to overcome this limitation. On the other hand, these pre-trained networks [9], [14] are originally trained for a classification task. Thus, they are usually agnostic to the illumination color. This makes their usage in color constancy counterintuitive as the illumination information is distorted in the early pre-trained layers. An alternative approach is of course to reduce the number of model parameters in order to use existing datasets, as shallower models, in general, need less examples to learn. Furthermore, in [13], [15] it is argued that global spatial information is not an important feature in color constancy. The local information, i.e., the color distribution and the color gradient distribution (i.e. edges) can be sufficient to extract the illumination information [13]. Thus, using regular neural networks configurations to extract deep features is counter-intuitive in this particular problem. To address these drawbacks and challenges, we propose in this paper a novel color constancy deep learning approach called Bag of Color Features (BoCF). BoCF uses Bag-of-Features Pooling [16], which takes advantage of the ability of CNNs to learn relevant shallow features while keeping the model suitable for low-power hardware. Furthermore, the proposed approach is consistent with the assumption that global spatial information is not relevant [13], [15] for color illumination estimation.

7Bag-of-Features Pooling is a neural extension [16], [17] of the famous Bag-of-Features model (BoF), also known as Bag-of-Visual Words (BoVW) [18], [19]. BoFs are wildly used in computer vision tasks, such as action recognition [20], object detection/recognition, sequence classification [21], and information retrieval [22]. A BoF layer can be combined with convolutional layers to form a powerful convolutional architecture that is end-to-end trainable using the regular back-propagation algorithm [17].

8The block diagram of the proposed BoCF model is illustrated in Figure 1. It consists of three main blocks: feature extraction block, Bag of Features block, and an estimation block. In the first block, regular convolutional layers are used to extract relevant features. Inspired by the assumption that second order gradient information is sufficient to extract the illumination information [13], we use only two convolutional layers to extract the features. In our experiments, we also study and validate this hypothesis empirically. In the second block, i.e., the Bag of Features block, the network learns the dictionary using back-propagation [17] over the non-linear transformation provided by the first block. This block outputs a histogram representation, which is fed to the last component, i.e., the estimation block, to regress to the scene illumination.

9In most CNN-based approaches used to solve the color constancy problem [5], [6], [7], [8], fully connected layers are connected directly to a flattened version of the last convolutional layer output. This increases the numbers of parameters dramatically, as convolutional layer outputs usually have a high dimensionality. In the proposed method, we address this problem by introducing an intermediate pooling block, i.e., the Bag of Features block, between the last convolutional layer and the fully connected layers. The proposed model achieves comparable results to previous state of the art illumination estimation methods while substantially reducing the number of the needed parameters, by up to 95%. Additionally, the pooling process natively discards all global spatial information, which is, as discussed earlier, irrelevant for color constancy. Using only two convolutional layers in the first block, limits the model to only shallow features. These two advantages make proposed approach both consistent and in full corroboration with statistical approaches [13].

10To further improve the performance of the proposed model, we also propose two variants of a self-attention mechanism for the BoCF model. In the first variant, we add an attention mechanism between the feature extraction block and the Bag of Features block. This mechanism allows the network to dynamically select parts of the image to use for estimating the illumination, while discarding the remaining parts. Thus, the network becomes robust to noise and irrelevant features. In the second variant, we add an attention mechanism on top of the histogram representation, i.e., between the Bag of Features block and the estimation block. In this way, we allow the network to learn to adaptively select the elements of the histogram which best encode the illuminant information. The model looks over the whole histogram after the spatial information has been discarded and generates a proper representation according the current context (histogram). The introduced dynamics will be shown in the experiments to enhance the model performance with respect to all evaluation metrics and across all the datasets.

11The main contributionsof the paper are as follows:

12• We propose a novel CNN-based color constancy algorithm, called BoCF, based on Bag-of-Features Pooling. The proposed model is both shallow and able to achieve competitive results across multiple datasets compared to the state of the art.

•

13We establish explicit links between BoCF and prior statistical methods for illumination estimation and show that the proposed method can be framed as a learning-based generalization of many statistical approaches. This powerful approach fills the gap and provides the missing links between CNN-based approaches and static approaches.

14We propose two novel attention mechanisms for BoCF that can further improve the results. To the best of our knowledge, this is the first work which combines attention mechanism with Bag-of-Features Pooling.

15• The proposed method is extensively evaluated over three datasets leading to competitive performance with respect to existing state of the art, while substantially reducing the number of parameters.

16The rest of this paper is organized as follows. Section 2 provides the background of color constancy approaches and a brief review of the Bag-of-Features Pooling technique and the attention mechanism used in this work. Section 3 details the proposed approach along with the two attention mecha-nisms based variants. Section 4 introduces the datasets and the evaluation metrics used in this work along with the evaluation procedure. Section 5 presents the experimental results on three datasets: ColorChecker RECommended [12], NUS8-Dataset [13], and INTEL-TUT version2 [10]. In Section 6, we highlight the links between our approach and many existing methods and we show how our approach can be considered as a generic framework for expressing existing approaches. Section 7 concludes the paper.

Color constancy

17Typically, two types of color constancy approaches are distinguished, namely static methods and supervised methods. The former involves methods with static parameters settings that do not need any labeled image data for learning the model, while the latter are data-driven approaches that learn to estimate the illuminant in a supervised manner using labeled data.

Static methods

18Static methods exploit the statistical or physical properties of a scene by making assumptions about the nature of colors. They can be classified into two categories: methods based on low-level statistics [23], [24], [25], [26] and methods based on the physics-based dichromatic reflection model [4], [15], [27], [28]. A number of approaches belonging to the first category were unified by Van de Weijer et al. [25] into a single framework expressed as follows:

19where n denotes the derivative order, p the Minkowski norm and k the normalization constant for ρ gt . Also, ρ σ (x, y) = ρ(x, y) * g σ (x, y) denotes the image convolution with a Gaussian filter with a scale parameter σ. This framework allows for deriving different algorithms simply by setting the appropriate values for n, p and σ.

20The well-known Gray-World method [24], corresponding to (n = 0, p = 1, σ = 0), assumes that under a neutral illumination the average reflectance in a scene is achromatic and the illumination is estimated as the shift of the image average color from gray. White-Patch [23] (n = 0, p = ∞, σ = 0), assumes that the maximum values of RGB color channels are caused by a perfectly reflecting surface in the scene. Therefore, the illumination components correspond to these maximum values. Besides Gray-World and White-Patch methods, which make use of the color distribution in the scene to build their estimations, Gray-Edge method [25] utilizes image derivatives. Instead of the global average color, Gray-Edge methods (n = 1, p = p, σ = σ) assume that the average color of edges or the gradient of edges is gray. The illuminant's color is then estimated as the shift of the average edge color from gray. Physics-based dichromatic reflection models estimate the illumination by analyzing the scene and exploiting the physical interactions between the objects and the illumination. The main assumption of most methods in this category is that all pixels of a surface form a plane in RGB color space. As the scene contains multiple surfaces, this results in multiple planes. The intersection between these planes is used to compute the color of the light source [27]. Lee et al. [15] exploited the bright areas in the captured scene to obtain an estimate of the illuminant color. In this work, we establish links between our proposed approach, BoCF, and several static methods. We show that BoCF can be interpreted as a learning-based extension of several of these approaches.

Supervised methods

21Supervised methods can be further divided into two main categories: characterization-based methods [29], [30] and training-based methods [5], [6], [31], [32]. The former involves light training processes in order to learn the characterization of the camera response in some way, while the latter involves methods that try to learn the illumination directly from the scene.

22Gamut Mapping [29], [30] is one of the most famous characterization-based approaches. It assumes that for a given illumination condition, only a limited number of colors can be observed. Thus any unexpected variation in the observed colors is caused by the light source illuminant. The set of colors that can occur under a given illumination, called canonical gamut, is first learned in a supervised manner. In the evaluation, an input gamut which represents the set of colors used to acquire the scene is constructed. The illumination is then estimated by mapping this input gamut to the canonical gamut.

23Another group of training-based methods combines different illumination estimation approaches and learns a model that uses the best performing method or a combination of methods to estimate the illuminant of each input based on the scene characteristics [31]. Bianco et al. used indoor/outdoor classification to select the optimal color constancy algorithm given an input image [32]. Lu et al. proposed an approach which exploits 3D scene information for estimating the color of a light source [33]. However, these methods tend to overfit and fail to generalize to all scene types.

24The first attempt to use Convolutional Neural Networks (CNNs) for solving the illuminant estimation problem was established by Bianco et al. [5], where they adopted a CNN architecture operating on small local patches to overcome the data shortage. In the testing phase, a map of local estimates is pooled to obtain one global illuminant estimate using median or mean pooling. Hu et al. [6] introduced a pooling layer, namely confidence-weighted pooling. In their fully convolutional network, they incorporate learning the confidence of each patch of the image in an end-to-end learning process. Patches in an image can carry different confidence weights according to their estimated accuracy in predicting the illumination. Shi et al. [7] proposed a network with two interacting sub-networks to estimate the illumination. One sub-network, called the hypothesis network, is used to generate multiple plausible illuminant estimations depending on the patches in the scene. The second subnetwork, called the selection network, is trained to select the best estimate generated by the first sub-network. Inspired by the success of Generative Adversarial Networks (GANs) in image to image translation [34], Das et al. formulated the illumination estimation task as an image-to-image translation task [35] and used a GAN to solve it. However, these CNN-based methods suffer from certain weaknesses: computational complexity and disconnection with both the illumination assumption [13] and the prior static methods, e.g., Grey-World [24] and White-Patch [23]. This paper attempts to cure these drawbacks by proposing a novel CNN approach, BoCF, which discards the global spatial information in agreement with [13] and [25], and is competitive with the training-based methods while using only 5% of the parameters.

Bag-of-Features Pooling

25Passalis and Tefas proposed a Bag-of-Features Pooling (BoFP) layer [16], [17], which is a neural extension of the Bag-of-Features model (BoF). BoFPL can be combined with convolutional layers to form a powerful architecture which can be trained end-to-end using the regular backpropagation algorithm [17], [36]. In this work, we use this pooling technique to learn the codebook of color features. Thus, the naming Bag of Color Features (BoCF). This pooling discards all the global spatial information and outputs a fixed length histogram representation. This allows us to reduce the large number of parameters usually needed when linking convolutional layers to fully connected layers. Furthermore, discarding global spatial information forces the network to learn to extract the illumination without global spatial inference, thus improving model robustness and adhering to the illumination assumption [13]. As an additional novel feature to the prior works using Bag-of-Features Pooling [17], [36], we propose introducing an attention mechanism to enables the model to discard noise and focus only on relevant parts of the input presentation. To the best of our knowledge, this is the first work which combines attention mechanisms with Bag-of-Features Pooling.

Attention mechanisms

26Attention mechanisms were introduced in Natural Language Processing (NLP) [37] for sequence-to-sequence (seq2seq) models in order to tackle the problem of shortterm memory faced in machine translators. They allow a machine translator to see the full information contained in the original input and then generate the proper translation for the current word. More specifically, they allow the model to focus on local or global features, as needed. Self-attention [38], also known as intra-attention, is an attention mechanism relating different positions of a single sequence in order to compute a representation of the same sequence. In other words, the attention mask is computed directly from the original sequence. This idea has been exported to many other problems in NLP and computer vision such as machine reading [39], text summarization [40], [41], and image description generation [42]. In [42], self-attention is applied to an image to enable the network to generate an attention mask and focus on the region of interest in the original image.

27Attention in deep learning can be broadly interpreted as a mask of importance weights. In order to evaluate the importance of a single element, such as a pixel or a feature in general, for the final inference, one can form an attention vector by estimating how strongly the element is correlated with the other elements and use this attention vector as a mask when evaluating the final output [42]. Let x = [x 1 , ..., x n ] ∈ R n be a vector. The goal of a selfattention mechanism is to learn to generate a mask vector v ∈ R n depending only on x, which encodes the importance weights of the elements of x. Let f be a mapping function between x and v. The dependency can be expressed as follows:

28under the constraint:

29After computing the mask vector v, the final output of the attention layer y is computed as follows:

30The concept of attention, i.e., focusing on particular regions to extract the illumination information in color constancy, can be rooted back to many statistical approaches. For example, White-Patch reduces this region to the pixel with the highest RGB values. Other methods, such as [15] focus on the bright areas in the captured scene, called specular highlights. Instead of making such a strong assumption on the relevant regions, in BoCF we allow the model to learn to extract these regions dynamically. To the best of our knowledge, this is the first work, which uses attention mechanisms in the color constancy problem.

PROPOSED APPROACH

31In order to reduce the number of parameters needed to learn the illumination [6], [7], we propose a novel color constancy approach based on the Bag-of-Features Pooling [17], called herein the BoCF approach. The proposed approach along with the novel attention variants is illustrated in Figure 2. The proposed model has three main blocks, namely the feature extraction, the Bag of Features, and the illumination estimation blocks. In the first block, a nonlinear transformation of a raw image is obtained. In the second block, a histogram representation of this transform is compiled. This histogram is used in the third block to estimate the illumination.

Feature extraction

32The feature extraction algorithm takes a raw image as input and outputs a nonlinear transformation representing the image features. A CNN is used in this block. CNNs are known for their ability to extract relevant features directly from raw images. Technically, any CNN architecture can be used in this block. However, we observed in our experiments that only two convolutions followed by downsampling layers, e.g., max-pooling yields satisfactory results. This is in accordance with the assumption of statistical methods that the second order information is enough to estimate the illumination [13], [25]. After a raw image is fed to the feature extraction block, the output of the last convolutional layer is used to extract feature vectors that are subsequently fed to the next block. The number of extracted feature vectors depends on the size of the feature map and the used filter size as described in [17].

Bag of Features

33The Bag of Features is essentially the codebook (dictionary) learning component. The output features of the previous block are pooled using the Bag-of-Features Pooling and mapped to a final histogram representation. During training, the network optimizes the codebook using the traditional back-propagation. The output of this block is a histogram of a fixed size, i.e., the size of the codebook, which is a hyper-parameter that needs to be carefully tuned to avoid over-fitting. This approach discards all global spatial information. As described in [17], the Bag-of-Features Pooling is composed of two sub-layers: an RBF layer that measures the similarity of the input features to the RBF centers and an accumulation layer that builds the histogram of the quantized feature vectors. The normalized output of each RBF neuron can be expressed as

34where x is a feature vector, v k is the center of the k-th RBF neuron, exp is the exponential function, and ρ k is a scaling factor. The output of the RBF neurons is accumulated in the next layer, compiling the final representation of each image:

35where N is the number of feature vectors extracted from the last convolutional layer for the image.

Illumination Estimation

36The Bag of Features layer receives a transformation of the raw image and compiles its histogram representation. Then, this histogram is fed to a regressor that estimates the illumination. In this work, a multi-layer perceptron with one hidden layer is used for this purpose, although any other estimator with differentiable loss function can be used. Let x ∈ R n be the histogram compiled by the second block. The intermediate layer output h ∈ R m can be computed as follows

37where W 1 ∈ R n×m is the weight matrix, b 1 ∈ R m is the bias vector, and ϕ is the Rectied Linear Units (ReLU) activation function [43]. The final estimate I ∈ R 3 is computed as follows

38where W 2 ∈ R m×3 is the weight matrix, b 2 ∈ R 3 is the bias vector, and φ is the softmax activation function defined by

Attention mechanism for BoCF

39We introduce a novel attention mechanism in the BoCF model to enable the algorithm to dynamically learn to focus on a specific region of interest in order to yield a confident output. We combine self-attention, described in Section 2.3, with the Bag-of-Features Pooling for the color constancy problem. We propose two variants of this mechanism which can be applied in our model. For the mapping function f in (Eq. 4), we use a fully connected layer with softmax activation.

40In the first variant, we propose to apply attention on the nonlinear transformation of the image after the feature extraction block. This enables the model to learn to attend the region of the interest in the mapping and to reduce noise before pooling. By applying attention in this stage, the number of parameters will rise exponentially as we need as many parameters as features.

41In the second variant, we propose to apply the attention mechanism on the histogram representation of the BoCF, i.e., after the global spatial information is discarded. This enables the model to dynamically learn to tend to the relevant parts of the histogram which encode the illuminant information. In this variant, the attention mask size is equal to the size of the histogram. Thus, the number of additional parameters is relatively small. Following the notations of (4) and (5), x ∈ R n is the histogram representation and v ∈ R n is the attention mask is obtained via the fully connected layer as follows:

42where W ∈ R N ×N is a weight matrix, b ∈ R N is the bias.

43Using softmax as φ ensures that the masking constraint defined in (Eq. 5) is not violated. Finally, y, the final output of the attention mechanism, is computed using the following equation

44where is the element wise product operator and λ ∈ R is a weighting parameter between the masked histogram v x and the original histogram x. λ is a learnable parameter in our model. Not using λ and outputting only the masked histogram is also another option. However, we determined experimentally that outputting the weighted sum of both the original and the masked version is more robust and stable for the gradient-based optimizers, since it is less susceptible to random initialization weights of the attention. Parameter λ can be optimized using the gradient decent in the back-propagation process along with the rest of the parameters. Its gradient with respect to the output of the attention block can be obtained via the following equation

EXPERIMENTAL SETUP

45In this section, we present the experimental setup used in this work. In Subsection 4.1, we introduce the datasets used to test our models. In Subsection 4.2, we report the network architectures of the three blocks used in BoCF. In Subsection 4.3, we detail the evaluation process followed in our experiments. Finally, the evaluation metrics used are briefly described in Subsection 4.4.

ColorChecker RECommended dataset

46ColorChecker RECommended dataset [12] is a publicly available updated version of Gehler-Shi dataset [11] 1 with a proposed (recommended) ground truth to use for evaluation. This dataset contains 568 high-quality indoor and outdoor images acquired by two cameras: Canon 1D and Canon 5D. Similar to the works in [5], [6], [7], [8], for Color Cheker REComended dataset, we used three-fold cross validation to evaluate our algorithms.

NUS-8 Camera Dataset

47NUS-8 is a publicly available dataset 2 , containing 1736 raw images from eight different camera models. Each camera has about 210 images. Following previous works [6], [13], we perform tests on each camera separately and report the mean of all the results for each evaluation metric. As a result, although the total number of images in NUS-8 dataset is large, each experiment involves using only 210 images for both training and testing.

INTEL-TUT2

48INTEL-TUT2 3 is the second version of the publicly available INTEL-TUT dataset [10]. The main particularity of this dataset is that it contains a large number of images taken by several cameras from different scenes. We use this dataset for an extreme testing protocol, the third protocol described in [10]. The models are trained with images acquired by one camera and containing one type of scene and tested on the other cameras and the other scenes. This extreme test is useful to show the robustness of a given model and its ability to generalize across different cameras and scenes.

49INTEL-TUT2 contains images acquired with three different cameras, namely Canon, Nikon, and, Mobile. For each camera, the images are divided into four sets: field (144 images per camera), lab printouts (300 images per camera), lab real scenes (4 images per camera), and field2. The last set field2 concerns only Canon and it has a total of 692 images. Figure 3 shows some samples from the field, lab printouts, and lab real scenes sets of the three cameras, while Figure 4 displays samples from field2 related to Canon camera.

50We used only Canon field2 set for training and validation (80% for training and 20% for validation). We constructed two test sets. The first one, called field in this work, contains all the field images taken by the other camera models, i.e., Nikon and Mobile. The second set, called non-field in this work, contains all the non-field images acquired by Nikon and Mobile. Comparing the performance on these two sets allowed us to test both scene and camera invariance of the model. As we are using different camera models in same experiments, the variation of camera spectral sensitivity needs to be discounted. For this purpose, we use Color Conversion Matrix (CCM) based preprocessing [44] to learn the 3 × 3 Color Conversion Matrix (CCM) matrices for each camera pair.

Network architectures

51The BoCF network is composed of three blocks: the feature extraction, the Bag of Features, where the Bag-of-Features Pooling is applied, and the illumination estimation blocks as described in Section 3. The feature extraction block consists of convolution layers followed by max pooling operators. We experiment with different number of layers two and three. Thirty convolution filters of size 4 × 4 are used in both layers. Max-pooling with a window size 2 is applied in both layers. For the codebook size, i.e., number of RBF neurons in the Bag of Features block, we experiment with 3 different values 50, 150 and 200. The illumination estimation block consists of 2 fully connected layers, the first (hidden layer) has a size of 40 and it takes as input the histogram representation and the second one (final output) has of size 3 to output the illumination.

Evaluation procedure

52To evaluate the proposed approach, we used 2 sets of experiments. In the first set, we evaluate different variants of the model to study the effect of the hyper-parameters and validate the effectiveness of each component in our model by conducting ablation studies. For this purpose, we used ColorChecker RECommended dataset. In the second set of experiments, we compared our approach with current stateof-the-art approaches on the three datasets.

53For all testing scenarios, we augmented the datasets using the following process: As the size of the original raw images is high, we first randomly cropped 512×512 patches of each image. This ensured getting meaningful patches. The crops were then rotated by a random angle between -30 • and +30 • . Finally, we rescaled the RGB values of each patch and its corresponding ground truths by random factor in the range of [0. 8, 1.2]. Before feeding the sample to the network, we down-sampled it to 227 × 227. In testing, the images are resized to 227 × 227 to fit the network model.

54Our network was implemented in Keras [45] with Tensorflow backend [46]. We trained our network end-to-end by back-propagation. For optimization, Adam [47] was employed with a batch size of 15 and a learning rate of 3 × 10 4 . The model was trained on image patches of size 227×227 for 3000 epochs. The centers of the dictionary were initialized using the k-means algorithm as described in [17]. The parameter λ, discussed in Section 3.4, was initialized as 0.5.

Evaluation metrics

55We report the mean of the top 25%, the mean, the median, Tukey's trimean, and the mean of the worst 25% of the recovery angular error (RAE) [48] between the ground truth illuminant and the estimated illuminant, defined as

56where ρ gt is the ground truth illumination for a given image and ρ Est is the estimated illumination.

EXPERIMENTAL RESULTS

57In this section, we provide the experimental evaluation of the proposed method and its variants. In Subsection 5.1, different topologies for the three blocks of BoCF are evaluated on the ColorChecker RECommended dataset and the effect of each block in our model is examined by reporting the results of the ablation studies. In Subsection 5.2, we compare the performance of the proposed models with different state-of-the-art algorithms over the three datasets.

BoCF performance evaluation

58We first evaluated the accuracy of the different variants of BoCF on ColorChecker RECommended dataset. Table 1 presents the comparative results for BoCF using different topologies in the three blocks. We evaluate the model using different dictionary sizes in the second block (codewords), different numbers of convolution layers in the first block, and with/without attention. Table 1 shows that the dictionary size in the Bag-of-Features Pooling block significantly affects the overall performance of the model. Using a larger codebook results in higher risk of overfitting to the training data, while using a smaller codebook size restricts the model to only few codebook centers which can decrease the overall performance of the model. Thus, the choice of this hyperparameter is critical for our model. The findings in Table 1 confirm this effect and highlights the importance of this hyperparameter. By comparing the model performance using different dictionary sizes, we can see that a dictionary of size 150 yields the best compromise between the number of parameters and the overall performance.

59Using three convolutional layers instead of two in the first block yields slightly better median errors and worse trimean errors. However, to keep the model as shallow as possible, we opt for the two convolution layers. Table 1 shows that models equipped with an attention mechanism perform better than models without attention almost consistently across all error metrics. This is expected as attention mechanisms allow the model to focus on relevant parts only and as a result, the model becomes more robust to noise and to inadequate features. The performance boost obtained by both attention variants is more highlighted in terms of the median and trimean errors compared to the non-attention variant.

60By comparing the performance achieved by the two attention variants, we note that the first attention variant yields in a better performance in terms of worse 25% error rate, while the second variant yields a better median and trimean error rates. It should also be remembered that the first variant applies attention over the feature map output of the first convolutional block. Thus, it dramatically increases the number of model parameters (over 20 times) compared to the second variant (doubling the number of parameters) which applies the attention over the histogram. Figure 5 presents a visualization of the attention weights [49] for both attention variants. The heat maps demonstrate which regions of the image each model pays attention to so as to output a certain illumination. We note a large difference between both attentions. The first attention variant tends to focus on regions with dense edges and sharp shapes, while the second model focuses on uniform regions to estimate the illumination.

Ablation studies

61To examine the effect of each block in our proposed approach, we conduct ablation studies on the colorChecker RECommended dataset. Table 2 reports the results of the basic BoCF approach, the results achieved by removing the feature extraction block, and the results obtained by removing the estimation block, i.e., replacing the fully connected layer in the estimation block with a simple regression, We note that removing any block significantly decreases the overall performance of our models.

62Comparing the model with and without the feature extraction block, we note a large drop in performance especially in terms of the worst 25% error rates, i.e., 1.8 • drop compared to 0.6 • drop when the estimation block is removed.

Comparisons against state-of-the-art

63We compare our BoCF approach with the state-of-theart methods on ColorChecker RECommended, NUS-8, and INTEL-TUT2 datasets, which have been widely adopted as benchmark datasets in the literature. Tables 4, 5, and 6 provide quantitative results for ColorChecker RECommended, NUS-8, and INTEL-TUT2 datasets, respectively. We provide results for the static methods Grey-World, White-Patch, Shades-of-Grey, and General Grey-World. The parameter values n, p, ρ are set as described in [25]. In addition, we compare against Pixel-based Gamut, Bright Pixels, Spatial Correlations, Bayesian Color Constancy [11], and six convolutional approaches: Deep Specialized Network for Illuminant Estimation (DS-Net) [7], Bianco CNN [5], Fast Fourier Color Constancy [50], Convolutional Color Constancy [51], Fully Convolutional Color Constancy With Confidence-Weighted Pooling (FC4) [6], and Color Constancy GANs (CC-GANs) [35]. The results for ColorChecker RECommended and NUS-8 datasets were taken from related papers [6], [35]. From Recommended Color Checker and NUS-8 datasets results in Tables 4 and 5, we note that learning-based methods usually outperform statistical-based methods across all error metrics. This can be explained by the fact that statistical approaches rely on some assumptions in their model. These assumptions can be violated in some testing samples which results in high error rates especially in terms of the worst 25% errors. Table 4 shows that the proposed method BoCF and its variants achieve competitive results on Recommended Color Checker dataset. The only models performing slightly better than BoCF are FC4(SqueezeNet) and DS-Net. By comparing the number of parameters required by each model given in Table 3, we see that BoCF achieves very competitive results, while using less than 1% of the parameters of FC4(SqueezeNet) and less than 0.1 % of the parameters of

DS-Net.

64Compared to Bianco's CNN, we note that our model performs better across all error metrics except for the worst 25% error metric. Bianco CNN operates on patches instead of the full image directly and this makes it more robust but, at the same time, it increases its time complexity as the network has to estimate many local estimates before outputting the global one.

TABLE 3 Number of parameters of different CNN-based approaches

65Method # parameters Bianco [5] 154k Fc4(SqueezeNet) [6] 1.9M FC4 (AlexNet) [6] 3.8M DS-Net [7] 17.3M BoCF(2conv+150 words + no attention) 20k BoCF(2conv+150 words + attention1) 376k BoCF(2conv+150 words + attention2) 43k

66Results for NUS-8 dataset are similar to their counter parts on ColorChecker RECommended, as illustrated in Table 5. Our models achieve comparable results with FC4 and overall better results compared to DS-Net across all error metrics. Bianco's CNN outperforms all the other CNNbased methods. As discussed earlier, this can likely be explained by the fact that Bianco operates on patches while BoCF and FC4 produce global estimates directly. Table 6 reports the comparative results achieved on INTEL-TUT2 dataset. We note that all the error rates are high as this is an extreme testing senario. The models are trained and validated using only one type of scene (field2 set) acquired by one camera model (Canon) and then evaluated over different scene types and different camera models not seen during the training as described in Section 4.3. The proposed BoCF model achieves better overall performance compared to Bianco's CNN and Color Constancy Convolutional AutoEncoder (C3AE) methods and competitive results compared to FC4.

67By comparing the performance achieved by BoCF with and without attention, we note both the attention mechanisms proposed in this paper significantly boost the performance of our model for all datasets. It should also be mentioned that despite requiring much less parameters, the second variant of our attention model, where the attention is applied over the histogram representation, performs slightly better than the first variant, where the attention is applied over the feature extraction block.

DISCUSSION

68When comparing our approach to the competing methods, it must be pointed out that our approach can be linked to many previous static-based approaches. In Grey-World [24], one takes the average of the RGB channels of the image. In the proposed method, this corresponds to using the identity as a feature extractor and using equal weights in the estimation block. This way all the histogram bins will contribute equally in the estimation. White-Patch [23] takes the max across the color channels, which corresponds to giving a high weight to the histogram bin with the highest intensity and giving zero weights to the rest. Greyedge and its variants [25] correspond to using the first and second order derivatives as a feature extractor. Thus, BoCF approach can be interpreted as a learning-based generalization of these statistical based approaches. Instead of using the image directly, we allow the model to learn a suitable non-linear transformation of the original image, through the feature extraction block, and instead of imposing a prior assumption on the contribution of each feature in the estimation, we allow the model to learn the mapping dynamically using the training data.

69It is interesting to note that the attention variants in our approach can be tightly linked to the confidence maps in FC4 [6]. In FC4, confidence scores are assigned to each patch of the image and a final estimate is generated by a weighted sum of the scores and their corresponding local estimates. This way the network learns to select which features contribute to the estimation and which parts should be discard. Similarly, attention mechanism learn to dynamically pay attention to the parts encoding the illumination information and discarding the rest.

CONCLUSION

70In this paper, we proposed a novel color constancy method called BoCF, which is composed of three blocks. In first block, called feature extraction, we employ convolutional layers to extract relevant features from the input image. In the second block, we apply Bag-of-Features Pooling to learn a codebook and output of histogram. The latter is fed into the last block, the estimation block, where the final illumination is estimated. This end-to-end model is evaluated and compared with prior works over three datasets: ColorChecker RECommended, NUS-8, and INTEL-TUT2. BoCF was able to achieve competitive results compared to state-of-the-art methods while reducing the number of parameters up to 95%. In this paper, we also discussed links between the proposed method and statistic based methods and we showed how the proposed approach can be interpreted as a supervised extension of these approaches and can act as a generic framework for expressing existing approaches as well as developing new powerful methods.

71In addition, we proposed combining the Bag-of-Features Pooling with two novel attention mechanisms. In the first variant, we apply attention over the nonlinear transform of the image after the feature extraction block. In the second extension, we apply attention over the histogram representation of the Bag-of-Features Pooling. These extensions are shown to improve the overall performance of our model.

72In future work, extensions of the proposed approach could include exploring regularization techniques to ensure diversity in the learned dictionary and improve the generalization capability of the model.

참고문헌 65건

  1. Gray-World Assumption on Perceptual Color Spaces Lecture notes in computer science · Springer Science+Business Media · 2014 10.1007/978-3-642-53842-1_42
  2. Show, Attend and Tell: Neural Image Caption Generation with Visual Attention International Conference on Machine Learning · 2015
  3. Adam: A Method for Stochastic Optimization 2014
  4. Shades of Gray and Colour Constancy Color and Imaging Conference · 2004 10.2352/cic.2004.12.1.art00008
  5. Rectified Linear Units Improve Restricted Boltzmann Machines International Conference on Machine Learning · 2010
  6. Effective Approaches to Attention-based Neural Machine Translation Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · 2015 10.18653/v1/d15-1166
  7. Effective learning-based illuminant estimation using simple features 2015 10.1109/cvpr.2015.7298702
  8. Color constancy using CNNs 2015 10.1109/cvprw.2015.7301275
  9. Edge-Based Color Constancy IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2007 10.1109/tip.2007.901808
  10. Towards optimal bag-of-features for object categorization and semantic video retrieval 2007 10.1145/1282280.1282352
  11. Color constancy through inverse-intensity chromaticity space Journal of the Optical Society of America A · Optica Publishing Group · 2004 10.1364/josaa.21.000321
  12. Color Constancy by Category Correlation IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2171353
  13. Re-evaluating colour constancy algorithms Deleted Journal · 2004 10.1109/icpr.2004.732
  14. &lt;title&gt;Color correction between gray world and white patch&lt;/title&gt; Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2002 10.1117/12.469534
  15. Multidimensional Sequence Classification Based on Fuzzy Distances and Discriminant Analysis IEEE Transactions on Knowledge and Data Engineering · IEEE Computer Society · 2012 10.1109/tkde.2012.223
  16. Discriminant Bag of Words based representation for human action recognition Pattern Recognition Letters · Elsevier BV · 2014 10.1016/j.patrec.2014.07.011
  17. 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
  18. Automatic color constancy algorithm selection and combination Pattern Recognition · Elsevier BV · 2009 10.1016/j.patcog.2009.08.007
  19. Computational Color Constancy: Survey and Experiments IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2118224
  20. Can illumination estimates provide the basis for color constancy? Journal of Vision · Association for Research in Vision and Ophthalmology · 2009 10.1167/9.3.18
  21. A Bayesian Hierarchical Model for Learning Natural Scene Categories 2005 10.1109/cvpr.2005.16
  22. Bayesian color constancy revisited 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2008 10.1109/cvpr.2008.4587765
  23. 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
  24. Color Constancy with Spatio-Spectral Statistics IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2011 10.1109/tpami.2011.252
  25. Neural Machine Translation by Jointly Learning to Align and Translate arXiv (Cornell University) · Cornell University · 2014
  26. 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
  27. Improving gamut mapping color constancy IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2000 10.1109/83.869188
  28. Color constancy using 3D scene geometry 2009 10.1109/iccv.2009.5459391
  29. Indexing chromatic and achromatic patterns for content-based colour image retrieval Pattern Recognition · Elsevier BV · 2002 10.1016/s0031-3203(01)00162-5
  30. ImageNet Classification with Deep Convolutional Neural Networks Neural Information Processing Systems · 2012
  31. Using High-Level Visual Information for Color Constancy 2007 10.1109/iccv.2007.4409109
  32. A Retinal Mechanism Inspired Color Constancy Model IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2016 10.1109/tip.2016.2516953
  33. Long Short-Term Memory-Networks for Machine Reading 2016 10.18653/v1/d16-1053
  34. SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size arXiv (Cornell University) · Cornell University · 2016
  35. The Role of Bright Pixels in Illumination Estimation Color Imaging Conference · 2012
  36. Gamut Mapping for Digital Cinema SMPTE Motion Imaging Journal · Society of Motion Picture and Television Engineers · 2014 10.5594/j18486
  37. TensorFlow: a system for large-scale machine learning Operating Systems Design and Implementation · 2016 10.5555/3026877.3026899
  38. 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
  39. Practical colour constancy 1999
  40. 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
  41. Deep Specialized Network for Illuminant Estimation Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46493-0_23
  42. Deep outdoor illumination estimation 2017 10.1109/cvpr.2017.255
  43. Neural Bag-of-Features learning Pattern Recognition · Elsevier BV · 2016 10.1016/j.patcog.2016.11.014
  44. Fast Fourier Color Constancy 2017 10.1109/cvpr.2017.735
  45. Massive Exploration of Neural Machine Translation Architectures Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · 2017 10.18653/v1/d17-1151
  46. FC^4: Fully Convolutional Color Constancy with Confidence-Weighted Pooling 2017 10.1109/cvpr.2017.43
  47. Time-series classification using neural Bag-of-Features 2021 29th European Signal Processing Conference (EUSIPCO) · 2017 10.23919/eusipco.2017.8081217
  48. Color Constancy by GANs: An Experimental Survey. arXiv (Cornell University) · Cornell University · 2018
  49. Show, Attend and Tell: Neural Image Caption Generation with Visual\n Attention arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1502.03044
  50. TensorFlow: A system for large-scale machine learning arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1605.08695
  51. Image-to-Image Translation with Conditional Adversarial Networks 2017 10.1109/cvpr.2017.632
  52. Attention is All you Need arXiv (Cornell University) · Cornell University · 2017
  53. Learning Bag-of-Features Pooling for Deep Convolutional Neural Networks 2017 10.1109/iccv.2017.614
  54. Network In Network arXiv (Cornell University) · Cornell University · 2014
  55. Rehabilitating the ColorChecker Dataset for Illuminant Estimation Color and Imaging Conference · Society for Imaging Science & Technology · 2018 10.2352/issn.2169-2629.2018.26.350
  56. (제목 없음) DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Schloss Dagstuhl – Leibniz Center for Informatics · 2021 10.4230/lipics.cp.2021.42
  57. Neural Machine Translation by Jointly Learning to Align and Translate arXiv (Cornell University) · Cornell University · 2015
  58. A Data Set for Camera-Independent Color Constancy IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/tip.2017.2764264
  59. Color Constancy Convolutional Autoencoder 2021 IEEE Symposium Series on Computational Intelligence (SSCI) · 2019 10.1109/ssci44817.2019.9002684
  60. Gamut Mapping for Digital Cinema 2013 10.5594/m001489
  61. Re-evaluating colour constancy algorithms Proceedings of the 17th International Conference on Pattern Recognition, 2004. ICPR 2004. · 2004 10.1109/icpr.2004.1334009
  62. Color Constancy by GANs: An Experimental Survey arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1812.03085
  63. The Role of Bright Pixels in Illumination Estimation Color and Imaging Conference · Society for Imaging Science & Technology · 2012 10.2352/cic.2012.20.1.art00008
  64. MizAR 60 for Mizar 50 DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Schloss Dagstuhl – Leibniz Center for Informatics · 2023 10.4230/lipics.itp.2023.19
  65. Convolutional Color Constancy 2015 10.1109/iccv.2015.51