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

Invariant Descriptors for Intrinsic Reflectance Optimization

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Baslamisli, Anil S.
  2. Gevers, Theo
DOI
10.48550/arxiv.2204.04076
저널
OPAL (Open@LaTrobe) (La Trobe University)
발행년도
2022
발행기관
La Trobe University
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://figshare.com/articles/preprint/Invariant_Descriptors_for_Intrinsic_Reflectance_Optimization/21887241
토픽
Color Science and Applications
OpenAlex ID
W6910568709

평가 내용

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

초록

Intrinsic image decomposition aims to factorize an image into albedo (reflectance) and shading (illumination) sub-components. Being ill-posed and under-constrained, it is a very challenging computer vision problem. There are infinite pairs of reflectance and shading images that can reconstruct the same input. To address the problem, Intrinsic Images in the Wild provides an optimization framework based on a dense conditional random field (CRF) formulation that considers long-range material relations. We improve upon their model by introducing illumination invariant image descriptors: color ratios. The color ratios and the reflectance intrinsic are both invariant to illumination and thus are highly correlated. Through detailed experiments, we provide ways to inject the color ratios into the dense CRF optimization. Our approach is physics-based, learning-free and leads to more accurate and robust reflectance decompositions.

본문 50,161자

본문 펼치기
## Invariant Descriptors for Intrinsic Reflectance Optimization ANIL S. BASLAMISLI <sup>1,*</sup> AND THEO GEVERS <sup>1,2</sup> _1University of Amsterdam, Science Park 904, 1098XH Amsterdam, the Netherlands_ _23DUniversum, Science Park 400, 1098XH Amsterdam, the Netherlands_ _*a.s.baslamisli@uva.nl_ Abstract: Intrinsic image decomposition aims to factorize an image into albedo (reflectance) and shading (illumination) sub-components. Being ill-posed and under-constrained, it is a very challenging computer vision problem. There are infinite pairs of reflectance and shading images that can reconstruct the same input. To address the problem, Intrinsic Images in the Wild by Bell _et al_ . provides an optimization framework based on a dense conditional random field (CRF) formulation that considers long-range material relations. We improve upon their model by introducing illumination invariant image descriptors: color ratios. The color ratios and the reflectance intrinsic are both invariant to illumination and thus are highly correlated. Through detailed experiments, we provide ways to inject the color ratios into the dense CRF optimization. Our approach is physics-based, learning-free and leads to more accurate and robust reflectance decompositions. © 2022 Optical Society of America 1. Introduction Intrinsic image decomposition aims to factorize an image into albedo (reflectance) and shading (illumination) sub-components [1]. The reflectance component represents pure material colors of a scene, independent of any illumination effect including geometry and camera viewpoint. The shading component is invariant to color (albedo) and encodes the illumination effects within a scene such as shadows, shading due to geometry and ambient light. Due to their invariant properties, intrinsic images have been favored by numerous computer vision and computational photography applications. For example, semantic segmentation algorithms may profit from the illumination invariant properties of the reflectance map for robust estimations [2]. In addition, intrinsic images can be used for physically plausible photo editing tasks such as recoloring [3], color transfer and photo fusion [4]. In an ideal diffuse environment, element-wise multiplication of the reflectance _R_ and shading _S_ components properly approximates the observed image _I_ : _?_ = _?_ × _?._ (1) Being ill-posed and under-constrained, intrinsic image decomposition is a very challenging computer vision problem. Given an observed image, there exists twice as many unknowns, reflectance and shading, to predict. Hence, there are infinite pairs of reflectance and shading images that can reconstruct the same input. To address the problem, early methods adapt heuristics-based priors. For example, Land and McCann’s pioneering Retinex algorithm is based on the assumption that the reflectance images can directly be estimated by strong image gradients using a surface reconstruction algorithm [5]. Recent approaches either use an energy minimization (optimization) framework to constrain intrinsic image estimations based on handcrafted priors [6,7], or use data driven deep learning based techniques [8,9]. One of the key advantages of the optimization based methods is that they do not require any labeled data, whereas deep learning based methods demand considerable amounts of training data to learn the model parameters. Optimization based methods aim to regularize the intrinsic component computation to constrain their behavior based on hand-crafted priors. Those prior are mostly based on observations. For example, global reflectance sparsity [10,11] and piece-wise constant reflectance [5,12]. However, physics-based invariant descriptors are mostly ignored for crafting priors. One example is the photometric invariant color ratios [13]. They eliminate shading information and thus represent an image featuring only albedo edges. In that sense, color ratios and the reflectance intrinsic are both invariant to illumination and thus are highly correlated. However, this correlation has never been explored before. Thus, to our knowledge, we are the first work to compute dense reflectance intrinsic maps using color ratios. Therefore, in this paper, we explore the use of photometric invariant descriptors into an optimization scheme to compute reflectance (albedo) images. We demonstrate the effectiveness of such an approach by integrating color ratios into the dense CRF optimization framework of Bell _et al_ . [6]. Their model is publicly available 1, and their conditional random field framework considers long-range relative material relations as in the case of color ratios. Our extensions to their code is straightforward, fully unsupervised, do not demand any additional data like depth or image sequences, and do not require any domain calibration. In particular, the main contribution of this work is not to chase the highest performance numbers, but to put forward a novel hypothesis that physics-based color ratios can be used to improve and robustify reflectance predictions. To sustain our hypothesis, (1) the ratios are integrated in the Color Retinex paradigm to provide complementary color cues. The results are particularly important as almost all the optimization-based intrinsic image decomposition methods consider the Color Retinex approach in their framework. Thus, a more robust prior can be achieved. (2) The ratios are used to define an adaptive clustering initialization mechanism. Current work using the global reflectance sparsity prior treats the number of clusters as a hyper-parameter and decides it through a grid search. However, the process is costly, not effective and dataset dependent. (3) The ratios are embedded into a pairwise term that uses hand-crafted priors based on observations. Unlike hand-crafted priors, the ratios are physics-based and do not need domain calibration. (4) Finally, we demonstrate that these additions lead to reflectance predictions that are robust to outdoor natural shadow handling. Experiments on four different datasets show the merits of the proposed method. 2. Related Work The intrinsic image decomposition task is a very challenging computer vision problem as it ill-posed and under-constrained. Given a single pixel value, it seeks to find the two unknown disentangled variables; reflectance and shading. As a result, different combinations of the reflectance and shading may achieve the same input. An example is illustrated in Figure 1. Reflectance x Shading = RGB Image Reflectance x Shading = RGB Image Fig. 1. The ill-posed nature of the problem. The left part is an incorrect intrinsic image decomposition, whereas the right part presents the ground-truth one. Both achieve the same input image through R × S = I. [1https://github.com/seanbell/intrinsic](https://github.com/seanbell/intrinsic) The pioneering work, Retinex by Land and McCann, based on the Mondrian patterns, which are composed of piece-wise distinctly colored patches, identifies strong image gradients assuming they correspond to true albedo changes [5]. Then, those selected gradients are re-integrated by a surface reconstruction algorithm such as Poisson. Successive research focuses on deriving priors, based on observations, that can explain the characteristics of the intrinsic images. Usually, an optimization approach is taken to impose these constraints. For example, Gehler _et al_ . and Shen _et al_ . consider that the number of colors in a scene is limited, thus they sample reflectances from a sparse set of colors [10,11]. Shen _et al_ . and Zhao _et al_ . observe that the the distinct points with the intensity-normalized texture structures tend to have the same reflectance values [14,15]. In a similar manner, Shen _et_ _al_ . assume that a local neighborhood of pixels with similar intensity values also have similar reflectance values [16]. Similarly, Garces _et al_ . assume that changes in chromaticity usually correspond to changes in reflectance [17]. Jiang _et al_ . make the observation that correlations between local mean luminance and local luminance in textured regions indicate illumination changes [18]. Inspired by the Retinex algorithm’s assumption of piece-wise constant reflectances, other works impose piece-wise reflectance prior utilizing various regularization techniques [12,19–22]. Additional user guidance is also explored as a prior to associate reflectance values [16,23]. Moreover, when available, extra sensory information can be incorporated to obtain specific priors. For instance, Chen and Koltun, Jeon _et al_ . and Lee _et_ _al_ . explore supplementary depth and surface normal cues to constrain shading estimations [24–26]. More recently, near-infrared imagery based priors are explored by Chenge _et al_ . [7]. Finally, image sequences are utilized to impose constant reflectance prior over time [27–29]. To conclude, single image intrinsic image decomposition based on optimizations usually derive hand-crafted priors based on observation. In contrast, we propose to incorporate physics-based invariant descriptors that are not limited by the imaging conditions or the generalization quality of the hand-crafted features. Invariant descriptors are independent on a set of imaging conditions; thus, they represent simplified versions of the observed images. To derive them, physics-based reflection models are used. An example is the color ratios by Finlayson [13]. As illuminant invariants, they are used to construct histogram features for object recognition. Matas _et al_ . integrate ratios into a graph framework for efficient object recognition [30]. Nayar and Bolle employ color ratios for robust pose estimation [31]. Barnard and Finlayson identify possible shadow segments by color ratios for color constancy and dynamic range compression [32]. Color ratio gradients are also employed for content-based image retrieval of non-uniform texture objects [33]. Later, Gevers and Smeulders extend the idea of color ratios to cross color ratios that are also invariant to the scene geometry [34]. Not only cross color ratios are independent of illumination and geometry, but also the reflectance intrinsic by definition. Thus, cross color ratios emphasizing true color variations are expected to provide cues for intrinsic images. Nonetheless, this natural correlation between intrinsic images and cross color ratios has never been incorporated as a prior knowledge before. To that end, we suggest the use of photometric invariant descriptors into optimization to compute reflectance intrinsics. Unlike hand-crafted priors that are based on observation and require domain expertise, cross color ratios are based on physics-based reflections models. They are directly computed from the observed _???_ image in learning-free manner (unsupervised) and do not require additional sensory information or calibration. Powerful deep learning based methods are also widely used for the task. Narihia _et al_ . introduce the first work to predict reflectance and shading from a single _???_ image in an end-to-end manner [8]. Shi _et al_ . predict diffuse albedo, shading, and specular highlights from a single _???_ image using millions of synthetic images of objects [35]. Baslamisli _et al_ . apply Retinex approach in a deep learning framework [9]. Li and Snavely utilize image sequences and constant reflectance prior in a deep learning model [36]. Lettry _et al_ . investigate adversarial learning [37]. Baslamisli _et al_ . propose fine-grained shading decomposition [38]. We refer readers to the work of Sial _et al_ . that provides a comprehensive overview of the deep learning based methods and large-scale datasets [39]. 3. Approach _3.1._ _Image Formation Model_ To describe an image _I_ over the visible spectrum _?_, we use the diffuse dichromatic reflection model for three color channels _?_ ∈{ _?, ?, ?_ } as follows [40]: _??_ = _?_ (� _?,_ _?_ <sup>�</sup> ) ∫ _??_ ( _?_ ) _?_ ( _?_ ) _?_ ( _?_ ) d _?._ (2) _?_ In the equation, _m_ is a function modelling the interaction between the surface normal _?_ - and the incoming light source direction _?_ <sup>�</sup> (e.g. Lambertian _?_ (� _?,_ _?_ <sup>�</sup> ) = ( _?_ - - _?_ <sup>�</sup> )). _?_ represents the wavelength, _?_ indicates the camera spectral sensitivity, _?_ describes the spectral power distribution of the light source, and _?_ denotes the surface reflectance i.e. the albedo. Then, assuming a linear sensor response and narrow band filters ( _??_ ( _??_ )) [41], the equation can be simplified as follows: _??_ = _?_ (� _?,_ _?_ <sup>�</sup> ) _?_ ( _??_ ) _?_ ( _??_ ) = _?_ (� _?,_ _?_ <sup>�</sup> ) _??_ _??_ _._ (3) The equation models an image _?_ by the multiplication of surface geometry and light interaction _?_ (� _?,_ _?_ <sup>�</sup> ), reflectance _??_ and light source properties _??_ per pixel. Using Equation (3) intrinsic images are defined (per pixel) as follows: _??_ = _??_ × _??_ _,_ _??_ = _?_ (� _?,_ _?_ <sup>�</sup> ) _??_ _,_ _??_ = _??_ _,_ (4) where an image _??_ is modelled by the element-wise multiplication of its shading _??_ and reflectance _??_ components (intrinsics). Most works assume white light, but if the light source _?_ is colored, then that color information is embedded in the shading (illumination) component. _3.2._ _Color Ratios_ For two neighboring (adjacent) pixels _?_ 1 and _?_ 2, locally constant illumination can be assumed _??_ <sup>_?_</sup> <sup>1</sup> <sup>=</sup> <sup>_?_</sup> _?_ <sup>_?_</sup> <sup>2</sup> <sup>[5].</sup> <sup>Based</sup> <sup>on</sup> <sup>this</sup> <sup>property,</sup> <sup>color</sup> <sup>ratios</sup> <sup>_?_</sup> <sup>are</sup> <sup>computed</sup> <sup>for</sup> <sup>_?_</sup> <sup>∈{</sup> <sup>_?, ?, ?_</sup> <sup>}</sup> <sup>at</sup> <sup>two</sup> neighbouring pixels _?_ 1 and _?_ 2 as follows: _?_ <sup>_?_</sup> <sup>_??_</sup> <sup>12</sup> <sup>_,_</sup> <sup>_?_</sup> <sup>2</sup> <sup>=</sup> _?_ <sup>_?_</sup> <sup>_??_</sup> <sup>21</sup> (5) <sup>_?_</sup> _?_ <sup>_??_</sup> <sup>12</sup> <sup>_._</sup> _?_ 1 = _?_ <sup>_?_</sup> <sup>_??_</sup> <sup>12</sup> _?_ <sup>_?_</sup> <sup>_??_</sup> <sup>21</sup> <sup>_,_</sup> <sup>_?_</sup> <sup>3</sup> <sup>=</sup> <sup>_?_</sup> _?_ <sup>_??_</sup> <sup>12</sup> We illustrate the invariant properties of (single) ratios by plugging Equation (3) into Equation (5) for _?_ 1 as follows (holds also for _?_ 2 and _?_ 3): _??_ <sup>_?_</sup> <sup>1</sup> _??_ <sup>_?_</sup> <sup>1</sup> _?_ 1 = <sup>(</sup> <sup>_?_</sup> <sup>(�</sup> <sup>_?,_</sup> <sup>�</sup> <sup>_?_</sup> <sup>))</sup> <sup>_?_</sup> <sup>1 �</sup> <sup>�</sup> (6) ( _?_ (� _?,_ _?_ <sup>�</sup> )) <sup>_?_</sup> <sup>2</sup> - _??_ <sup>�</sup> <sup>_?_</sup> <sup>2</sup> _??_ <sup>_?_</sup> <sup>2</sup> <sup>_._</sup> Since two neighboring pixels _?_ 1 and _?_ 2 share the same locally constant illumination, _??_ <sup>_?_</sup> <sup>1</sup> and _??_ <sup>_?_</sup> <sup>2</sup> are cancelled out in the equation. If we assume that neighbouring pixels share the same geometry ( _?_ (� _?,_ _?_ <sup>�</sup> )) <sup>_?_</sup> <sup>1</sup> = ( _?_ (� _?,_ _?_ <sup>�</sup> )) <sup>_?_</sup> <sup>2</sup>, i.e. locally smooth surfaces, then the ratios are invariant to photometric effects. _3.3._ _Cross Color Ratios_ To overcome the geometry constraint of Equation (6), cross color ratios are preferred, which are not only independent of the illumination conditions but also invariant to the object geometry. For neighbouring pixels _?_ 1 and _?_ 2, cross color ratios are defined as: _?_ 1 = _?_ <sup>_?_</sup> <sup>_??_</sup> <sup>21</sup> _?_ <sup>_?_</sup> <sup>_??_</sup> <sup>12</sup> _?_ <sup>_?_</sup> <sup>_??_</sup> <sup>21</sup> _?_ <sup>_?_</sup> <sup>_??_</sup> <sup>12</sup> <sup>_,_</sup> <sup>_?_</sup> <sup>2</sup> <sup>=</sup> <sup>_?_</sup> _?_ <sup>_?_</sup> <sup>12</sup> <sup>_?_</sup> _?_ <sup>_?_</sup> <sup>21</sup> <sup>_?_</sup> _?_ <sup>_?_</sup> <sup>12</sup> <sup>_?_</sup> _?_ <sup>_?_</sup> <sup>21</sup> <sup>_,_</sup> <sup>_?_</sup> <sup>3</sup> <sup>=</sup> <sup>_?_</sup> _?_ <sup>_??_</sup> <sup>12</sup> <sup>_?_</sup> _?_ <sup>_??_</sup> <sup>21</sup> (7) <sup>_?_</sup> _?_ <sup>_??_</sup> <sup>12</sup> <sup>_?_</sup> _?_ <sup>_??_</sup> <sup>21</sup> <sup>_._</sup> As a result, the assumption that neighbouring points share the same geometry, i.e. locally smooth surfaces, is no longer required for the cross color ratio that is invariant to photometric effects. We illustrate the invariant properties of the cross ratios by plugging Equation (3) into Equation (7) for _?_ 1 as follows (holds also for _?_ 2 and _?_ 3): _?_ 1 = ( _?_ (� _?,_ _?_ <sup>�</sup> )) <sup>_?_</sup> <sup>1</sup> <u>�</u> _??_ <sup>�</sup> <sup>_?_</sup> <sup>1</sup> _??_ <sup>_?_</sup> <sup>1</sup> ( _?_ (� _?,_ _?_ <sup>�</sup> )) <sup>_?_</sup> <sup>2</sup> <u>�</u> _????_ <sup>�</sup> - <sup>_??_</sup> <sup>21</sup> _????_ <sup>_??_</sup> <sup>21</sup> _?_ <sup>_?_</sup> _?_ <sup>_???_</sup> <sup>21</sup> _?_ <sup>_?_</sup> _?_ <sup>_???_</sup> <sup>12</sup> <sup>_._</sup> (8) ( _?_ (� _?,_ _?_ <sup>�</sup> )) <sup>_?_</sup> <sup>1</sup> <u>�</u> _??_ <sup>�</sup> <sup>_?_</sup> <sup>1</sup> _??_ <sup>_?_</sup> <sup>1</sup> ( _?_ (� _?,_ _?_ <sup>�</sup> )) <sup>_?_</sup> <sup>2</sup> <u>�</u> _??_ <sup>�</sup> - <sup>_?_</sup> <sup>2</sup> _??_ <sup>_?_</sup> <sup>2</sup> ( _?_ (� _?,_ _?_ <sup>�</sup> )) <sup>_?_</sup> <sup>2</sup> - _??_ <sup>�</sup> <sup>_?_</sup> <sup>2</sup> _??_ <sup>_?_</sup> <sup>2</sup> ( _?_ (� _?,_ _?_ <sup>�</sup> )) <sup>_?_</sup> <sup>1</sup> - _??_ <sup>�</sup> - <sup>_?_</sup> <sup>1</sup> _??_ <sup>_?_</sup> <sup>1</sup> <sup>=</sup> _?_ <sup>_?_</sup> _?_ <sup>_???_</sup> <sup>21</sup> _?_ <sup>_?_</sup> _?_ <sup>_???_</sup> <sup>12</sup> Since two neighboring pixels _?_ 1 and _?_ 2 share the same locally constant illumination, _??_ <sup>_?_</sup> <sup>1</sup> and _??_ <sup>_?_</sup> <sup>2</sup>, and _??_ <sup>_?_</sup> <sup>1</sup> and _??_ <sup>_?_</sup> <sup>2</sup> are cancelled out. Moreover, since _?_ <sup>_?_</sup> <sup>1</sup> and _?_ <sup>_?_</sup> <sup>1</sup> and _?_ <sup>_?_</sup> <sup>2</sup> and _?_ <sup>_?_</sup> <sup>2</sup> share the same local geometry, ( _?_ (� _?,_ _?_ <sup>�</sup> )) components are also cancelled out. Therefore, Equation (7) can be used to compute a measure for photometric invariance without any additional constraint. The ratio encodes relative reflectance relation between two pixels. If there is no intrinsic color change (reflectance between _?_ 1 and _?_ 2), then the ratio is 1. Sensor artifacts or noise may slightly deviate the value from 1. On the other hand, when the ratio deviates significantly from 1, it manifests an intrinsic color change. A threshold can be defined or learned to differentiate significant deviations; identifying true color changes. This property can also be used to measure the number of distinct color edges in an image, which is explained in Section 4.2. _3.4._ _Intrinsic Image Optimization_ An overview is given of the optimization framework of [6]. The problem is formulated by finding the decomposition (reflectance _?_ <sup>∗</sup> and shading _?_ <sup>∗</sup> ) that most likely matches the _???_ image _?_ based on a number of priors under probability distribution _?_ as follows: _?_ <sup>∗</sup> _,_ _?_ <sup>∗</sup> = arg max _?,_ _?_ _?_ ( _?,_ _?_ | _?_ ) _._ (9) A number of priors are utilized such that the framework assigns a high probability to the decompositions that are consistent with these priors. In particular, the priors are ( _?_ ) pixels that are nearby and have similar chromaticity or intensity should also have similar reflectance, ( _??_ ) reflectances are piecewise-constant (Retinex), ( _???_ ) reflectances are sampled from a sparse set (global reflectance sparsity), ( _??_ ) certain shading values are a priori more likely than others, ( _?_ ) neighboring pixels have similar shading (shading smoothness), and ( _??_ ) shading is grayscale, or the same color as the light source (color constancy). Then, the framework incorporates the priors in a global sense using a dense conditional random field (CRF). First, a set of possible labels (colors) are selected from the observed _???_ image as the initial reflectance predictions using clustering. The clustering is based on the chromaticity computed from the _???_ image, which separates reflectances under ideal conditions. Then, each reflectance pixel is labeled with a chromaticity value chosen from the clusters such that _?_ ( _?, ?_ | _?_ ) is maximized. Secondly, the reflectances are tuned by minimizing the discontinuities in the shading estimations. That is achieved by the optimization process aiming at to minimize the energy function _?_ ( _?_ ), composed of pairwise _?_ _?_ ( _?_ ) and unary ( _??_ ( _?_ ) and _??_ ( _?_ )) costs, by imposing the prior constraints: _?_ ( _?_ ) = _?_ _?_ _?_ _?_ ( _?_ ) + _??_ _??_ ( _?_ ) + _??_ _??_ ( _?_ ) _,_ (10) where _?_ _?_ ( _?_ ) is the pairwise reflectance term that forces pixels that are nearby in position, chromaticity and intensity, to be assigned to the same surface reflectance, _??_ ( _?_ ) enforces the shading smoothness, _??_ ( _?_ ) penalizes extreme values of shading for too many pixels, and _?_ denotes the optimal labeling (chromaticity value) for a pixel. 4. Experiments We show the potential merits of using color ratios by conducting the following experiments: (1) an ablation study of the cross color ratios on the Color Retinex performance, (2) the effect on the cluster initialization scheme, (3) the influence of the pairwise term, and (4) the performance on real world shadow removal. Experiments are provided on the real world object-level MIT intrinsics dataset [42] and real world scene-level Intrinsic Images in the Wild (IIW) of complex indoor scenes for reflectance predictions [6]. We report the mean, median and trimean values to measure the central tendency of the error metrics to evaluate the robustness gains. Following the common practice, the local mean-squared error (LMSE) with a window size of 20 for the MIT dataset and the weighted human disagreement rate (WHDR) for IIW, as provided by the authors, are reported as error metrics. Lower values are better for both cases. Finally, we demonstrate the merits of our approach for the shadow removal application on the Image Shadow Triplets Dataset (ISTD) [43] and the Shadow Removal Dataset (SRD) [44] of real world outdoor scenes with a variety of qualitative evaluations. _4.1._ _Combination with Color Retinex_ As an ablation study, we integrate cross color ratios, Equation (7), into the Color Retinex algorithm. Color Retinex algorithm identifies reflectance changes by two threshold values, one for strong brightness changes and the other for strong chromaticity changes. If a pixel satisfies both thresholds, then it is classified as a reflectance change. Then, using a surface reconstruction algorithm, those pixels are re-integrated to achieve the final reflectance estimation. Although powerful, the algorithm is based on the Mondrian world hypothesis assuming piece-wise distinctly colored patches for the gradient separation. However, that is not always the case for real world images as they might contain weak color transitions or very strong photometric effects (e.g. shadow casts) that also cause strong gradient changes. Therefore, to show the merits, we integrate the ratios into the Color Retinex paradigm to provide complementary making the algorithm more robust. For the experiments, we use the Color Retinex implementation of [42]. For the integration, we first compute the cross color ratios by Equation (7) in _???_ space. Before computation, Gaussian smoothing is applied to the image. To merge the ratios and achieve <sup>√</sup> 3 a unified map, we combine the three ratios by their geometric mean: _?_ 1 × _?_ 2 × _?_ 3. It is applied in log space to avoid numerical instabilities. Note that the arithmetic mean can also be preferred in _???_ space. This way all color information is properly utilized. One might also use a single color ratio such as _?_ 1 (red-green), yet given an image dominated by blue color, the ratio will not be sufficiently responsive. Finally, a small threshold value of 0.02 is set to eliminate possible sensor artifacts and noise. The combination is achieved such that the response maps of Color Retinex and the cross color ratios are fused using the _logical or_ operation. Therefore, they become complementary to each other. If a pixel is labeled not reflectance by both, then it is discarded, whereas if a pixel is labeled as reflectance at least by one of the algorithms, it is marked as true reflectance change. We demonstrate our contribution on the MIT intrinsics dataset of real world objects and IIW real world indoor scenes for the reflectance predictions in Table 1. The results show that the cross color ratios further improve Color Retinex algorithm and performance gains are observed. All three metrics, mean, median and trimean, are improved. The improvements are more significant for median and trimean metrics such that Color Retinex becomes more robust. As a result, simply using an elementary setup, we manage to improve Color Retinex CCR-assisted Color Retinex Mean (LMSE) 0.0315 0.0313 Median (LMSE) 0.0303 0.0295 Trimean (LMSE) 0.0314 0.0309 Mean (WHDR) 33.88 33.86 Median (WHDR) 33.10 33.00 Trimean (WHDR) 33.26 33.14 Table 1. Combination of Color Retinex and the cross color ratios (CCR). The ratios further improve Color Retinex on all metrics and make it more robust. the reconstruction quality of the Color Retinex’s reflectance estimations for both object and scene level cases. Note that the computation of the ratios do not add any overhead, is completely learning-free and realized in real time. They are computed directly from the input _???_ image (unsupervised). The results are particularly important as a large number of work consider Color Retinex approach in their optimizations [7,12,20–22,45]. The results suggest that the future work intending to use the Color Retinex gradient constraint should also consider the cross color ratios for improved and more robust estimations. _4.2._ _Adaptive Cluster Initialization_ The optimization of Equation (9) is initialized by k-means clustering of pixel features. _???_ pixels are transformed into pixel intensity, red chromaticity, and green chromaticity as features, because chromaticity information perfectly separate reflectances under ideal conditions. Then, each pixel is labeled with a reflectance by the cluster centers. That imposes the global reflectance sparsity constraint [6,10]. Mean (LMSE) Median (LMSE) Trimean (LMSE) Fixed _?_ = 10 0.0484 0.0400 0.0438 Fixed _?_ = 20 (default) 0.0597 0.0434 0.0506 Fixed _?_ = 30 0.0499 0.0397 0.0437 Adaptive _?_ by ratios 0.0443 0.0356 0.0388 Adaptive _?_ by ratios w/ ratio features 0.0431 0.0353 0.0366 Table 2. The effect of _?_ for the k-means algorithm for the MIT dataset. Adaptive setting of the _?_ value significantly improves the reflectance estimations. Mostly, the number of clusters is treated as a hyper-parameter and decided through a grid search. However, the process is costly, not effective and dataset dependent. It needs to be adjusted per domain. The task is an active area of research (e.g. [46, 47]). Here, we take a different approach and use the cross color ratios to adaptively determine the number of clusters. In a homogeneously (single) colored surface, the ratios are constant (i.e. 1). They significantly deviate from 1 when there is a color change. Thus, the number of distinct color ratio values correspond to the number of distinct colors in an image. Therefore, the number of distinct color ratio values can be used to determine the number of (true color) clusters per image. To take advantage of this property, we represent each _???_ pixel _?_ as its cross color ratios ( _?_ 1( _?_ ) _,_ _?_ 2( _?_ ) _,_ _?_ 3( _?_ )) computed by Equation (7). When at least one of the three features significantly deviates from 1, we count it as a unique color. Same ratios are only counted once. We define the significance by the _round_ function. As a result, the number of clusters can be adaptively set for each image, unlike other methods that use the same (fixed) number of clusters for all images. Finally, we include cross color ratios as features into the clustering. The ratios are first normalized by the maximum value, then weighted by 0.5 for MIT, 10 for IIW experiments. Our contribution is presented in Table 2 and demonstrated in Figure 2 for the MIT dataset and in Table 3 for IIW. An advanced Retinex model [48] is also included as a comparison. Mean (WHDR) Median (WHDR) Trimean (WHDR) STAR [48] 31.88 32.24 32.05 Fixed _?_ = 10 21.23 18.59 19.58 Fixed _?_ = 20 (default) 20.08 17.91 18.26 Fixed _?_ = 70 19.80 17.52 18.50 Adaptive _?_ by ratios w/ ratio features 19.50 17.06 17.55 Adaptive _?_ by ratios w/ ratio features <sup>∗</sup> 17.51 15.33 15.87 Table 3. The effect of _?_ for the k-means algorithm for the IIW dataset. Adaptive setting of the _?_ value further improves the reflectance estimations for indoor scene level images. Further improvements are also achieved with a guided filter post-processing (*) [49]. For the MIT dataset, Figure 2 shows that the default approach produces extra clusters for shadows and strong shadings. On the other hand, strong shadings are decently handled and the region under the strong shadow is visible now in the _???????_ object due to the adaptive setting of the _?_ value. In addition, Table 2 shows that the ratio driven adaptive _?_ leads to more robust and accurate results improving all three metrics. Finally, additionally including the cross color ratios as features into the clustering scheme further boosts the reconstruction performance. For the IIW dataset, Table 3 demonstrates that the ratio driven adaptive _?_ leads to more robust and accurate results also for scene level images. The improvements are more significant for median and trimean metrics such that the ratios make the algorithm more robust. Further improvements can also be achieved with a guided filter post-processing [49]. Calculation of the features ( _?_ 1( _?_ ) _,_ _?_ 2( _?_ ) _,_ _?_ 3( _?_ )) is realized in real time and does not introduce any overhead. The experiments suggest that a global reflectance sparsity prior is beneficial considering the ratio driven adaptive setting of the number of clusters. Therefore, future work intending to use the global reflectance sparsity prior should also consider the adaptive setting of the number of clusters by the ratios for improved and more robust estimations. _4.3._ _Pairwise Reflectance_ Finally, we inject the color ratios into the pairwise reflectance term _?_ _?_ ( _?_ ) of Equation (10). The term forces pixels that are nearby in position, chromaticity and intensity to have the same reflectance value. Under white illumination, two pixels having the same reflectance should also have the same chromaticity. However, the white illumination assumption is not realistic for real world scenes. Thus, it is limited by real world applications. Therefore, we modify the function such that it also considers cross color ratios along with nearby pixels in position, pixel chromaticity and intensity. Thus, the term is further constrained by physics-based descriptors that are not limited in any assumption such as the white light. The ratio feature is defined as the geometric mean of the three cross color ratios, same as in Section 4.1. We further weight it with RGB Image Albedo GT Fixed k Adaptive k Fig. 2. The effect of the ratio driven clustering. Default model extra clusters shadows and strong shadings as reflectance. Adaptive setting _?_ by the ratios makes the model more accurate and robust to photometric effects such as strong shading and shadows. a Gaussian to be suitable for CRF. The results are provided in Figure 4 for the scene level IIW estimations. It can be observed that the ratios further handles discontinuities in the reflectance map estimations making them more robust to direct light effects and also to specular highlights. Mean (LMSE) Median (LMSE) Trimean (LMSE) STAR [48] 0.0478 0.0438 0.0451 Default model 0.0597 0.0434 0.0506 Final Model 0.0424 0.0325 0.0349 Table 4. The effect of the additional pairwise term for the MIT dataset. It further improves the reflectance estimations on all metrics and make the model more robust. In addition, our final model contribution employing also adaptive k-means is presented in Figure 3 and in Table 4 for the MIT dataset. An advanced Retinex model [48] is included as a comparison. The quantitative results demonstrate that the final model achieves significantly better results on all metrics thanks to the cross color ratio injections. The visual results demonstrate a significant degree of photometric invariance, capable of even handling strong shadow casts. _4.4._ _Scene Level Real World Shadow Removal Application_ In this section, we evaluate the proposed algorithm on a real world application. Reflectance images being photometric invariants should be shadow free by definition. Therefore, we demonstrate the significant benefits that the ratios bring to the reflectance estimations’ shadow handling performance. To this end, we provide qualitative results on the Image Shadow Triplets Dataset RGB Image Albedo GT Fixed k Adaptive k Final Model Fig. 3. The additional effect of the cross color ratios as a pairwise term. The full model has significant degree of photometric invariance, capable of handling strong shadows. RGB Image Baseline Final Model Fig. 4. Reflectance evaluations for IIW dataset. Problematic parts are marked with green bounding boxes. The final model further handles discontinuities in the reflectance. It becomes more robust to direct light effects and also to specular highlights. (ISTD) [43] and the Shadow Removal Dataset (SRD) [44]. The results are presented in Figure 5. It can be observed that the photometric invariant ratios further robustify the model. The final model can handle strong shadow casts in real world natural scenes significantly better. We can even handle shadows on monochromatic surfaces as illustrated in the second row. The default model fails and produces strong shadow artefacts polluting the reflection estimations in all cases. RGB Image Final Model Default Model Fig. 5. The default model completely fails handling shadow casts. The final proposed model driven by the photometric invariant color ratios is more robust to natural outdoor real world shadow handling. It can now differentiate drastic changes in pixel values and attribute them to the related intrinsics. _4.5._ _Comparison with Prior State-of-the-Art_ Finally, in this section, we provide deep qualitative comparison on ISTD and SRD with the state-of-the-art methods: (1) Krebs _et al_ . recover the parameters of the dichromatic reflection model using quadratic programming [50], (2) Liu _et al_ . introduce an unsupervised intrinsic image decomposition model that learns the latent features of reflectance and shading from unsupervised and uncorrelated data [51], (3) Bi _et_ _al_ . use edge-preserving smoothing, Dirichlet Process Gaussian Mixture Mode for adaptive clustering, and a superpixel based CRF optimization [45], (4) STAR is an advanced structure and texture aware Retinex model [48]. Further, we provide two supervised deep learning models: (5) CGIntrinsics combines 4 different scene-level real and synthetic datasets for training [52], (6) ShapeNet boosts the intrinsic correlations with special decoder links and is trained on 2.5M synthetic images [35]. Thus, the evaluation is profoundly diverse. The results are provided in Figure 6 for ISTD and Figure 7 for SRD. Fig. 6. State-of-the-art comparisons on shadow cast handling on ISTD [43]. Both unsupervised and supervised models fail to handle shadows. Our method driven by the photometric invariant color ratios is more robust containing significantly less shadow cues and less shadow artefacts, the colors are more vivid and realistic, and the structures are well-preserved. Images are best viewed in color and on the electronic version. The evaluations further prove the quality of the proposed invariant descriptors for natural outdoor shadow handling. Figure 6 shows that Krebs _et al_ . tend to produce smooth reflectance maps, but cannot handle shadow casts. Liu _et al_ . fail to generate proper colors. The images appear way too dull and in the first two columns the scenes have lost its intrinsic color. It also tends to generate bright yellowish artefacts. Bi _et_ _al_ . using CRF optimization and adaptive clustering appear to be the closest work to ours. Yet, their method also fails to handle shadow casts. Their adaptive clustering even generates additional shadow-like artefacts on the first image. Thus, the contribution of the color ratios are more clear that our model does not just choose the cluster number adaptively, but the descriptors further constrain the reflectance predictions. STAR generates too bright images that most of the structures and colors are not visible anymore. Similarly, supervised deep learning models CGIntrinsics and ShapeNet fail to generate shadow free albedo images. ShapeNet produces further color artefacts and distortions. RGB Image OURS Krebs et al. Liu et al. Bi et al. Fig. 7. State-of-the-art comparisons on shadow cast handling on SRD [44]. Compared with others, our albedo estimations contain very little or almost no shadow artefacts, the colors are more vivid and realistic, and the structures are well-preserved. Images are best viewed in color and on the electronic version. Similar behaviour is also observed on Figure 7 for SRD. Krebs _et al_ . tend to produce smooth reflectance maps, but fails to handle shadow casts. Liu _et al_ . again fail to generate proper colors. For example, the yellow color of the bench in the last row is completely washed away. Moreover, their model tends to generate bright yellowish artefacts contaminating the reflectance maps. Finally, Bi _et al_ . results are similar to Krebs _et al_ . producing smooth reflectance maps, but they cannot properly handle shadow casts. On the other hand, our method driven by the photometric invariant color ratios, is more robust in handling natural outdoor real world shadow casts for two different domains of ISTD and SRD. Compared with others, our reflectance predictions contain significantly less shadow cues and less shadow artefacts. Furthermore, the colors are more vivid and realistic, and the structures are well-preserved and not polluted with undesired color artefacts. The results provided on two distinct dataset domains further demonstrate the generalization capability of the photometric invariant color ratios. In addition, the results relieve a surprising fact that none of the state-of-the-art models is able to handle natural outdoor shadow casts. 5. Conclusion and Future Work We demonstrated the concept of physics-based invariant descriptors used in a CRF optimization framework to improve reflectance predictions by making them more accurate and more robust to shading variations. We provided three particular ways to combine the ratios into the optimization and a final combination is presented. Experiments were provided on four datasets; a real world object level, a real world indoor scene level and two different outdoor scene level image sets with various shadow casts. Quantitative improvements were achieved on both object level and scene level indoor scenes. On the other hand, significance of the proposed method is better observed by the qualitative results. The visual results showed that the default model has no sense of shadows as it cannot differentiate if the changes in pixel intensities are caused by a color change or due to photometric effects. Incorporating the color ratios further enhances the model making it aware of the photometric cues including strong shadings and shadow casts. Thus, the model can now differentiate drastic changes in pixel values and attribute them to the related intrinsics. For future work considering the (1) Color Retinex gradient constraint, (2) global reflectance sparsity prior, (3) pair-wise constant reflectance prior, or (4) natural shadow cast handling should also consider incorporating the photometric invariant descriptors to make their frameworks more accurate and robust. Unlike hand-crafted priors, which are based on observations and mostly computationally intensive, the color ratios are physics-based, calculated directly from the _???_ images in an unsupervised manner and realized in real time. The process does not involve any specialized filters or labeled data and it does not add any additional complexity to the system. Thus, further improvements are attainable without any overhead. Our future work will focus on steering deep learning models by the photometric invariant descriptors. Acknowledgments This project was funded by the EU Horizon 2020 program No. 688007 (TrimBot2020). We thank Partha Das for his contribution to the experiments. Disclosures “The authors declare no conflicts of interest.” References 1. H. G. Barrow and J. M. Tenenbaum, “Recovering intrinsic scene characteristics from images,” Comput. Vis. Syst. pp. 3–26 (1978). 2. A. S. Baslamisli, T. T. Groenestege, P. Das, H. A. Le, S. Karaoglu, and T. Gevers, “Joint learning of intrinsic images and semantic segmentation,” in _European Conference on Computer Vision,_ (2018). 3. C. Xu, Y. Han, G. Baciu, and M. Li, “Fabric image recolorization based on intrinsic image decomposition,” Textile Res. J. p. 3617–3631 (2019). 4. S. Beigpour and J. van de Weijer, “Object recoloring based on intrinsic image estimation,” in _IEEE International_ _Conference on Computer Vision,_ (2011). 5. E. H. Land and J. J. McCann, “Lightness and retinex theory,” J. Opt. Soc. Am. pp. 1–11 (1971). 6. S. Bell, K. Bala, and N. Snavely, “Intrinsic images in the wild,” ACM Transactions on Graph. (2014). 7. Z. Cheng, Y. Zheng, S. You, and I. Sato, “Non-local intrinsic decomposition with near-infrared priors,” in _IEEE_ _International Conference on Computer Vision,_ (2019). 8. T. Narihira, M. Maire, and S. X. Yu, “Direct intrinsics: Learning albedo-shading decomposition by convolutional regression,” in _IEEE International Conference on Computer Vision,_ (2015). 9. A. S. Baslamisli, H. A. Le, and T. Gevers, “Cnn based learning using reflection and retinex models for intrinsic image decomposition,” in _IEEE Conference on Computer Vision and Pattern Recognition,_ (2018). 10. P. V. Gehler, C. Rother, M. Kiefel, L. Zhang, and B. Schölkopf, “Recovering intrinsic images with a global sparsity prior on reflectance,” in _Advances in Neural Information Processing Systems,_ (2011). 11. L. Shen and C. Yeo, “Intrinsic images decomposition using a local and global sparse representation of reflectance,” in _IEEE Conference on Computer Vision and Pattern Recognition,_ (2011). 12. J. T. Barron and J. Malik, “Shape, illumination, and reflectance from shading,” IEEE Transactions on Pattern Analysis Mach. Intell. pp. 1670–1687 (2015). 13. G. D. Finlayson, “Colour object recognition,” Master’s thesis, Simon Fraser University (1992). 14. L. Shen, P. Tan, and S. Lin, “Intrinsic image decomposition with non-local texture cues,” in _IEEE Conference on_ _Computer Vision and Pattern Recognition,_ (2008). 15. Q. Zhao, P. Tan, Q. Dai, L. Shen, E. Wu, and S. Lin, “A closed-form solution to retinex with non-local texture constraints,” IEEE Transactions on Pattern Analysis Mach. Intell. pp. 1437–1444 (2012). 16. J. Shen, X. Yang, X. Li, and Y. Jia, “Intrinsic image decomposition using optimization and user scribbles,” IEEE Transactions on Cybern. pp. 425–436 (2013). 17. E. Garces, A. Munoz, J. Lopez-Moreno, and D. Gutierrez, “Intrinsic images by clustering,” Comput. Graph. Forum (2012). 18. X. Jiang, A. J. Schofield, and J. L. Wyatt, “Correlation-based intrinsic image extraction from a single image,” in _European Conference on Computer Vision,_ (2010). 19. M. F. Tappen, W. T. Freeman, and E. H. Adelson, “Recovering intrinsic images from a single image,” IEEE Transactions on Pattern Analysis Mach. Intell. pp. 1459–1472 (2005). 20. S. Ding, B. Sheng, Z. Xie, and L. Ma, “Intrinsic image estimation using near-l0 sparse optimization,” The Vis. Comput. Int. J. Comput. Graph. pp. 355–369 (2017). 21. Y. Li and M. S. Brown, “Single image layer separation using relative smoothness,” in _IEEE Conference on Computer_ _Vision and Pattern Recognition,_ (2014). 22. B. Sheng, P. Li, Y. Jin, P. Tan, and T. Y. Lee, “Intrinsic image decomposition with step and drift shading separation,” IEEE Transactions on Vis. Comput. Graph. (2020). 23. A. Bousseau, S. Paris, and F. Durand, “User-assisted intrinsic images,” ACM Transations on Graph. (2009). 24. Q. Chen and V. Koltun, “A simple model for intrinsic image decomposition with depth cues,” in _IEEE International_ _Conference on Computer Vision,_ (2013). 25. J. Jeon, S. Cho, X. Tong, and S. Lee, “Intrinsic image decomposition using structure-texture separation and surface normals,” in _European Conference on Computer Vision,_ (2016). 26. K. J. Lee, Q. Zhao, X. Tong, M. Gong, S. Izadi, S. U. Lee, P. Tan, and S. Lin, “Estimation of intrinsic image sequences from image+depth video,” in _European Conference on Computer Vision,_ (2012). 27. Y. Weiss, “Deriving intrinsic images from image sequences,” in _IEEE International Conference on Computer Vision,_ (2001). 28. W. Gong, W. Xu, L. Wu, X. Xie, and Z. Cheng, “Intrinsic image sequence decomposition using low-rank sparse model,” IEEE Access (Volume: 7) pp. 4024–4030 (2019). 29. P. Y. Laffont and J. C. Bazin, “Intrinsic decomposition of image sequences from local temporal variations,” in _IEEE_ _International Conference on Computer Vision,_ (2015). 30. J. Matas, R. Marik, and J. Kittler, “On representation and matching of multi-coloured objects,” in _IEEE International_ _Conference on Computer Vision,_ (1995). 31. S. K. Nayar and R. M. Bolle, “Reflectance based object recognition,” Int. J. Comput. Vis. pp. 219–240 (1996). 32. K. Barnard and G. D. Finlayson, “Shadow identification using colour ratios,” in _Color and Imaging Conference,_ (2000). 33. T. Gevers and A. Smeulders, “Color constant ratio gradients for image segmentation and similarity of texture objects,” in _IEEE Conference on Computer Vision and Pattern Recognition,_ (2001). 34. T. Gevers and A. Smeulders, “Object recognition based on photometric color invariants,” in _Scandinavian Conference_ _on Image Analysis,_ (1997). 35. J. Shi, Y. Dong, H. Su, and S. X. Yu, “Learning non-lambertian object intrinsics across shapenet categories,” in _IEEE_ _Conference on Computer Vision and Pattern Recognition,_ (2017). 36. Z. Li and N. Snavely, “Learning intrinsic image decomposition from watching the world,” in _IEEE Conference on_ _Computer Vision and Pattern Recognition,_ (2018). 37. L. Lettry, K. Vanhoey, and L. van Gool, “Darn: a deep adversarial residual network for intrinsic image decomposition,” in _IEEE Winter Conference on Applications of Computer Vision,_ (2018). 38. A. S. Baslamisli, P. Das, H. A. Le, S. Karaoglu, and T. Gevers, “Shadingnet: Image intrinsics by fine-grained shading decomposition,” in _arXiv preprint arXiv:1912.04023,_ (2019). 39. H. A. Sial, R. Baldrich, and M. Vanrell, “Deep intrinsic decomposition trained on surreal scenes yet with realistic light effects,” J. Opt. Soc. Am. A (2020). 40. S. Shafer, “Using color to separate reflection components,” Color. research applications pp. 210–218 (1985). 41. G. D. Finlayson, M. S. Drew, and B. V. Funt, “Color constancy: generalized diagonal transforms suffice,” J. Opt. Soc. Am. A (1994). 42. R. Grosse, M. K. Johnson, E. H. Adelson, and W. T. Freeman, “Ground truth dataset and baseline evaluations for intrinsic image algorithms,” in _IEEE International Conference on Computer Vision,_ (2009). 43. J. Wang, X. Li, L. Hui, and J. Yang, “Stacked conditional generative adversarial networks for jointly learning shadow detection and shadow removal,” in _IEEE Conference on Computer Vision and Pattern Recognition,_ (2018). 44. L. Qu, J. Tian, S. He, Y. Tang, and R. W. H. Lau, “Deshadownet: A multi-context embedding deep network for shadow removal,” in _IEEE Conference on Computer Vision and Pattern Recognition,_ (2017). 45. S. Bi, X. Han, and Y. Yu, “An l1 image transform for edge-preserving smoothing and scene-level intrinsic decomposition,” ACM Transactions on Graph. (2015). 46. M. Yan, “Methods of determining the number of clusters in a data set and a new clustering criterion,” Ph.D. thesis, Virginia Tech (2005). 47. X. Li, W. Liang, X. Zhang, S. Qing, and P. C. Chang, “A cluster validity evaluation method for dynamically determining the near-optimal number of clusters,” Soft Comput. pp. 9227–9241 (2020). 48. J. Xu, Y. Hou, D. Ren, L. Liu, F. Zhu, M. Yu, H. Wang, and L. Shao, “Star: A structure and texture aware retinex model,” IEEE Transactions on Image Process. pp. 5022–5037 (2020). 49. T. Nestmeyer and P. V. Gehler, “Reflectance adaptive filtering improves intrinsic image estimation,” in _IEEE_ _Conference on Computer Vision and Pattern Recognition,_ (2017). 50. A. Krebs, Y. Benezeth, and F. Marzani, “Intrinsic rgb and multispectral images recovery by independent quadratic programming,” PeerJ Comput. Sci. p. 6:e256 (2020). 51. Y. Liu, Y. Li, S. You, and F. Lu, “Unsupervised learning for intrinsic image decomposition from a single image,” in _IEEE Conference on Computer Vision and Pattern Recognition,_ (2020). 52. Z. Li and N. Snavely, “Cgintrinsics: Better intrinsic image decomposition through physically-based rendering,” in _European Conference on Computer Vision,_ (2018).

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.