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

Single Image Highlight Removal for Real-Time Image Processing Pipelines

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

기본 정보

저자
  1. Vítor Saraiva Ramos — Electrical and Computer Engineering Graduate Program, Federal University of Rio Grande do Norte, Natal, Brazil
  2. Luiz G. Silveira — Communications Engineering Department, Federal University of Rio Grande do Norte, Natal, Brazil
  3. Luiz F. Q. Silveira — Computer Engineering and Automation Department, Federal University of Rio Grande do Norte, Natal, Brazil
DOI
10.1109/access.2019.2963037
저널
IEEE Access
발행년도
2019
발행기관
Institute of Electrical and Electronics Engineers
피인용수
13
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2019.2963037
토픽
Color Science and Applications
OpenAlex ID
W2997171730

평가 내용

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

초록

This paper presents a fully automatic method for the separation of diffuse and specular reflection components from a single image. Overall, the mechanisms in which the available methods operate on are computationally costly and do not translate well to modern hardware-implemented image processing pipelines, such as the ones present in consumer electronics. Consequently, the objective of this article is to introduce a simple yet effective method for specular highlight removal. It is based on the dichromatic reflection model and operates through histogram matching in the YCbCr color space. The proposed method performs in real-time. It only uses global image statistics and point-wise intensity transformations. Experimental evaluation shows that the proposed approach has competitive results in comparison to state-of-the-art methods. Limitations of the proposed approach are seldom and are common to most methods available. The proposed method, however, achieves better quality results with much less computational cost, thus enabling feasibility in systems with limited processing power.

본문 71,788자

본문 펼치기
Received December 4, 2019, accepted December 23, 2019, date of publication December 30, 2019, date of current version January 7, 2020. _Digital Object Identifier 10.1109/ACCESS.2019.2963037_ # Single Image Highlight Removal for Real-Time Image Processing Pipelines VÍTOR S. RAMOS 1, (Student Member, IEEE), LUIZ GONZAGA DE Q. SILVEIRA JÚNIOR 2, (Member, IEEE), AND LUIZ FELIPE DE Q. SILVEIRA 3, (Member, IEEE) 1Electrical and Computer Engineering Graduate Program, Federal University of Rio Grande do Norte, Natal 59078-970, Brazil 2Communications Engineering Department, Federal University of Rio Grande do Norte, Natal 59078-970, Brazil 3Computer Engineering and Automation Department, Federal University of Rio Grande do Norte, Natal, 59078-970, Brazil Corresponding author: Vítor S. Ramos (vitorsr@ufrn.edu.br) This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior-Brasil (CAPES)-Finance Code 001. ABSTRACT This paper presents a fully automatic method for the separation of diffuse and specular reflection components from a single image. Overall, the mechanisms in which the available methods operate on are computationally costly and do not translate well to modern hardware-implemented image processing pipelines, such as the ones present in consumer electronics. Consequently, the objective of this article is to introduce a simple yet effective method for specular highlight removal. It is based on the dichromatic reflection model and operates through histogram matching in the YCbCr color space. The proposed method performs in real-time. It only uses global image statistics and point-wise intensity transformations. Experimental evaluation shows that the proposed approach has competitive results in comparison to stateof-the-art methods. Limitations of the proposed approach are seldom and are common to most methods available. The proposed method, however, achieves better quality results with much less computational cost, thus enabling feasibility in systems with limited processing power. INDEX TERMS Blind source separation, feature extraction, image color analysis, image enhancement, image processing, image texture analysis. I. INTRODUCTION The separation of diffuse (body) and specular (interface) components from images traces back to as early as 1985 when Shafer first introduced the dichromatic reflection model (DRM) in his seminal paper [1]. Since then, a variety of methods have been proposed that tackled this ill-posed problem of separation based on the DRM. It is possible to classify how each method operates, e.g. if they require single, multiple or spectral images, and if they require manual segmentation or perform it automatically. In this context, this paper considers the open problem of automatic specular highlight removal, i.e. the separation of specular reflectance components [2], from a single image. The specular phenomena visually appear as shiny, glossy, or mirrorlike regions. Under the DRM [1], it is defined as one of the basic reflection components of a material, The associate editor coordinating the review of this manuscript and approving it for publication was Haimiao Hu. the other being the diffuse reflectance [3]. The DRM states that an image can be described as a linear combination of both, and these components depend solely on geometry and color. The specular component is also named interface reflection and considering neutral interface the specular reflection component takes the color of the illuminant. Diffuse reflectance [3], on the other hand, is subjectively defined as the smoothly-varying response of a material to incident illumination. It is generally low-parametric. It is also named body reflection under the DRM and takes the color of the material. These reflection components are illustrated in Figure 1. The separation of diffuse and specular components is a non-trivial problem and many computer vision algorithms simply assume that the objects that compose an observed scene are perfectly Lambertian [4], i.e. of a purely diffuse nature, because of better computational tractability. Lambertian reflectance does not depend on viewing angle and is a scene property akin to the concept of diffuse reflectance: it assumes that the illumination reflection scatters equally into FIGURE 1. Diffuse and specular components separation problem. (a) Original image I, (b) diffuse reflection I _d_, (c) specular reflection I _s_ . all viewing directions. High-frequency information such as highlights and shadows are treated as outliers since these are not accounted for in the Lambertian model. However, it is quite evident that under the presence of a specular phenomenon, the observed image of an object may present visual characteristics different from those that are inherent to the material. _A._ _APPLICATIONS_ 1) COMPUTER VISION Because of its characteristics, diffuse reflectance has classical low-level vision applications. It has been used for the inference of scene geometry. Most notably, Woodham in a 1979 work [5] has introduced the concept of photometric stereo: a reflectance map that determines surface orientation at each point by successive views. Specular reflectance has also seen notable works in classical low-level vision. It is a highly informative feature. It has been shown that the specular component conveys photometric properties. Ikeuchi in 1981 [6] extended the photometric stereo concept and determined surface orientations of specular surfaces for the case of a distributed light source. Tan _et_ _al._ [7] have shown that the specular highlight component is useful for the estimation of illuminant chromaticity (color). Moreover, the specular reflection component can be used for the estimation of geometry features [8], [9]. 2) CONSUMER ELECTRONICS Most recently, the decomposition of an image into diffuse and specular parts has been applied in image enhancement. Image enhancement [10] is one of the key signal processing tasks in contemporary image processing pipeline systems [11] and is responsible for allowing e.g. better readability in images for displays, perceived aesthetic quality of image and content, and aesthetic reproduction of tone in acquisition and display systems. A direct application to specular reflection separation with regards to image enhancement is dichromatic editing as defined by Mallick _et al._ [12]. It consists on editing the diffuse and the specular components independently and then re-combining the processed components to give rise to different effects such as lip gloss (virtual beauty), object re-illumination, modification of apparent texture, and other effects. Another application to specular reflections in visual display systems is tone mapping for high dynamic range (HDR) displays. Meylan _et_ _al._ [13] selected highlight regions and mapped the display range allocated to specular highlights differently than that of diffuse regions: for each frame a pixel intensity value is calculated for the thresholding of diffuse and specular highlight regions, then these regions have their intensities linearly mapped using functions of different slopes. Also, there is interest in the application of inverse tone mapping to display low dynamic range (LDR) content on HDR displays. References [14] and [15] incorporated usages of highlight removal methods for this objective. Furthermore, it is notable that there exists industry interest in this topic. There has been the development of solutions regarding improvements of existing methods for incorporation into display systems such as TVs. Yamamoto and Nakazawa [16] showed that it is possible to mitigate artifacts generated as a byproduct of the separation through energy minimization. Samsung Electronics Co., Ltd. has registered this method [17]. Likewise, there is a history of patent registration of highlight regions detection methods for digital cameras and alike [18]. Other applications are registered such as guidance systems for generation of 3D scenes using stereo matching [19]–this application has the necessity of a highlight removal block to robustify subsequent processing. Adobe Inc. possesses registered intellectual property of a single image highlight removal method [20]. Finally, we note that our method, unlike recent approaches to the highlight removal problem [21]–[25], consists only of simple operations that are straightforwardly implementable considering an image processing pipeline paradigm [11], therefore, easily adaptable to the aforementioned industry use cases. _B._ _STATE OF THE ART_ When Shafer introduced the DRM, he also proposed a form of separating the body and interface components [1]. However, at the time, the proposed method required prior segmentation of materials and could not handle textures. In 2005, Tan and Ikeuchi [26] were responsible for a revival of the DRM through the introduction of chromaticity analysis. They expanded the DRM in an _L_ 1-normalized formulation which allowed them to proceed with specific color analyses. Their method is fully automatic and requires only a single image. Their formulation proposed that diffuse pixels should propagate their chromaticity to specular regions. Specular regions were detected by logarithmic differentiation with regards to a pseudo-specular-free (PSF) image that they also introduced, which is obtained by setting a maximum chromaticity of equal, constant value, for all pixels of the image. Follow-up works made extensive use of the PSF representation because it has similar geometry to the original image. However, the PSF has distorted colors. Yoon _et_ _al._ [27] first introduced the two-band PSF image, which is obtained through subtraction of the minimum among the three RGB channels (hereafter synonym to dark channel). Yoon _et_ _al._ compared neighbor intensity ratios to corresponding ratios in the PSF representation and propagated diffuse ratios. Shen _et al._ [28] modified the PSF image by Yoon _et_ _al._ [27] to make its chromaticity more robust to noise by adding an offset. Shen _et_ _al._ treated the highlight removal problem by solving the DRM least-square problem for mixed specular-diffuse regions with regions that are purely diffuse and have the least distance in chromaticity coordinates. In follow-up work, Shen and Cai [29] solved the removal problem by first segmenting into mixed specular and diffuse and purely diffuse, however they corrected the values of specular regions by solving for a constant gain with regards to the modified specular-free image. Yang _et_ _al._ [30] introduced a fast method that has roots in the chromaticity analysis work by Tan and Ikeuchi [26]. Yang _et_ _al._ proceeded by employing a joint bilateral filter to smooth out the maximum chromaticity of the observed image, taking as input a PSF guide that has no specular features. Specular phenomena are considered noise in this filtering approach. Similarly, Shen and Zheng [31] proposed a real-time highlight removal method which is, to date, the fastest and most performing. It works by minimummaximum chromaticity space analysis, clustering, and restoring intensity ratios for mixed specular-diffuse regions. Kim _et_ _al._ [21] re-introduced the concept of a dark channel prior (DCP) and first approached the problem from an optimization standpoint by formulating it in terms of a TV- _L_ 1 and TV- _L_ 2 optimization problem in a maximum _a_ _posteri-_ _ori_ (MAP) framework which yields pleasing results. Akashi and Okatani [22] introduced a framework that incorporated non-negative matrix factorization (NNMF) with a sparsity constraint that limited the number of colors used to compose the image, taking advantage of the fact that natural images have limited number and composition of colors. One of the bases of the factorization was the illuminant itself, and a cost function was formulated to penalize the use of illuminant color. Suo _et al._ [23] extended the DRM in terms of _L_ 2-normalization and by formulating the problem such that the illuminant is orthogonal to the chromaticity. Their approach also requires clustering for estimation of regionspecific purely diffuse colors. Ren _et_ _al._ [24] introduced a method based on color-lines that jointly estimated illuminant color and recovered diffuse colors by first clustering the image using a modified nearest neighbor technique and recovering the diffuse coefficient by searching along the radius in a polar-formulated coordinate system. In the most recent proposal to date, Guo _et_ _al._ [25] introduced a sparse and low-rank formulation and incorporated advances made in non-negativity and matrix factorization discussed by Akashi and Okatani [22]. Guo _et_ _al._ introduce two auxiliary variables to incorporate these formulations and iteratively solve the optimization problem. The results are on par with Shen and Zheng [31]. Guo _et_ _al._ also analyzed other works quantitatively in terms of SSIM, which has shown that theirs and Shen and Zheng’s are the best methods available. We will show that our method can improve the runtime metrics of Shen and Zheng, while also having competitive PSNR and SSIM metrics to these methods. _C._ _CONTRIBUTIONS_ The contributions of this work are twofold. First, we redefine the DCP from the perspective of the DRM. This prior is widely used in other image processing problems. Although it has been used in prior works, it does not have the same formulation for the highlight removal problem. In this aspect, we describe this prior and illustrate how it is useful. We extend this analysis to another color space in which the dark channel is fully encoded in one of the bases. Second, we propose a novel method for the highlight removal problem. The proposed method is automatic and works using a single image. It is chromaticity-based and relies on the DRM. Many modern methods have incorporated complex formulations in their approaches. Even very fast methods incorporate complex filtering or clustering steps that are largely undoable on hardware-implemented image processing pipelines. We propose a simple yet effective method that surpasses these complex methods in quantitative metrics and is much faster. _D._ _STRUCTURE_ The rest of this paper is organized as follows. First, in section II, the dichromatic reflection model (DRM) is presented along with the _L_ 1-normalized formulation for the discrete image domain that we operate on. Then, in section III, we elucidate the dark channel prior (DCP) and the generation of the two-band pseudo-specular-free (PSF) image. We extend this analysis to the YCbCr color space and briefly discuss why this color space is apt for the highlight removal problem. In section IV, we present the architecture proposal of our method and its composing blocks, discussing their functionalities and practical implementations. In section V, we discuss results and evaluate quantitative metrics for comparison with state-of-the-art methods. Visual results are shown for completeness. We disclose limitations and propose future improvements. Lastly, in section VI, we express our concluding remarks. II. DICHROMATIC REFLECTION MODEL The DRM [1] is a physical reflection model widely used for color analysis, intrinsic image decomposition in computer vision, and rendering in computer graphics. It states that the color of light reflected at a point from an object is the result of mixing the visual information resulting from two independent reflection processes that occur on the object’s surface and body. Therefore, it distinguishes between two types of reflection. Namely body (diffuse) and interface (specular) reflection. The model effectively defines that the observed image upon formation is composed of a linear weighted sum of functions corresponding to each of the types of reflection. _A._ _HISTORICAL DEFINITION_ The original formulation of the DRM [1] is _L_ ( _λ, i, e, g_ ) = _mi_ ( _i, e, g_ ) _ci_ ( _λ_ ) + _mb_ ( _i, e, g_ ) _cb_ ( _λ_ ) _,_ (1) FIGURE 2. Dichromatic reflection model (DRM). (a) Original image I, (b) diffuse map _md_ and (c) its chromaticity _�_, (d) specular map _ms_ and (e) its chromaticity _�_ . in which _i, e, g_ are photometric angles that describe, respectively, the illuminant ‘‘angle of incidence’’ _i_ and the viewing ‘‘angle of exitance’’ _e_ with regards to the surface normal, and the phase angle _g_ . These terms convey geometrical dependence. _m_ ( _i, e, g_ ) is a function that returns a magnitude factor. _c_ ( _λ_ ), on the other hand, conveys color information and is solely dependent on the wavelength _λ_ . _c_ ( _λ_ ) does not depend on viewing angle. Subindexes ‘‘ _i_ ’’ refer to the interface (specular, illuminant) term, and subindexes ‘‘ _b_ ’’ refer to body (diffuse) term. In other words: for each geometric setting, we note in (1) that an observed luminance can be decomposed into a superposition of body color irrespective of viewing angle which is scaled by a weight map that depends on such angle, and an interface color which is scaled by a different weight map. Specific quantities that each of these components contribute to the composition of the final luminance of the observed picture element are unknown, not identical, and typically differ from one element to another in the image. 1) LIMITATION The DRM is not the end-all reflection model, it has its limitations such as violation of the model with regards to different materials with exotic reflection properties e.g. birefringence (oils, etc.). There exist specific modifications of the dichromatic model for many other materials [32] but for the sake of generality and simplicity, they will not be accounted for in this paper. Likewise, there exist other reflection models [33], but for simplification (as we have seen, this reflection model simplifies to a linear composition of the image), the model by Shafer is the most commonly used for the single image case, since recovering two intrinsic images from a single input is an ill-posed problem [34]. _B._ _L_ 1 _Extension_ When working with discrete RGB images, there is a need to modify (1) such that it has better tractability. In [26], Tan and Ikeuchi extended the definition of the DRM to the discrete image case. For every pixel _p_ that indexes a corresponding RGB value of an image I, the DRM is defined as I ( _p_ ) = _md_ ( _p_ ) _�_ ( _p_ ) + _ms_ ( _p_ ) _�_ ( _p_ ) _,_ (2) in which _md_ is the diffuse weighting map, _�_ is the diffuse chromaticity, _ms_ is the specular weighting map, and _�_ is the illumination chromaticity. Figure 2 illustrates the relationship shown in (2), in which each sub-figure corresponds to a term in (2). Now, condensing the two summation terms such that I _d_ ( _p_ ) = _md_ ( _p_ ) _�_ ( _p_ ) and I _s_ ( _p_ ) = _ms_ ( _p_ ) _�_ ( _p_ ) _,_ then we have the two reflection terms visible in Figure 1, in which I _d_ and I _s_ are the diffuse and specular reflection components, respectively. Lastly, Tan and Ikeuchi [26] define chromaticities in terms of _L_ 1-normalized RGB values: ∥ _�_ ( _p_ )∥1 = ∥ _�_ ( _p_ )∥1 = 1 _,_ ∀ _p_ ∈ _�,_ (3) in which _�_ is the set of all pixels in the RGB image I . 1) NOTATION The following terms are _m_ × _n_ × 3-sized matrices: I _,_ _�_ _,_ _�_ ∈ R <sup>_m_</sup> <sup>×</sup> <sup>_n_</sup> <sup>×3</sup> . These are displayed in boldface font. The following are _m_ × _n_ -sized matrices: _md_ _, ms_ ∈ R <sup>_m_</sup> <sup>×</sup> <sup>_n_</sup> . These appear in italics. Pixel _p_ indexes rows and columns _m, n_ such that I ( _p_ ) ∈ R <sup>3</sup> specifies vector triplets (e.g., RGB or YCbCr) at location _p_ . When a relation is shown for pixel _p_, we imply it applies for all of the pixels _p_ ∈ _�_ . Variables and notation in subsection II-A (HISTORICAL DEFINITION) were directly reproduced from the original model for historical context purposes. We advise the reader to keep track of variables and notation only from subsection II-B ( _L_ 1 Extension) onward. 2) ILLUMINANT NORMALIZATION As a simplifying measure, for the proposed method we assume that _�_ was already normalized regarding the illuminant in a preprocessing step and is constant for every _p_ . Illuminant normalization or color constancy [35] refers to the non-trivial problem of illuminant color estimation and normalization. To proceed with normalization, we refer to one of the many methods available in the literature that address this open problem [35], [36]. After normalization, _�_ becomes - <u>1</u> _�_ ( _p_ ) = [ _�_ ( _p_ ) _, �_ ( _p_ ) _, �_ ( _p_ )] <sup>_T_</sup> = 3 <sup>_,_</sup> 3 <sup><u>1</u></sup> <sup>_,_</sup> <sup><u>1</u></sup> 3 - _T_ _._ (4) III. DARK CHANNEL PRIOR In our pipeline, we make use of a two-band specular-free image that is easily obtained via subtraction of the minimum among the three RGB channels from the original image, i.e. the dark channel. This mechanism has been previously explored in [21], [27]–[29]. In this section, we will demonstrate how this prior relates to the DRM and the problem at hand. _A._ _RELATION TO THE DARK CHANNEL PRIOR IN HAZE_ _REMOVAL_ A celebrated usage of the DCP has been in dehazing, being first introduced and formalized by He _et_ _al._ [37]. Many following methods then used such prior to approach the dehazing problem [38]. It should be noted that the DCP which we make use of is not the same as the one popularized by He _et_ _al._ [37]. Their formulation was based on natural image statistics and disposition of saturation of the colors in an image neighborhood. Concretely, the original DCP is the minimum channel after order-statistic minimum filtering with a sliding window. The DCP applied to the highlight removal problem follows a different logic and has different roots. It is simply the minimum among the three RGB channels. Briefly, this prior is explained by the fact that after illuminant normalization, _�_ ( _p_ ) becomes constant and is assumed uniform for every pixel. The minimum between the three channels is a composition of such constant and the minimum diffuse color value for that region. We present a demonstration for this relation in subsection III-C. Also, the PSF representation obtained via DCP has identical geometrical features to I but presents no specular features. In the following subsection, we detail the PSF image. _B._ _PSEUDO-SPECULAR-FREE IMAGE_ In this subsection, we define the dark channel and how to generate the PSF image. Starting from the _L_ 1 DRM extension expressed by (2), we expose the RGB vector elements of each term.      _�r_ ( _p_ ) _�g_ ( _p_ ) _�b_ ( _p_ ) FIGURE 3. Dark channel prior (DCP). (a) Original image I, (b) pseudo-specular-free (PSF) image <sup>˜</sup> I, (c) minimum image _I_ <sup>_min_</sup> . We know from (4) that _�_ ( _p_ ) after normalization is uniform for all pixel values and of constant value among the three RGB channels. Thus, inserting (4) into (7), it yields that _I_ <sup>_min_</sup> ( _p_ ) = _md_ ( _p_ ) _�_ <sup>_min_</sup> ( _p_ ) + _ms_ ( _p_ ) _�_ ( _p_ ) _,_ (8) in which _�_ <sup>_min_</sup> ( _p_ ) = _c_ ∈{min _r,g,b_ } <sup>_�c_</sup> <sup>(</sup> <sup>_p_</sup> <sup>)</sup> denotes the minimum chromaticity. In summary, since _�_ ( _p_ ) is constant, the minimum is the constant itself. The weight maps do not have color information, so they also are not computed in the minimum operation. Also, (8) is of notice because from it we can effectively infer that the specular component, under conditions of illuminant normalization, is wholly contained in _I_ <sup>_min_</sup> . Finally, the PSF image I <sup>˜</sup> is simply the original image I minus _I_ <sup>_min_</sup> entry-wise, i.e. I ˜( _p_ ) = I ( _p_ ) − _I_ <sup>_min_</sup> ( _p_ ) = _md_ ( _p_ ) _�_ ˜ ( _p_ ) _,_ (9) in which _�_ ˜ ( _p_ ) = _�_ ( _p_ ) − _�_ <sup>_min_</sup> ( _p_ ) denotes the distorted PSF chromaticity. The first relation in (9) is shown in Figure 3. Noticeably, _ms_ ( _p_ ) is not present anymore and the representation is specular-free. Furthermore, _md_ ( _p_ ) is unaltered. _C._ _HIGHLIGHT REMOVAL MECHANISM_ Previous methods in literature have made extensive use of the PSF representation as an intermediate step for the final objective of highlight removal. Here, we will define the highlight removal mechanism which makes it possible. As defined in subsection III-B, the PSF representation I <sup>˜</sup> is the original image minus the dark channel (9). We seek to understand how the diffuse component I _d_ is decomposed with respect to the PSF image I <sup>˜</sup> . To obtain I _d_ ( _p_ ) = _md_ ( _p_ ) _�_ ( _p_ ) _,_ it suffices to add I <sup>_min_</sup> _d_ ( _p_ ) = _md_ ( _p_ ) _�_ <sup>_min_</sup> ( _p_ ) [1 _,_ 1 _,_ 1] <sup>_T_</sup> _,_ a grayscale RGB image (of equal RGB triplet values) composed of the diffuse map _md_ times the minimum chromaticity _�_ <sup>_min_</sup>, to the PSF image I <sup>˜</sup> . We make use of the all-ones vector   + _ms_ ( _p_ )   (5) _Ir_ ( _p_ ) _Ig_ ( _p_ ) _Ib_ ( _p_ )  _�r_ ( _p_ ) _�g_ ( _p_ ) _�b_ ( _p_ )   = _md_ ( _p_ ) The minimum among the three RGB values is _I_ <sup>_min_</sup> ( _p_ ) = _c_ ∈{min _r,g,b_ } <sup>_Ic_</sup> <sup>(</sup> <sup>_p_</sup> <sup>)</sup> <sup>_._</sup> (6) Considering the decomposition in (2) for _Ic_ ( _p_ ), we have that _I_ <sup>_min_</sup> ( _p_ ) = _c_ ∈{min _r,g,b_ } <sup>{</sup> <sup>_md_</sup> <sup>(</sup> <sup>_p_</sup> <sup>)</sup> <sup>_�c_</sup> <sup>(</sup> <sup>_p_</sup> <sup>) +</sup> <sup>_ms_</sup> <sup>(</sup> <sup>_p_</sup> <sup>)</sup> <sup>_�c_</sup> <sup>(</sup> <sup>_p_</sup> <sup>)}</sup> <sup>_._</sup> (7) FIGURE 4. Decomposition of the true diffuse component with respect to the PSF image. (a) I _d_, (b) _md_, (c) _�_ <sup>˜</sup>, (d) _md_ ⊙ (3 _�_ <sup>_min_</sup> ), (e) _�_ . [1 _,_ 1 _,_ 1] <sup>_T_</sup> to write the implicit expansion of _�_ <sup>_min_</sup> ( _p_ ) (a scalar) to an RGB triplet. In terms of a _L_ 1-normalized chromaticity _�_ <sup>_min_</sup> ( _p_ ) [1 _,_ 1 _,_ 1] <sup>_T_</sup> = _�_ <sup>_min_</sup> ( _p_ ) (3 _�_ ( _p_ )) _,_ (10) such that I _d_ ( _p_ ) = _md_ ( _p_ ) _�_ <sup>˜</sup> ( _p_ ) + _md_ ( _p_ ) (3 _�_ <sup>_min_</sup> ( _p_ )) _�_ ( _p_ ) _._ (11) Although this was a relatively simple derivation, it is shown for demonstration purposes: we can rewrite the true diffuse component in terms of the PSF image plus a diffuse map term that scales the minimum true diffuse chromaticity–which is represented in the same chromatic basis as the illuminant. This is the strong mechanism that is much explored: the true diffuse component can be obtained from a composition of the PSF image and another term that possesses another basis (namely, _�_ ). See Figure 4 for a visual aid of the DRM decomposition of the true diffuse component I _d_ with respect to the PSF image. In Figure 4, ‘‘⊙’’ denotes the Hadamard product (entry-wise matrix multiplication). Concretely, methods that make use of the PSF representation–such as the proposed approach–attempt to estimate the second component in (11). Ours do so by histogram matching the PSF luma to the original luma in a perceptually coded color space. _D._ _YCBCR COLOR SPACE_ The YUV family of color spaces is especially common in image processing pipelines [11]. Specifically, the YCbCr color space is included in the ITU-R BT.601 [39] for encoding video signals for digital television. The conversion from RGB to YCbCr and the inverse conversion are also defined in the ITU-R BT.601-7 [39] and both can be seen as a linear change of color space basis. In the context of the DCP, the exploited property of this color space is that luma values–the Y channel–encode grayscale intensity values: the Y basis vector in linear RGB lies on the same direction as the illuminant after normalization. It is an apt basis for operating on: as demonstrated on the previous section through (11), starting from the PSF representation (9), we only need to operate on grayscale intensity values to obtain the true diffuse component. Moreover, the Cb and Cr channels are invariant to specularity. The YCbCr to RGB conversion encodes color differences in such a way that equal RGB values represented in the Cb and Cr channels sum to zero in the forward transform. This is trivially verifiable by inspection of the sum along the rows of the direct transform matrix defined in [39]. Therefore, a scalar subtraction (similarly, an RGB vector of equal values) from all three RGB channels poses no change to the Cb and Cr channels. See section A for more information. Since the PSF representation knowingly contains no specular component information (9) and _I_ <sup>˜</sup> _cb_ = _Icb_ and _I_ <sup>˜</sup> _cr_ = _Icr_ because the original image only differs in grayscale intensities from the PSF image–we note that the Cb and Cr channels of the original image also present no specular information. Consequently, we can make use of the transformation to this color space and restrict our operations to the luma channel, then transform back to the original RGB color domain. The Cb and Cr channels are simply propagated from the original image. Lastly, we note that other color spaces that aspire to encode for perceptual uniformity–most notoriously CIELAB [40]– do so in a bijective non-linear mapping fashion. Therefore, pixel-wise value transformations of perceptually-encoded luminosity values in this color space won’t be linear in RGB domain. Thus, the DRM assumption won’t be valid. IV. PROPOSED METHOD In this section, we detail the proposed method from the viewpoint of the flow of data. Also, in Figure 5, we present the flowchart that contains the image processing pipeline we devised and implemented for our method. The pipeline is as follows. First, we obtain the PSF image I <sup>˜</sup> via (9). Then, the original image I and its PSF representation I ˜ are respectively converted to YCbCr and Y, by [39]. We now have _Iy, Icb, Icr_, and _I_ <sup>˜</sup> _y_, respectively. Then, we match the luma of the PSF image _I_ <sup>˜</sup> _y_, using as reference the distribution of diffuse candidates from the original image’s luma _U_ - _Iy_, in which _U_ denotes a Boolean mask that selects such candidates based on a detection criterion (16), and ‘‘◦’’ denotes the masking operation. After histogram matching, _I_ <sup>˜</sup> _y_ <sup>_hm_</sup> is obtained from _I_ <sup>˜</sup> _y_ . It fol lows that _I_ <sup>˜</sup> _y_ <sup>_hm_</sup> presents the same geometrical features as the original image, but, being specified as an intensity transformation from a PSF image, it approximates the diffuse FIGURE 5. Flowchart description of the proposed method. image’s luma channel, therefore approximating the second term in (11). Next, we take advantage of the fact that matched values cannot exceed values in the original luma, therefore we take the minimum between the original luma _Iy_ and _I_ <sup>˜</sup> _y_ <sup>_hm_</sup> <sup>. This can</sup> be used to remove wrong estimates of diffuse intensities in _I_ ˜ _y_ <sup>_hm_</sup> <sup>, yielding</sup> <sup>�</sup> <sup>_Id,y_</sup> <sup>, the diffuse luma estimate.</sup> Finally, the diffuse luma estimate <sup>�</sup> _Id,y_ is then used along with _Icb_ and _Icr_ –the original image’s Cb and Cr channels–for transformation back to RGB color space via transformation from YCbCr to RGB [39]. This yields <sup>�</sup> I _d_, the recovered diffuse component estimate. We re-emphasize that Figure 5 closely follows the textual description given above. In the two following subsections, we provide additional description on the histogram matching and the binary threshold mask blocks. _A._ _HISTOGRAM MATCHING_ Concretely, the main driver of the proposed method is histogram matching. The choice of employing a histogram matching block is based on the fact that we specify an intensity transformation from a PSF representation. As shown through (11), it is possible to approximate the true diffuse component by finding an offset factor with the same basis as the illuminant and adding it to the PSF image. Matched PSF intensities are specular free, so this is a mechanism of approximating the second term in (11). For that, in the proposed method, the histogram matching block matches the distribution of luma intensity values from the PSF image, taking as reference the luma distribution from the original image. The distributions are matched by calculating an intensity transformation that maps the PSF luma, such that the resulting histogram approximately matches in distribution the histogram obtained from the original image luma. We refer to algorithms available in literature such as [41] which can be used to implement this image processing block. In Figure 6, we present two examples of histogram matching in our proposed approach. Besides, histogram matching, although a simple concept, is very powerful and has also seen recent applications. New histogram specification algorithms have been developed for color image enhancement, e.g. by Nikolova and Steidl [42]. While also, direct applications have been successful for stereoscopic cinema scene matching from multiple cameras such as the work by Bertalmío and Levine [43]. 1) DISCRETE HISTOGRAM TRANSFER There is another viewpoint to the problem of histogram matching. Notably, there exists a celebrated discrete optimal transport solution which is given by assignment when _J_ and _J_ <sup>_ref_</sup> possess equal dimensions. This approach has been explored, for instance, in midway image equalization [44], [45]. This equivalent viewpoint also supports the fact that under the circumstances of this problem (1D assignment of same-sized vectors considering a lexicographic image representation), histogram matching is optimal and given by assignment. Concretely, histogram matching in this case consists simply of assigning _J_ the sorted values of _J_ <sup>_ref_</sup> in the sequential index positions that order _J_ . We refer to [45] for a practical implementation. However, memory access for index sorting is neither cheap nor fast, therefore we opt for the implementation of the histogram matching block via LUT construction and LUT mapping. This is also the direction taken by [45] after having assessed the memory access cost of the sorting approach. _B._ _DETECTOR_ We devised a detector block which we have included inside the pipeline of the proposed method. Its purpose is to improve the results of the histogram matching block. Its precise location is illustrated in Figure 5. Previous studies by Shen _et al._ [28] and Shen and Cai [29] considered the detection problem from a single threshold perspective. These articles have had their methods incorporated into other works cited herein [14], [15]. In [28], [29], the authors needed a processing block for the election of purely diffuse and mixed specular-diffuse regions, so that they could proceed with their respective separation methods. Reference [28] simply compared the value of image pixels to the average value of the minimum image. In follow-up work, [29] considered an additional term: standard deviation multiplied by a parameter that depends on how pervasive the specular phenomenon throughout the image is. It was not specified in [29] which FIGURE 6. Two histogram matching examples. Images: (a)–(c) _animals_, (d)–(f) _masks_ . Scatter plots: Y-Cb sections. Histograms: luma intensities. In black (plots): (a), (d) original luma, (b), (e) PSF luma, (c), (f) histogram-matched luma. In red (plots): true diffuse component density. distribution they assumed for calculation of the standard deviation. To simplify the computation of this parameter, we propose a detector on the likes of [29], however, with a different distribution model for the intensity values of the dark channel _I_ <sup>_min_</sup> . As we have shown in the equation of the dark channel (8), the dark channel _I_ <sup>_min_</sup> contains the entirety of the specular component in an image with normalized illuminant. Therefore, a detector based on _I_ <sup>_min_</sup> is indeed an effective classification for most images. Intensity values can be traced back to energy in image formation [1], so an intensity-domain threshold selects regions based on an energy criterion. Notice that it is not possible to segment an image in purely diffuse and specular regions in a binary threshold manner since those are additive under a DRM assumption. Nevertheless, this threshold operation assumes the important role of identifying regions that are more diffuse regarding other regions from the image. In our framework, we can obtain better results in the histogram matching step detailed in subsection IV-A by detecting and removing specular outliers from the distribution that is used as the reference for matching. 1) DARK CHANNEL INTENSITY DISTRIBUTION APPROXIMATION We know from previous works by He _et_ _al._ [37] that the DCP for natural images has a fast-growing asymptotic cumulative distribution function (CDF). Reference [37], however, used an order-statistic minimum filter before obtaining this statistic, shifting the distribution towards zero values. As shown in the equation of the PSF (9), the DCP for DRM-based highlight analysis methods is different, since no statistic-order minimum filter is used: every pixel from the minimum image is simply the minimum between all three channels (7). Nevertheless, He _et al._ [37] allowed us to obtain intuition to which distribution to assume. The fast growth pattern for CDFs is typical of gamma-like distributions, so we model the probability density function (PDF) of _I_ <sup>_min_</sup> as an exponential distribution. The exponential distribution is a single-parameter distribution that is a special case of the gamma distribution. The fact that only a single parameter is needed to define the statistical moments used for thresholding is useful for simplifying computations. Its PDF is defined as: FIGURE 7. Blue area: histogram of the dark channel of all objects from the MIT Intrinsic Images dataset [46] under different light sources. In red: estimated normal distribution, _µ_ = 0 _._ 22 and _σ_ = 0 _._ 20. In blue: exponential, _µ_ = 0 _._ 22. 2) MASK _U_ We now define the following Boolean threshold mask: PDF( _x_ ; _λ_ ) = - _λe_ <sup>−</sup> <sup>_λx_</sup> _x_ ≥ 0 _,_ (12) 0 _x_ _<_ 0 _._ Its first statistical moment and its variance for a random variable _X_ with _nx_ samples are: E[ _X_ ] = <sup><u>1</u></sup> (13) _λ_ <sup>=</sup> <sup>_β_</sup> and Var[ _X_ ] = <sup><u>1</u></sup> (14) _λ_ <sup>2</sup> <sup>=</sup> <sup>_β_</sup> <sup>2</sup> <sup>_._</sup> Furthermore, the exponential distribution has a simple rate parameter _λ_ estimator: _U_ ( _p_ ) = 1 if _I_ <sup>_min_</sup> ( _p_ ) _< ηβ,_ (16) 0 otherwise. In which _β_ is the mean value of _I_ <sup>_min_</sup>, _β_ = <sup><u>1</u></sup> # _�_ _p_ ∈ _�_ _I_ <sup>_min_</sup> ( _p_ ) = _I_ <sup>_min_</sup> _._ (17) - _λ_ = <sup><u>1</u></sup> <u>�</u> _<u>nx</u>_ _β_ <sup>=</sup> _<u>x</u>_ <sup><u>1</u></sup> <sup>=</sup> _i_ <sup>_xi_</sup> _._ (15) For moderately specular images, upon extensive testing, we found empirically that _η_ = 4 sufficed. It should be noted that this block is optional, and offers quality improvement when we have prior knowledge that an image is or has mild specular features. To bypass this block altogether, simply set _η_ = ∞, or not implement it at all, effectively matching the distribution of luma intensities of the PSF image _I_ <sup>˜</sup> _y_ to the distribution of the original image’s luma _Iy_ . This also guarantees components’ separation, however allowing minor error. Since it offered relevant quality improvements in the proposed method for the Shen and Zheng dataset [31], results reported for this dataset in the following section were obtained with _η_ = 4. 3) BIG IMAGES For large images that are too inhomogeneous and with large contrasting macroregions, we propose a pixel-wise threshold value defined as the value of a box-filtered (i.e., moving average) version of the image. The box filter must have a big enough kernel size that fully encompasses specular highlight microregions. A constant-time space varying box filter is defined in [47]. To summarize: instead of defining _β_ in (16) a constant scalar value for all _p_, one should define it pixel-wise as _βbox_ = _I_ <sup>_min_</sup> _⋆_ _h._ (18) in which _h_ is a low-pass filter kernel, and _⋆_ denotes the 2D correlation operation applied for every channel. Additionally, the standard deviation is defined as the squareroot of Var[ _X_ ] (14), which is equal to E[ _X_ ] (13). To validate the chosen model, we propose a distribution analysis of the MIT Intrinsic Images dataset [46]. The MIT dataset consists of 20 different objects under 10 different light sources. The light is normalized, and images are in linear RGB values, therefore are appropriate for analysis under the DRM. Analysis of distributions of random Internet images is not applicable since they may be gamma-corrected, and their illumination may not be normalized. In [37], this was possible because their goal was to validate this prior to the objective of atmosphere transmittance estimation. This does not apply to the herein method, hence, we selected this dataset for intrinsic images for further analysis. An object mask is available with the dataset, and we collected the intensity distribution of the minimum channel of valid object pixels (ignored background distributions). Results are shown in Figure 7. Visibly, both might seem sub-optimal fits, but the exponential distribution is seldom a single-parameter distribution and it follows more closely the data distribution for lower and higher intensity values which leads to better a threshold for high-valued outliers, that is the objective for the herein method. TABLE 1. Quantitative evaluation of the recovered diffuse component. FIGURE 8. Results for the Shen and Zheng dataset [31]. (a) Original images, (b), (c) ground truth, (d), (e) Shen and Zheng [31], (f), (g) Yang _et al._ [30], (h), (i) ours. V. EXPERIMENTAL RESULTS In this section, we present the experimental results of the proposed method. First, we analyze results regarding the quality of the recovered diffuse component. For that, we use the peak signal-to-noise ratio (PSNR) and the SSIM metrics to evaluate the quality, using a ground truth as reference. We use the dataset by Shen and Zheng [31], where both the original images and their ground truths are available. This dataset is composed of linearly-encoded, illuminant-normalized, RGBvalued images, therefore its images are apt for separation. This dataset is commonly used in technical works. We also analyze the results of recovery in an AWGN scenario. Moreover, we show runtime metrics for two implementations of the proposed method. Visual results for the Shen and Zheng dataset are shown. More visual results from other datasets, and also from public domain photography are included. In Table 1, the quantitative results of the quality of the recovered diffuse component from other methods available in the literature [22]–[26], [28], [30], [31] were compiled for comparison. Whenever presented, we kept the best peerreported result amongst different works. In Table 1–3, values emphasized in bold indicates that the method has achieved the highest metric for that image. Values in italics indicate the second highest. The first analysis uses PSNR. PSNR is defined as PSNR{ I _d_ _,_ <sup>�</sup> I _d_ } = 10 log10 - <u>peakval</u> <sup>2</sup> { <u>I</u> _<u>d</u>_ } MSE{ I _d_ _,_ <sup>�</sup> I _d_ } (19) in which peakval is 1 for floating-point type images in the [0 _,_ 1] interval and 2 <sup>_B_</sup> - 1 for unsigned integer type images with B bits per pixel per channel. MSE is the mean-squared error <u>1</u> MSE{ I _d_ _,_ <sup>�</sup> I _d_ }= numel{ I _d_ } _c_ ∈{ _r,g,b_ } _p_ ∈ _�_ _Id,c_ ( _p_ )− <sup>�</sup> _Id,c_ ( _p_ )�2 _._ (20) in which numel returns # _�_ × #{ _r, g, b_ } = _m_ × _n_ × 3, the total number of elements in I . The PSNR results we obtained in Table 1 are outstanding because our method has superseded the state of the art in three images for this metric: _animals_, _cups_, and _masks_ . We regard our high PSNR metrics on account of the preservation of the input image’s original chroma (i.e., the color difference TABLE 2. PSNR evaluation in presence of AWGN (dB). TABLE 3. Runtime evaluation (s). channels Cb and Cr) which are not distorted by the specular phenomenon. This treatment reduces global error. We also quantitatively analyzed the performance of our method with regards to the SSIM metric (higher is better). It is a scalar that defines the structural similarity between two given images and was introduced by Wang _et_ _al._ in [48]. We also note that SSIM incorporates a measure of perceived structural change. Similarly, we compiled selfreported results available in the literature for selected stateof-the-art methods. The results are also shown in Table 1. The SSIM results in Table 1 present good performance, and supersede two images: _animals_ and _cups_ . On the other images, the SSIM differences are twofold: the Guo _et al._ [25] method considers several constraints in the optimization which yield better results specifically for the _masks_ image, which is slightly corrupted in the highlight regions because of non-linearities caused by the sensor at image acquisition. The second difference is that the _fruit_ image has a different background in the true diffuse (ground truth) from the original image, which greatly increases our method’s error in both PSNR and SSIM because we preserve and propagate the chroma of the original image. Besides, we have tested perfect separation under the DCP assumption (11), taking only _�_ <sup>_min_</sup> (true minimum chromaticity) and _md_ (diffuse weight map) from the ground truth’s diffuse image, and calculating I <sup>˜</sup> (PSF image) from the original image via (9). Ideal separation values considering this assumption are shown in the bottom row in Table 1. In Table 2, we analyze the quality of the diffuse component recovered in the presence of AWGN in terms of PSNR. It is an uncommonly reported result, therefore we only compared it to Shen and Zheng [31] which is, to date, the most performing method. Since the core of our method is a global intensity transformation via histogram matching, it is robust to perturbations. This visible in Table 2 by the superior results in most of the images, and in all images for a higher noise variance. Next, for the analysis of average execution time, we compared an implementation of our method in MATLAB 9.6 and another in C++ using OpenCV 2.4, with the method by Shen and Zheng [31], which is the fastest amongst the compared works that have public source code available. <sup>1</sup> The results are shown in Table 3. The results shown regard an average of over 100 trials, in the same manner as [31]. For a fair comparison, results for [31] are after compilation of the provided source code in the same machine as the one used to compile and generate the time reports of our method. For a complete reference, timing results were obtained for a personal computer running Windows 10 1903 with an i7-3632QM (up to 3.20 GHz CPU) and 8 GB DDR3 1600 MHz physical RAM. Regarding the runtime metrics in Table 3, we duly note that our approach is much faster than the fastest method to date. The low average processing time, even at a high-level computing language such as MATLAB, is due to the fast generation of the contrast function used to map the intensity values to perform the histogram matching step via LUT. Also, we add that these implementations are non-optimized CPUbased code. Shen and Zheng’s method [31] is slower because it has two _k_ -means clustering iterations and a sorting step, both of which are computationally costly in comparison to our method which is LUT-based. In Figure 8, visual results for the Shen and Zheng dataset were exported for qualitative analysis. We compare the proposed method to the two best methods [30], [31] among the works available online. Default settings were used per how their source code was distributed. Visibly, all of the results are very similar. This is because the images of this dataset were taken in controlled environments, and most single-image methods operate under the DRM (similar mechanisms). Our histogram matching approach presents no clustering artifacts, which results from Shen and Zheng [31] may present. However, ours may not always present smooth results, since there is no filtering involved. For instance, the _masks_ image of Yang _et al._ [30] has better visual quality, even though it has worse quality metrics. In Figure 9, we evaluate test images from Tan and Ikeuchi [26] and Shen and Zheng [31]. The images included are _fish_, _toys_, _rabbit_ and _watermelon_ . These images are widely used in the single image highlight removal community for visual benchmarking. They are specific test images taken in controlled environments. Also, the values in the intensity domain are linear to the light reflected. This is because they were taken with precision CCD cameras without gamma encoding. We refer to the original works [26], [31] for further details on the experimental setup used to obtain the 1 Available code: 1) Tan and Ikeuchi [26]. [Online]. Available: [http://tanrobby.](http://tanrobby.github.io/code.html) [github.io/code.html](http://tanrobby.github.io/code.html) 2) [Shen and Zheng [31]. [Online]. Available: http://www.ivlab.](http://www.ivlab.org/publications.html) [org/publications.html](http://www.ivlab.org/publications.html) 3) Yang _et_ _al._ [30]. [Online]. Available: [http://www6.cityu.](http://www6.cityu.edu.hk/stfprofile/qiyang.htm) [edu.hk/stfprofile/qiyang.htm](http://www6.cityu.edu.hk/stfprofile/qiyang.htm) FIGURE 9. Results for Tan and Ikeuchi [26] and Shen and Zheng [31] test images. (a) Original images, (b) Shen and Zheng [31], (c) Yang _et al._ [30], (d) ours. images. Likewise, the results shown in Figure 9 are similar among the state-of-the-art methods. This further shows that separation is efficient in controllable environments. Methodspecific artifacts are especially visible in the _watermelon_ image. Regardless, our method in this image has no artifacts. In Figure 10 we have included results for natural image photography. These are public domain stock photos available online. <sup>2</sup> We have analyzed visual results for the images _green-pear_, _gourds-and-pumpkin_, _empty-aluminum-tables-_ _and-chairs_, and _red-vintage-car_ . They were taken in uncontrolled environments and we cannot know precisely the camera response and post-processing applied to them. Thus, we have roughly attempted to undo the gamma correction before executing the highlight removal methods. We have done so by applying a power-law with _γ_ = 2 _._ 2 to the intensity of these images. The procedure is undone after conducting highlight removal. Generally, for natural images, gamma correction should be reverted and the illuminant must be also normalized before separation–afterward, both operations can be undone to preserve appearance. In these images, we note that, while none of the methods present great results, the methods can be used for the mitigation of the specular reflection. Ours is less aggressive than Yang _et al._ [30], while improving or being comparable to Shen and Zheng [31]. For completeness, we refer to the original papers of all compared-to methods for visual evaluation of their results. _A._ _LIMITATIONS_ Our method shares the same limitations as other methods based on the DRM, as well as all of the herein comparedto methods [22]–[26], [28], [30], [31]. This is not all due 2 Bobek Ltd., ‘‘Public Domain Pictures.net.’’ [Online]. Available: [https://publicdomainpictures.net](https://publicdomainpictures.net) FIGURE 10. Results for public domain photography. (a) Original images, (b) Shen and Zheng [31], (c) Yang _et al._ [30], (d) ours. to the shortcomings of these methods but from the assumptions made in the physical reflection model [1] so that the single image problem has better tractability. In this context, we provide a descriptive list of known limitations, including a short description of how they could be mitigated by preprocessing blocks. These blocks form independent lines of research. They are, however, outside the scope of this work. 1) INFORMATION CORRUPTION We assume that the input image has no information corruption. Should it present clip or loss of color information, our method may not operate properly. This is a problem of correcting data corruption and should be dealt with beforehand. For that, we refer to methods that correct this loss by making use of smoothness priors of color components such as [49], [50]. 2) ILLUMINANT NORMALIZATION As shown in section III, we assume that the illumination is normalized before processing. Thus, our method is as robust as the normalization of the illuminant. It can be a challenging step for all illuminants, given the plethora of illumination sources commonly encountered [51] and should be addressed properly beforehand by a color constancy algorithm [35], [36]. 3) ACHROMATIC REGIONS Methods based on chromaticity analysis under the DRM cannot handle achromatic regions. These regions have no color information. Thus, originally grayscale regions become dark after processing [26]. Tan and Ikeuchi [26] propose thresholding them before processing. Qualitatively, this means that these methods have weak visual quality for human and portrait images. As visible in Figure 11, our method also performs poorly in these images. Knowingly, there exist other methods that are specific to the specular removal problem in skin tones and portrait images [52]. They involve optimizing FIGURE 11. Results for the _lady_ image. (a) Original image, (b) Shen and Zheng [31], (c) Yang _et al._ [30] (d) ours. an objective function composed of a data term and a smoothness term, in which they incorporate the reflection model, illumination modeling, and skin color modeling. However, these approaches are neither fast nor intended for generalpurpose processing as ours is. _B._ _FUTURE WORKS_ There are many directions in which the highlight removal problem could depart. We have mapped four main points that can be explored by future works. They are as follows. 1) SALIENCY A challenging advancement to the open problem of specular highlight removal [2] would be to incorporate saliency [53]. The highlight removal problem has yet to be formulated in a lower vision framework with regards to saliency. Diffuse reflection is often used as a subjective term to describe lowfrequency, low-parametric reflection content [3] and specular highlights are a feature that is inherent to the perception of shape [8], [9], therefore a link could be somehow established. It is clear that there is a perception prior that is not being considered: the integration of such prior would help further information about this problem. 2) SPARSE MODELING A contemporary trend in signal processing is sparse modeling [54]. Future work could incorporate the sparsity prior which is already being used in recent highlight removal methods [22], [25]. These two works have explored sparsity in the number of colors of the input image. We suggest that a future approach should also explore sparsity in other domains. 3) IMPROVING EXISTING METHODS Improvements such as proposed by Yamamoto and Nakazawa [16] can be very helpful for the mitigation of artifacts. Other forms of enhancing the diffuse and specular components’ separation could be sought after, given that the limitations presented are in most part common to the numerous methods available. 4) VIDEO Processing blocks to provide smoothly varying highlight removal considering temporal relations between frames need to be developed. VI. CONCLUSION We have proposed a method for single image highlight removal that is on par with state-of-the-art developments. It has a strong foundation on a physical reflection model and is the simplest yet proposed. The core idea behind it is histogram matching a pseudo-specular-free representation of the image in a perceptually-coded color space. We have detailed a straightforward and reproducible pipeline for the proposed method. Then, we compared our experimental results to stateof-the-art methods. The results have shown that ultimately the proposed method surpassed most self and peer-reported metrics and proved to be a fast and competitive contribution. Finally, we presented commentary for improvements to the proposed framework and called for future works. For such, we have also included a full literature review that covered contemporary applications in image enhancement in consumer electronics to encourage follow-up works. APPENDIX A We’d like to show that the Cb and Cr channels in the YCbCr color space [39] are specular-free. First, we define _A_, the direct transform matrix which takes us from RGB to YCbCr _A_ . Noticeably, <sup>�</sup> _j_ <sup>_a_</sup> <sup>1</sup> <sup>_,j_</sup> <sup>=</sup> <sup>�</sup> _j_ <sup>_a_</sup> <sup>2</sup> <sup>_,j_</sup> <sup>=</sup> <sup>0, which means that any</sup> constant RGB vector is orthogonal to these rows. Thus, we are 0 _._ 299 0 _._ 587 0 _._ 114  −0 _._ 173 −0 _._ 339 0 _._ 511  (21) 0 _._ 511 −0 _._ 428 −0 _._ 083   _Iy_ ( _p_ ) _Icb_ ( _p_ ) _Icr_ ( _p_ ) such that in which _A_ =    _Ir_ ( _p_ )  _Ig_ ( _p_ ) _Ib_ ( _p_ )   + offset _,_ (22)   = _A_ - _T_ (23) offset = �0 _,_ <sup><u>128</u></sup> 255 <sup>_,_</sup> <sup><u>128</u></sup> 255 for floating-point type images in the [0 _,_ 1] interval. Considering the DRM decomposition of the image I into diffuse and specular reflection components, and taking into account that the illumination has been normalized such that the specular component is of equal value among the three RGB channels, we have that _Ir_ ( _p_ ) _Ig_ ( _p_ ) _Ib_ ( _p_ ) _Id,r_ ( _p_ ) + _Is_ ( _p_ )  _Id,g_ ( _p_ ) + _Is_ ( _p_ )  _._ (24) _Id,b_ ( _p_ ) + _Is_ ( _p_ )    =  I ( _p_ ) =   The direct transformation of I ( _p_ ), given by (22), evaluates to   _Iy_ ( _p_ ) _Icb_ ( _p_ ) _Icr_ ( _p_ )   _Id,r_ ( _p_ )  _Id,g_ ( _p_ )  + _Id,b_ ( _p_ )   _Is_ ( _p_ ) 0 0   = _A_   + offset _._ (25) Note that there is no specular component _Is_ in the Cb and Cr channels. Trivially, let { _ai,j_ } _i,j_ ∈{0 _,_ 1 _,_ 2} denote the elements of _A_ . Noticeably, <sup>�</sup> _j_ <sup>_a_</sup> <sup>1</sup> <sup>_,j_</sup> <sup>=</sup> <sup>�</sup> _j_ <sup>_a_</sup> <sup>2</sup> <sup>_,j_</sup> <sup>=</sup> <sup>0, which means that any</sup> _j_ <sup>_a_</sup> <sup>1</sup> <sup>_,j_</sup> <sup>=</sup> <sup>�</sup> able to conclude that–if the illuminant is normalized–the Cb and Cr channels are invariant to specularities. Similarly, the PSF image I <sup>˜</sup> defined in subsection III-B in the YCbCr color space is simply  _I_ ˜ _y_ ( _p_ )  _I_ ˜ _cb_ ( _p_ ) _I_ ˜ _cr_ ( _p_ )   =   _Iy_ ( _p_ ) _Icb_ ( _p_ ) _Icr_ ( _p_ )   _I_ <sup>_min_</sup> ( _p_ ) 0 0   _,_ (26) [17] T. Yamamoto and R. Kawachi, ‘‘Image processing apparatus, image pro cessing method, and computer readable recording medium for recording same,’’ Republic of Korea Patent 1 020 180 060 989, Jun. 7, 2018. [18] K. Garg and N. Alldrin, ‘‘System and method for detection of specularity in an image,’’ U.S. Patent 8 577 135, Nov. 5, 2013. [19] C. Yuan, L. B. Baldwin, G. S. Heller, D. Bibireata, L. L. LeGrand, III, C. S. A. MacGregor, C. P. Vaughn, and F. P. Penov, ‘‘Image capture guidance to reduce specular reflection effects,’’ U.S. Patent 9 912 847, Mar. 6, 2018. [20] H. Jin, H. Kim, and S. Hadap, ‘‘Single-image specular reflection separa tion,’’ U.S. Patent 9 582 901, Feb. 28, 2017. [21] H. Kim, H. Jin, S. Hadap, and I. Kweon, ‘‘Specular reflection separation using dark channel prior,’’ in _Proc._ _IEEE_ _Conf._ _Comput._ _Vis._ _Pattern_ _Recognit._, Jun. 2013, pp. 1460–1467. [22] Y. Akashi and T. Okatani, ‘‘Separation of reflection components by sparse non-negative matrix factorization,’’ _Comput. Vis. Image Underst._, vol. 146, pp. 77–85, May 2016. [23] J. Suo, D. An, X. Ji, H. Wang, and Q. Dai, ‘‘Fast and high quality highlight removal from a single image,’’ _IEEE Trans. Image Process._, vol. 25, no. 11, pp. 5441–5454, Nov. 2016. [24] W. Ren, J. Tian, and Y. Tang, ‘‘Specular reflection separation with color–lines constraint,’’ _IEEE_ _Trans._ _Image_ _Process._, vol. 26, no. 5, pp. 2327–2337, May 2017. [25] J. Guo, Z. Zhou, and L. Wang, _Single_ _Image_ _Highlight_ _Removal_ _With_ _a_ _Sparse_ _and_ _Low-Rank_ _Reflection_ _Model_ (Lecture Notes in Computer Science), vol. 11208. Cham, Switzerland: Springer, 2018, pp. 282–298. [26] R. Tan and K. Ikeuchi, ‘‘Separating reflection components of textured surfaces using a single image,’’ _IEEE_ _Trans._ _Pattern_ _Anal._ _Mach._ _Intell._, vol. 27, no. 2, pp. 178–193, Feb. 2005. [27] K.-J. Yoon, Y. Choi, and I. S. Kweon, ‘‘Fast separation of reflection components using a Specularity–invariant image representation,’’ in _Proc._ _Int. Conf. Image Process._, Oct. 2006, pp. 973–976. [28] H.-L. Shen, H.-G. Zhang, S.-J. Shao, and J. H. Xin, ‘‘Chromaticity-based separation of reflection components in a single image,’’ _Pattern Recognit._, vol. 41, no. 8, pp. 2461–2469, Aug. 2008. [29] H.-L. Shen and Q.-Y. Cai, ‘‘Simple and efficient method for Specularity removal in an image,’’ _Appl. Opt._, vol. 48, no. 14, p. 2711, May 2009. [30] Q. Yang, J. Tang, and N. Ahuja, ‘‘Efficient and robust specular high light removal,’’ _IEEE_ _Trans._ _Pattern_ _Anal._ _Mach._ _Intell._, vol. 37, no. 6, pp. 1304–1311, Jun. 2015. [31] H.-L. Shen and Z.-H. Zheng, ‘‘Real-time highlight removal using intensity ratio,’’ _Appl. Opt._, vol. 52, no. 19, p. 4483, Jul. 2013. [32] S. Tominaga, ‘‘Dichromatic reflection models for a variety of materials,’’ _Color Res. Appl._, vol. 19, no. 4, pp. 277–285, Aug. 1994. [33] R. L. Cook and K. E. Torrance, ‘‘A reflectance model for computer graph ics,’’ _SIGGRAPH Comput. Graph._, vol. 15, no. 3, pp. 307–316, Aug. 1981. [34] Y. Weiss, ‘‘Deriving intrinsic images from image sequences,’’ in _Proc. 8th_ _IEEE Int. Conf. Comput. Vis. (ICCV)_, Nov. 2002, pp. 68–75. [35] B. Xiao, ‘‘Color constancy,’’ in _Encyclopedia of Color Science and Tech-_ _nology_, vol. 51, no. 7. Berlin, Germany: Springer, 2015, pp. 1–10. [36] A. Gijsenij, T. Gevers, and J. Van De Weijer, ‘‘Computational color con stancy: Survey and experiments,’’ _IEEE_ _Trans._ _Image_ _Process._, vol. 20, no. 9, pp. 2475–2489, Sep. 2011. [37] K. He, J. Sun, and X. Tang, ‘‘Single image haze removal using dark channel prior,’’ _IEEE_ _Trans._ _Pattern_ _Anal._ _Mach._ _Intell._, vol. 33, no. 12, pp. 2341–2353, Dec. 2011. [38] S. Lee, S. Yun, J.-H. Nam, C. S. Won, and S.-W. Jung, ‘‘A review on dark channel prior based image dehazing algorithms,’’ _J._ _Image._ _Video_ _Proc._, vol. 2016, no. 1, pp. 1–23, Dec. 2016. [39] _Studio_ _Encoding_ _Parameters_ _of_ _Digital_ _Television_ _for_ _Standard_ _4:3_ _and_ _Widescreen 16:9 Aspect Ratios_, document ITU-R Rec. BT.601-7, 2011. [40] _Colorimetry—Part 4: CIE 1976 L*a*b* Colour Space_, Standard ISO/CIE Std 11 664-4, 2019. [41] R. C. Gonzalez and R. E. Woods, _Digital_ _Image_ _Processing_, 4th ed. London, U.K.: Pearson, 2017. [42] M. Nikolova and G. Steidl, ‘‘Fast hue and range preserving histogram specification: Theory and new algorithms for color image enhancement,’’ _IEEE Trans. Image Process._, vol. 23, no. 9, pp. 4087–4100, Sep. 2014.   which leads to our second claim in subsection III-D that _I_ <sup>˜</sup> _cb_ = _Icb_ and _I_ <sup>˜</sup> _cr_ = _Icr_ . Lastly, we take notice of _A_ <sup>−1</sup> 1 0 1 _._ 371 1 −0 _._ 336 −0 _._ 698 1 1 _._ 732 0   _._ (27) _A_ <sup>−1</sup> =   The first column in _A_ <sup>−1</sup> is the Y basis in RGB values. Since _�_ ( _p_ ) = - 31 <sup>_,_</sup> <sup><u>1</u></sup> 3 <sup>_,_</sup> <sup><u>1</u></sup> 3 - _T_, we note that _�_ ( _p_ ) lies on the same basis as the luma. REFERENCES [1] S. A. Shafer, ‘‘Using color to separate reflection components,’’ _Color Res._ _Appl._, vol. 10, no. 4, pp. 210–218, 1985. [2] R. T. Tan, ‘‘Specularity, specular reflectance,’’ in _Computer Vision_ . Boston, MA, USA: Springer, 2014, pp. 750–752. [3] S. J. Koppal, ‘‘Diffuse reflectance,’’ in _Computer_ _Vision_ . Boston, MA, USA: Springer, 2014, pp. 208–210. [4] S. J. Koppal, ‘‘Lambertian reflectance,’’ in _Computer Vision._ Boston, MA, USA: Springer, 2014, pp. 441–443. [5] R. J. Woodham, ‘‘Photometric stereo: A reflectance map technique for determining surface orientation from image intensity,’’ in _Image_ _Under-_ _standing Systerm Industry Application_, vol. 155, R. Nevatia, Ed. Bellingham, WA, USA: SPIE, Jan. 1979, pp. 136–143. [6] K. Ikeuchi, ‘‘Determining surface orientations of specular surfaces by using the photometric stereo method,’’ _IEEE_ _Trans._ _Pattern_ _Anal._ _Mach._ _Intell._, vol. PAMI–3, no. 6, pp. 661–669, Nov. 1981. [7] R. T. 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, p. 321, Mar. 2004. [8] A. Blake and G. Brelstaff, ‘‘Geometry from specularities,’’ in _Proc._ _2nd_ _Int. Conf. Comput. Vis._, Aug. 2005, pp. 394–403. [9] M. Oren and S. K. Nayar, ‘‘A theory of specular surface geometry,’’ _Int._ _J. Comput. Vis._, vol. 24, no. 2, pp. 105–124, Sep. 1997. [10] J. Bauer, A. Sycev, and K. Blankenbach, ‘‘Image enhancement,’’ in _Hand-_ _book_ _of_ _Visual_ _Display_ _Technology_ . Cham, Switzerland: Springer, 2016, pp. 781–794. [11] P. Corcoran and P. Bigioi, ‘‘Consumer imaging I: Processing pipeline, focus, and exposure,’’ in _Handbook of Visual Display Technology_ . Cham, Switzerland: Springer, 2016, pp. 513–544. [12] S. P. Mallick, T. Zickler, P. N. Belhumeur, and D. J. Kriegman, ‘‘Spec ularity removal in images and videos: A PDE approach,’’ in _Computer_ _Vision_ (Lecture Notes in Computer Science), vol. 3951. Berlin, Germany: Springer, 2006, pp. 550–563. [13] L. Meylan, S. Süsstrunk, S. Daly, and S. Süsstrunk, ‘‘The reproduction of specular highlights on high dynamic range displays,’’ in _Proc._ _IS&T/SID_ _14th Color Imag. Conf._, 2006, pp. 333–338. [14] Y. Huo and F. Yang, ‘‘High-dynamic range image generation from sin gle low-dynamic range image,’’ _IET_ _Image_ _Process._, vol. 10, no. 3, pp. 198–205, Mar. 2016. [15] P. P. Banik, R. Saha, and K.-D. Kim, ‘‘HDR image from single LDR image after removing highlight,’’ in _Proc._ _IEEE_ _Int._ _Conf._ _Consum._ _Electron._ _(ICCE)_, Jan. 2018, pp. 1–4. [16] T. Yamamoto and A. Nakazawa, ‘‘[Papers] general improvement method of specular component separation using high-emphasis filter and similarity function,’’ _ITE Trans. Media Technol. Appl._, vol. 7, no. 2, pp. 92–102, 2019. [43] M. Bertalmío and S. Levine, ‘‘Color matching for stereoscopic cinema,’’ in _Proc._ _6th_ _Int._ _Conf._ _Comput._ _Vis._ _Comput._ _Graph._ _Collab._ _Tech._ _Appl._ _(MIRAGE)_, New York, NY, USA, 2013, p. 1. [44] J. Delon, ‘‘Midway image equalization,’’ _J. Math. Imag. Vis._, vol. 21, no. 2, pp. 119–134, Sep. 2004. [45] T. Guillemot and J. Delon, ‘‘Implementation of the midway image equal ization,’’ _Image Process. Line_, vol. 5, pp. 114–129, Jun. 2016. [46] R. Grosse, M. K. Johnson, E. H. Adelson, and W. T. Freeman, ‘‘Ground truth dataset and baseline evaluations for intrinsic image algorithms,’’ in _Proc. IEEE 12th Int. Conf. Comput. Vis._, Sep. 2009, pp. 2335–2342. [47] J. Hensley, T. Scheuermann, G. Coombe, M. Singh, and A. Lastra, ‘‘Fast summed–area table generation and its applications,’’ _Comput._ _Graph._ _Forum_, vol. 24, no. 3, pp. 547–555, Sep. 2005. [48] Z. Wang, A. Bovik, H. Sheikh, and E. Simoncelli, ‘‘Image quality assess ment: From error visibility to structural similarity,’’ _IEEE_ _Trans._ _Image_ _Process._, vol. 13, no. 4, pp. 600–612, Apr. 2004. [49] D. Xu, C. Doutre, and P. Nasiopoulos, ‘‘Correction of clipped pixels in color images,’’ _IEEE_ _Trans._ _Visual._ _Comput._ _Graph._, vol. 17, no. 3, pp. 333–344, Mar. 2011. [50] H. J. Ju and R.-H. Park, ‘‘Correction of saturated regions in RGB color space,’’ _Int. J. Comput. Geometry Appl._, vol. 6, no. 2, pp. 01–13, Apr. 2016. [51] B. G. Batchelor, ‘‘Illumination sources,’’ in _Machine_ _Vision_ _Handbook_ . London, U.K.: Springer, 2012, pp. 283–317. [52] C. Li, S. Lin, K. Zhou, and K. Ikeuchi, ‘‘Specular highlight removal in facial images,’’ in _Proc._ _IEEE_ _Conf._ _Comput._ _Vis._ _Pattern_ _Recognit._ _(CVPR)_, Jul. 2017, pp. 2780–2789. [53] L. Itti, C. Koch, and E. Niebur, ‘‘A model of saliency-based visual attention for rapid scene analysis,’’ _IEEE Trans. Pattern Anal. Mach. Intell._, vol. 20, no. 11, pp. 1254–1259, 1998. [54] Z. Zhang, Y. Xu, J. Yang, X. Li, and D. Zhang, ‘‘A survey of sparse repre sentation: Algorithms and applications,’’ _IEEE Access_, vol. 3, pp. 490–530, 2015. VÍTOR S. RAMOS (Student Member, IEEE) received the B.Eng. degree _(cum laude)_ in electrical engineering from the Federal University of Rio Grande do Norte, Natal, Brazil, in 2019, where he is currently pursuing the M.Sc. degree in electrical engineering. He was an Undergraduate Research Assistant with the National Institute for Space Research, Natal. His research interests include computer vision, imaging sciences, and video display technology. He is also a Student Member of the Signal Processing Society. LUIZ GONZAGA DE Q. SILVEIRA JÚNIOR (Member, IEEE) received the B.Eng., M.Sc., and Ph.D. degrees in electrical engineering from the Federal University of Campina Grande, Campina Grande, Brazil, in 2002, 2003, and 2008, respectively. He was a Postdoctoral Researcher with the Instituto de Telecomunicações, Portugal. He has worked as a Lecturer at the Federal University of the Semiárido. He is currently an Associate Professor with the Communications Engineering Department, Federal University of Rio Grande do Norte, Natal, Brazil. He has rights to intellectual property on optical devices. He has published before in IEEE conferences on the subject of advanced schemes for digital signal processing. He has been involved in projects concerning Bayesian networks, turbo coding, and smart antennas. He is a member of the Communications Society. LUIZ FELIPE DE Q. SILVEIRA (Member, IEEE) received the B.Eng. degree in electrical engineering from the Federal University of Paraíba, Campina Grande, Brazil, in 2000, and the M.Sc. and Ph.D. degrees in electrical engineering from the Federal University of Campina Grande, Campina Grande, in 2002 and 2006, respectively. Since 2010, he has been a Professor with the Computer Engineering and Automation Department, Federal University of Rio Grande do Norte, Natal, Brazil. From 2006 to 2010, he was a Professor with the Federal Institute of Education, Science, and Technology of Rio Grande do Norte, Natal. He has experience in the greater electrical engineering area, with an emphasis on digital signal processing for communication systems, being involved mainly in the following subjects, such as information-theoretic learning, channel coding, dynamic spectrum access, automatic modulation classification, energy savings in data processing, and communication systems.

섹션 본문 105문단 · 48,755자

(제목 없음)

1This paper presents a fully automatic method for the separation of diffuse and specular reflection components from a single image. Overall, the mechanisms in which the available methods operate on are computationally costly and do not translate well to modern hardware-implemented image processing pipelines, such as the ones present in consumer electronics. Consequently, the objective of this article is to introduce a simple yet effective method for specular highlight removal. It is based on the dichromatic reflection model and operates through histogram matching in the YCbCr color space. The proposed method performs in real-time. It only uses global image statistics and point-wise intensity transformations. Experimental evaluation shows that the proposed approach has competitive results in comparison to stateof-the-art methods. Limitations of the proposed approach are seldom and are common to most methods available. The proposed method, however, achieves better quality results with much less computational cost, thus enabling feasibility in systems with limited processing power.INDEX TERMSBlind source separation, feature extraction, image color analysis, image enhancement, image processing, image texture analysis.

I. INTRODUCTION

2The separation of diffuse (body) and specular (interface) components from images traces back to as early as 1985 when Shafer first introduced the dichromatic reflection model (DRM) in his seminal paper [1]. Since then, a variety of methods have been proposed that tackled this ill-posed problem of separation based on the DRM. It is possible to classify how each method operates, e.g. if they require single, multiple or spectral images, and if they require manual segmentation or perform it automatically.

3In this context, this paper considers the open problem of automatic specular highlight removal, i.e. the separation of specular reflectance components [2], from a single image. The specular phenomena visually appear as shiny, glossy, or mirrorlike regions. Under the DRM [1], it is defined as one of the basic reflection components of a material, The associate editor coordinating the review of this manuscript and approving it for publication was Haimiao Hu. the other being the diffuse reflectance [3]. The DRM states that an image can be described as a linear combination of both, and these components depend solely on geometry and color. The specular component is also named interface reflection and considering neutral interface the specular reflection component takes the color of the illuminant. Diffuse reflectance [3], on the other hand, is subjectively defined as the smoothly-varying response of a material to incident illumination. It is generally low-parametric. It is also named body reflection under the DRM and takes the color of the material. These reflection components are illustrated in Figure 1.

4The separation of diffuse and specular components is a non-trivial problem and many computer vision algorithms simply assume that the objects that compose an observed scene are perfectly Lambertian [4], i.e. of a purely diffuse nature, because of better computational tractability. Lambertian reflectance does not depend on viewing angle and is a scene property akin to the concept of diffuse reflectance: it assumes that the illumination reflection scatters equally into all viewing directions. High-frequency information such as highlights and shadows are treated as outliers since these are not accounted for in the Lambertian model. However, it is quite evident that under the presence of a specular phenomenon, the observed image of an object may present visual characteristics different from those that are inherent to the material.

A. APPLICATIONS 1) COMPUTER VISION

5Because of its characteristics, diffuse reflectance has classical low-level vision applications. It has been used for the inference of scene geometry. Most notably, Woodham in a 1979 work [5] has introduced the concept of photometric stereo: a reflectance map that determines surface orientation at each point by successive views. Specular reflectance has also seen notable works in classical low-level vision. It is a highly informative feature. It has been shown that the specular component conveys photometric properties. Ikeuchi in 1981 [6] extended the photometric stereo concept and determined surface orientations of specular surfaces for the case of a distributed light source. Tan et al. [7] have shown that the specular highlight component is useful for the estimation of illuminant chromaticity (color). Moreover, the specular reflection component can be used for the estimation of geometry features [8], [9].

2) CONSUMER ELECTRONICS

6Most recently, the decomposition of an image into diffuse and specular parts has been applied in image enhancement. Image enhancement [10] is one of the key signal processing tasks in contemporary image processing pipeline systems [11] and is responsible for allowing e.g. better readability in images for displays, perceived aesthetic quality of image and content, and aesthetic reproduction of tone in acquisition and display systems. A direct application to specular reflection separation with regards to image enhancement is dichromatic editing as defined by Mallick et al. [12]. It consists on editing the diffuse and the specular components independently and then re-combining the processed components to give rise to different effects such as lip gloss (virtual beauty), object re-illumination, modification of apparent texture, and other effects.

7Another application to specular reflections in visual display systems is tone mapping for high dynamic range (HDR) displays. Meylan et al. [13] selected highlight regions and mapped the display range allocated to specular highlights differently than that of diffuse regions: for each frame a pixel intensity value is calculated for the thresholding of diffuse and specular highlight regions, then these regions have their intensities linearly mapped using functions of different slopes. Also, there is interest in the application of inverse tone mapping to display low dynamic range (LDR) content on HDR displays. References [14] and [15] incorporated usages of highlight removal methods for this objective.

8Furthermore, it is notable that there exists industry interest in this topic. There has been the development of solutions regarding improvements of existing methods for incorporation into display systems such as TVs. Yamamoto and Nakazawa [16] showed that it is possible to mitigate artifacts generated as a byproduct of the separation through energy minimization. Samsung Electronics Co., Ltd. has registered this method [17]. Likewise, there is a history of patent registration of highlight regions detection methods for digital cameras and alike [18]. Other applications are registered such as guidance systems for generation of 3D scenes using stereo matching [19]-this application has the necessity of a highlight removal block to robustify subsequent processing. Adobe Inc. possesses registered intellectual property of a single image highlight removal method [20].

9Finally, we note that our method, unlike recent approaches to the highlight removal problem [21]- [25], consists only of simple operations that are straightforwardly implementable considering an image processing pipeline paradigm [11], therefore, easily adaptable to the aforementioned industry use cases.

B. STATE OF THE ART

10When Shafer introduced the DRM, he also proposed a form of separating the body and interface components [1]. However, at the time, the proposed method required prior segmentation of materials and could not handle textures. In 2005, Tan and Ikeuchi [26] were responsible for a revival of the DRM through the introduction of chromaticity analysis. They expanded the DRM in an L 1 -normalized formulation which allowed them to proceed with specific color analyses. Their method is fully automatic and requires only a single image. Their formulation proposed that diffuse pixels should propagate their chromaticity to specular regions. Specular regions were detected by logarithmic differentiation with regards to a pseudo-specular-free (PSF) image that they also introduced, which is obtained by setting a maximum chromaticity of equal, constant value, for all pixels of the image. Follow-up works made extensive use of the PSF representation because it has similar geometry to the original image. However, the PSF has distorted colors. Yoon et al. [27] first introduced the two-band PSF image, which is obtained through subtraction of the minimum among the three RGB channels (hereafter synonym to dark channel). Yoon et al. compared neighbor intensity ratios to corresponding ratios in the PSF representation and propagated diffuse ratios. Shen et al. [28] modified the PSF image by Yoon et al. [27] to make its chromaticity more robust to noise by adding an offset. Shen et al. treated the highlight removal problem by solving the DRM least-square problem for mixed specular-diffuse regions with regions that are purely diffuse and have the least distance in chromaticity coordinates. In follow-up work, Shen and Cai [29] solved the removal problem by first segmenting into mixed specular and diffuse and purely diffuse, however they corrected the values of specular regions by solving for a constant gain with regards to the modified specular-free image.

11Yang et al. [30] introduced a fast method that has roots in the chromaticity analysis work by Tan and Ikeuchi [26]. Yang et al. proceeded by employing a joint bilateral filter to smooth out the maximum chromaticity of the observed image, taking as input a PSF guide that has no specular features. Specular phenomena are considered noise in this filtering approach. Similarly, Shen and Zheng [31] proposed a real-time highlight removal method which is, to date, the fastest and most performing. It works by minimummaximum chromaticity space analysis, clustering, and restoring intensity ratios for mixed specular-diffuse regions. Kim et al. [21] re-introduced the concept of a dark channel prior (DCP) and first approached the problem from an optimization standpoint by formulating it in terms of a TV-L 1 and TV-L 2 optimization problem in a maximum a posteriori (MAP) framework which yields pleasing results. Akashi and Okatani [22] introduced a framework that incorporated non-negative matrix factorization (NNMF) with a sparsity constraint that limited the number of colors used to compose the image, taking advantage of the fact that natural images have limited number and composition of colors. One of the bases of the factorization was the illuminant itself, and a cost function was formulated to penalize the use of illuminant color. Suo et al. [23] extended the DRM in terms of L 2 -normalization and by formulating the problem such that the illuminant is orthogonal to the chromaticity. Their approach also requires clustering for estimation of regionspecific purely diffuse colors. Ren et al. [24] introduced a method based on color-lines that jointly estimated illuminant color and recovered diffuse colors by first clustering the image using a modified nearest neighbor technique and recovering the diffuse coefficient by searching along the radius in a polar-formulated coordinate system. In the most recent proposal to date, Guo et al. [25] introduced a sparse and low-rank formulation and incorporated advances made in non-negativity and matrix factorization discussed by Akashi and Okatani [22]. Guo et al. introduce two auxiliary variables to incorporate these formulations and iteratively solve the optimization problem. The results are on par with Shen and Zheng [31]. Guo et al. also analyzed other works quantitatively in terms of SSIM, which has shown that theirs and Shen and Zheng's are the best methods available.

12We will show that our method can improve the runtime metrics of Shen and Zheng, while also having competitive PSNR and SSIM metrics to these methods.

C. CONTRIBUTIONS

13The contributions of this work are twofold. First, we redefine the DCP from the perspective of the DRM. This prior is widely used in other image processing problems. Although it has been used in prior works, it does not have the same formulation for the highlight removal problem. In this aspect, we describe this prior and illustrate how it is useful. We extend this analysis to another color space in which the dark channel is fully encoded in one of the bases.

14Second, we propose a novel method for the highlight removal problem. The proposed method is automatic and works using a single image. It is chromaticity-based and relies on the DRM. Many modern methods have incorporated complex formulations in their approaches. Even very fast methods incorporate complex filtering or clustering steps that are largely undoable on hardware-implemented image processing pipelines. We propose a simple yet effective method that surpasses these complex methods in quantitative metrics and is much faster.

D. STRUCTURE

15The rest of this paper is organized as follows. First, in section II, the dichromatic reflection model (DRM) is presented along with the L 1 -normalized formulation for the discrete image domain that we operate on. Then, in section III, we elucidate the dark channel prior (DCP) and the generation of the two-band pseudo-specular-free (PSF) image. We extend this analysis to the YCbCr color space and briefly discuss why this color space is apt for the highlight removal problem. In section IV, we present the architecture proposal of our method and its composing blocks, discussing their functionalities and practical implementations. In section V, we discuss results and evaluate quantitative metrics for comparison with state-of-the-art methods. Visual results are shown for completeness. We disclose limitations and propose future improvements. Lastly, in section VI, we express our concluding remarks.

II. DICHROMATIC REFLECTION MODEL

16The DRM [1] is a physical reflection model widely used for color analysis, intrinsic image decomposition in computer vision, and rendering in computer graphics. It states that the color of light reflected at a point from an object is the result of mixing the visual information resulting from two independent reflection processes that occur on the object's surface and body. Therefore, it distinguishes between two types of reflection. Namely body (diffuse) and interface (specular) reflection. The model effectively defines that the observed image upon formation is composed of a linear weighted sum of functions corresponding to each of the types of reflection.

A. HISTORICAL DEFINITION

17The original formulation of the DRM [1] is

183242 VOLUME 8, 2020 in which i, e, g are photometric angles that describe, respectively, the illuminant ''angle of incidence'' i and the viewing ''angle of exitance'' e with regards to the surface normal, and the phase angle g. These terms convey geometrical dependence. m(i, e, g) is a function that returns a magnitude factor. c(λ), on the other hand, conveys color information and is solely dependent on the wavelength λ. c(λ) does not depend on viewing angle. Subindexes '' i '' refer to the interface (specular, illuminant) term, and subindexes '' b '' refer to body (diffuse) term. In other words: for each geometric setting, we note in (1) that an observed luminance can be decomposed into a superposition of body color irrespective of viewing angle which is scaled by a weight map that depends on such angle, and an interface color which is scaled by a different weight map. Specific quantities that each of these components contribute to the composition of the final luminance of the observed picture element are unknown, not identical, and typically differ from one element to another in the image.

1) LIMITATION

19The DRM is not the end-all reflection model, it has its limitations such as violation of the model with regards to different materials with exotic reflection properties e.g. birefringence (oils, etc.). There exist specific modifications of the dichromatic model for many other materials [32] but for the sake of generality and simplicity, they will not be accounted for in this paper.

20Likewise, there exist other reflection models [33], but for simplification (as we have seen, this reflection model simplifies to a linear composition of the image), the model by Shafer is the most commonly used for the single image case, since recovering two intrinsic images from a single input is an ill-posed problem [34].

B. L 1 Extension

21When working with discrete RGB images, there is a need to modify (1) such that it has better tractability. In [26], Tan and Ikeuchi extended the definition of the DRM to the discrete image case. For every pixel p that indexes a corresponding RGB value of an image I, the DRM is defined as

22in which m d is the diffuse weighting map, is the diffuse chromaticity, m s is the specular weighting map, and is the illumination chromaticity. Figure 2 illustrates the relationship shown in (2), in which each sub-figure corresponds to a term in (2). Now, condensing the two summation terms such that

23and

24then we have the two reflection terms visible in Figure 1, in which I d and I s are the diffuse and specular reflection components, respectively. Lastly, Tan and Ikeuchi [26] define chromaticities in terms of L 1 -normalized RGB values:

25in which is the set of all pixels in the RGB image I.

1) NOTATION

26The following terms are m × n × 3-sized matrices: I, , ∈ R m×n×3 . These are displayed in boldface font. The following are m × n-sized matrices: m d , m s ∈ R m×n . These appear in italics.

27Pixel p indexes rows and columns m, n such that I(p) ∈ R 3 specifies vector triplets (e.g., RGB or YCbCr) at location p. When a relation is shown for pixel p, we imply it applies for all of the pixels p ∈ .

28Variables and notation in subsection II-A (HISTORICAL DEFINITION) were directly reproduced from the original model for historical context purposes. We advise the reader to keep track of variables and notation only from subsection II-B (L 1 Extension) onward.

2) ILLUMINANT NORMALIZATION

29As a simplifying measure, for the proposed method we assume that was already normalized regarding the illuminant in a preprocessing step and is constant for every p. Illuminant normalization or color constancy [35] refers to the non-trivial problem of illuminant color estimation and normalization. To proceed with normalization, we refer to one VOLUME 8, 2020 of the many methods available in the literature that address this open problem [35], [36]. After normalization, becomes

30(4)

III. DARK CHANNEL PRIOR

31In our pipeline, we make use of a two-band specular-free image that is easily obtained via subtraction of the minimum among the three RGB channels from the original image, i.e. the dark channel. This mechanism has been previously explored in [21], [27]- [29]. In this section, we will demonstrate how this prior relates to the DRM and the problem at hand.

A. RELATION TO THE DARK CHANNEL PRIOR IN HAZE REMOVAL

32A celebrated usage of the DCP has been in dehazing, being first introduced and formalized by He et al. [37]. Many following methods then used such prior to approach the dehazing problem [38]. It should be noted that the DCP which we make use of is not the same as the one popularized by He et al. [37]. Their formulation was based on natural image statistics and disposition of saturation of the colors in an image neighborhood. Concretely, the original DCP is the minimum channel after order-statistic minimum filtering with a sliding window.

33The DCP applied to the highlight removal problem follows a different logic and has different roots. It is simply the minimum among the three RGB channels. Briefly, this prior is explained by the fact that after illuminant normalization, (p) becomes constant and is assumed uniform for every pixel. The minimum between the three channels is a composition of such constant and the minimum diffuse color value for that region. We present a demonstration for this relation in subsection III-C. Also, the PSF representation obtained via DCP has identical geometrical features to I but presents no specular features. In the following subsection, we detail the PSF image.

B. PSEUDO-SPECULAR-FREE IMAGE

34In this subsection, we define the dark channel and how to generate the PSF image. Starting from the L 1 DRM extension expressed by (2), we expose the RGB vector elements of each term.

35The minimum among the three RGB values is

36Considering the decomposition in (2) for I c (p), we have that We know from (4) that (p) after normalization is uniform for all pixel values and of constant value among the three RGB channels. Thus, inserting (4) into (7), it yields that

37in which

38denotes the minimum chromaticity.

39In summary, since (p) is constant, the minimum is the constant itself. The weight maps do not have color information, so they also are not computed in the minimum operation. Also, (8) is of notice because from it we can effectively infer that the specular component, under conditions of illuminant normalization, is wholly contained in I min .

40Finally, the PSF imageĨ is simply the original image I minus I min entry-wise, i.e.

41in which˜

42denotes the distorted PSF chromaticity. The first relation in (9) is shown in Figure 3. Noticeably, m s (p) is not present anymore and the representation is specular-free. Furthermore, m d (p) is unaltered.

C. HIGHLIGHT REMOVAL MECHANISM

43Previous methods in literature have made extensive use of the PSF representation as an intermediate step for the final objective of highlight removal. Here, we will define the highlight removal mechanism which makes it possible. As defined in subsection III-B, the PSF representationĨ is the original image minus the dark channel (9). We seek to understand how the diffuse component I d is decomposed with respect to the PSF imageĨ. To obtain

44it suffices to add [1, 1, 1] T to write the implicit expansion of min (p) (a scalar) to an RGB triplet. In terms of a L 1 -normalized chromaticity

45such that

46Although this was a relatively simple derivation, it is shown for demonstration purposes: we can rewrite the true diffuse component in terms of the PSF image plus a diffuse map term that scales the minimum true diffuse chromaticity-which is represented in the same chromatic basis as the illuminant. This is the strong mechanism that is much explored: the true diffuse component can be obtained from a composition of the PSF image and another term that possesses another basis (namely, ). See Figure 4 for a visual aid of the DRM decomposition of the true diffuse component I d with respect to the PSF image. In Figure 4, '' '' denotes the Hadamard product (entry-wise matrix multiplication).

47Concretely, methods that make use of the PSF representation-such as the proposed approach-attempt to estimate the second component in (11). Ours do so by histogram matching the PSF luma to the original luma in a perceptually coded color space.

D. YCBCR COLOR SPACE

48The YUV family of color spaces is especially common in image processing pipelines [11]. Specifically, the YCbCr color space is included in the ITU-R BT.601 [39] for encoding video signals for digital television. The conversion from RGB to YCbCr and the inverse conversion are also defined in the ITU-R BT.601-7 [39] and both can be seen as a linear change of color space basis.

49In the context of the DCP, the exploited property of this color space is that luma values-the Y channel-encode grayscale intensity values: the Y basis vector in linear RGB lies on the same direction as the illuminant after normalization. It is an apt basis for operating on: as demonstrated on the previous section through (11), starting from the PSF representation (9), we only need to operate on grayscale intensity values to obtain the true diffuse component.

50Moreover, the Cb and Cr channels are invariant to specularity. The YCbCr to RGB conversion encodes color differences in such a way that equal RGB values represented in the Cb and Cr channels sum to zero in the forward transform. This is trivially verifiable by inspection of the sum along the rows of the direct transform matrix defined in [39]. Therefore, a scalar subtraction (similarly, an RGB vector of equal values) from all three RGB channels poses no change to the Cb and Cr channels. See section A for more information.

51Since the PSF representation knowingly contains no specular component information (9) andĨ cb = I cb andĨ cr = I crbecause the original image only differs in grayscale intensities from the PSF image-we note that the Cb and Cr channels of the original image also present no specular information. Consequently, we can make use of the transformation to this color space and restrict our operations to the luma channel, then transform back to the original RGB color domain. The Cb and Cr channels are simply propagated from the original image.

52Lastly, we note that other color spaces that aspire to encode for perceptual uniformity-most notoriously CIELAB [40]do so in a bijective non-linear mapping fashion. Therefore, pixel-wise value transformations of perceptually-encoded luminosity values in this color space won't be linear in RGB domain. Thus, the DRM assumption won't be valid.

IV. PROPOSED METHOD

53In this section, we detail the proposed method from the viewpoint of the flow of data. Also, in Figure 5, we present the flowchart that contains the image processing pipeline we devised and implemented for our method.

54The pipeline is as follows. First, we obtain the PSF imageĨ via (9). Then, the original image I and its PSF representatioñ I are respectively converted to YCbCr and Y, by [39]. We now have I y , I cb , I cr , andĨ y , respectively. Then, we match the luma of the PSF imageĨ y , using as reference the distribution of diffuse candidates from the original image's luma U • I y , in which U denotes a Boolean mask that selects such candidates based on a detection criterion (16), and ''•'' denotes the masking operation.

55After histogram matching,Ĩ hm y is obtained fromĨ y . It follows thatĨ hm y presents the same geometrical features as the original image, but, being specified as an intensity transformation from a PSF image, it approximates the diffuse VOLUME 8, 2020 image's luma channel, therefore approximating the second term in (11).

56Next, we take advantage of the fact that matched values cannot exceed values in the original luma, therefore we take the minimum between the original luma I y andĨ hm y . This can be used to remove wrong estimates of diffuse intensities iñ I hm y , yielding I d,y , the diffuse luma estimate.

57Finally, the diffuse luma estimate I d,y is then used along with I cb and I cr -the original image's Cb and Cr channels-for transformation back to RGB color space via transformation from YCbCr to RGB [39]. This yields I d , the recovered diffuse component estimate.

58We re-emphasize that Figure 5 closely follows the textual description given above. In the two following subsections, we provide additional description on the histogram matching and the binary threshold mask blocks.

A. HISTOGRAM MATCHING

59Concretely, the main driver of the proposed method is histogram matching. The choice of employing a histogram matching block is based on the fact that we specify an intensity transformation from a PSF representation. As shown through (11), it is possible to approximate the true diffuse component by finding an offset factor with the same basis as the illuminant and adding it to the PSF image. Matched PSF intensities are specular free, so this is a mechanism of approximating the second term in (11).

60For that, in the proposed method, the histogram matching block matches the distribution of luma intensity values from the PSF image, taking as reference the luma distribution from the original image. The distributions are matched by calculating an intensity transformation that maps the PSF luma, such that the resulting histogram approximately matches in distribution the histogram obtained from the original image luma. We refer to algorithms available in literature such as [41] which can be used to implement this image processing block. In Figure 6, we present two examples of histogram matching in our proposed approach.

61Besides, histogram matching, although a simple concept, is very powerful and has also seen recent applications. New histogram specification algorithms have been developed for color image enhancement, e.g. by Nikolova and Steidl [42]. While also, direct applications have been successful for stereoscopic cinema scene matching from multiple cameras such as the work by Bertalmío and Levine [43].

1) DISCRETE HISTOGRAM TRANSFER

62There is another viewpoint to the problem of histogram matching. Notably, there exists a celebrated discrete optimal transport solution which is given by assignment when J and J ref possess equal dimensions. This approach has been explored, for instance, in midway image equalization [44], [45]. This equivalent viewpoint also supports the fact that under the circumstances of this problem (1D assignment of same-sized vectors considering a lexicographic image representation), histogram matching is optimal and given by assignment. Concretely, histogram matching in this case consists simply of assigning J the sorted values of J ref in the sequential index positions that order J . We refer to [45] for a practical implementation.

63However, memory access for index sorting is neither cheap nor fast, therefore we opt for the implementation of the histogram matching block via LUT construction and LUT mapping. This is also the direction taken by [45] after having assessed the memory access cost of the sorting approach.

B. DETECTOR

64We devised a detector block which we have included inside the pipeline of the proposed method. Its purpose is to improve the results of the histogram matching block. Its precise location is illustrated in Figure 5. Previous studies by Shen et al. [28] and Shen and Cai [29] considered the detection problem from a single threshold perspective. These articles have had their methods incorporated into other works cited herein [14], [15]. In [28], [29], the authors needed a processing block for the election of purely diffuse and mixed specular-diffuse regions, so that they could proceed with their respective separation methods. Reference [28] simply compared the value of image pixels to the average value of the minimum image. In follow-up work, [29] considered an additional term: standard deviation multiplied by a parameter that depends on how pervasive the specular phenomenon throughout the image is. It was not specified in [29] which distribution they assumed for calculation of the standard deviation. To simplify the computation of this parameter, we propose a detector on the likes of [29], however, with a different distribution model for the intensity values of the dark channel I min .

65As we have shown in the equation of the dark channel (8), the dark channel I min contains the entirety of the specular component in an image with normalized illuminant. Therefore, a detector based on I min is indeed an effective classification for most images. Intensity values can be traced back to energy in image formation [1], so an intensity-domain threshold selects regions based on an energy criterion. Notice that it is not possible to segment an image in purely diffuse and specular regions in a binary threshold manner since those are additive under a DRM assumption. Nevertheless, this threshold operation assumes the important role of identifying regions that are more diffuse regarding other regions from the image. In our framework, we can obtain better results in the histogram matching step detailed in subsection IV-A by detecting and removing specular outliers from the distribution that is used as the reference for matching.

1) DARK CHANNEL INTENSITY DISTRIBUTION APPROXIMATION

66We know from previous works by He et al. [37] that the DCP for natural images has a fast-growing asymptotic cumulative distribution function (CDF). Reference [37], however, VOLUME 8, 2020 used an order-statistic minimum filter before obtaining this statistic, shifting the distribution towards zero values. As shown in the equation of the PSF (9), the DCP for DRM-based highlight analysis methods is different, since no statistic-order minimum filter is used: every pixel from the minimum image is simply the minimum between all three channels (7). Nevertheless, He et al. [37] allowed us to obtain intuition to which distribution to assume. The fast growth pattern for CDFs is typical of gamma-like distributions, so we model the probability density function (PDF) of I min as an exponential distribution. The exponential distribution is a single-parameter distribution that is a special case of the gamma distribution. The fact that only a single parameter is needed to define the statistical moments used for thresholding is useful for simplifying computations. Its PDF is defined as:

67Its first statistical moment and its variance for a random variable X with n x samples are:

68and

69Furthermore, the exponential distribution has a simple rate parameter λ estimator:

70Additionally, the standard deviation is defined as the squareroot of Var[X ] (14), which is equal to E[X ] (13).

71To validate the chosen model, we propose a distribution analysis of the MIT Intrinsic Images dataset [46]. The MIT dataset consists of 20 different objects under 10 different light sources. The light is normalized, and images are in linear RGB values, therefore are appropriate for analysis under the DRM. Analysis of distributions of random Internet images is not applicable since they may be gamma-corrected, and their illumination may not be normalized. In [37], this was possible because their goal was to validate this prior to the objective of atmosphere transmittance estimation. This does not apply to the herein method, hence, we selected this dataset for intrinsic images for further analysis. An object mask is available with the dataset, and we collected the intensity distribution of the minimum channel of valid object pixels (ignored background distributions). Results are shown in Figure 7. Visibly, both might seem sub-optimal fits, but the exponential distribution is seldom a single-parameter distribution and it follows more closely the data distribution for lower and higher intensity values which leads to better a threshold for high-valued outliers, that is the objective for the herein method.

2) MASK U

72We now define the following Boolean threshold mask:

73In which β is the mean value of I min ,

74For moderately specular images, upon extensive testing, we found empirically that η = 4 sufficed. It should be noted that this block is optional, and offers quality improvement when we have prior knowledge that an image is or has mild specular features. To bypass this block altogether, simply set η = ∞, or not implement it at all, effectively matching the distribution of luma intensities of the PSF imageĨ y to the distribution of the original image's luma I y . This also guarantees components' separation, however allowing minor error.

75Since it offered relevant quality improvements in the proposed method for the Shen and Zheng dataset [31], results reported for this dataset in the following section were obtained with η = 4.

3) BIG IMAGES

76For large images that are too inhomogeneous and with large contrasting macroregions, we propose a pixel-wise threshold value defined as the value of a box-filtered (i.e., moving average) version of the image. The box filter must have a big enough kernel size that fully encompasses specular highlight microregions. A constant-time space varying box filter is defined in [47]. To summarize: instead of defining β in (16) a constant scalar value for all p, one should define it pixel-wise as β box = I min h. (18) in which h is a low-pass filter kernel, and denotes the 2D correlation operation applied for every channel.

V. EXPERIMENTAL RESULTS

77In this section, we present the experimental results of the proposed method. First, we analyze results regarding the quality of the recovered diffuse component. For that, we use the peak signal-to-noise ratio (PSNR) and the SSIM metrics to evaluate the quality, using a ground truth as reference. We use the dataset by Shen and Zheng [31], where both the original images and their ground truths are available. This dataset is composed of linearly-encoded, illuminant-normalized, RGBvalued images, therefore its images are apt for separation. This dataset is commonly used in technical works. We also analyze the results of recovery in an AWGN scenario. Moreover, we show runtime metrics for two implementations of the proposed method. Visual results for the Shen and Zheng dataset are shown. More visual results from other datasets, and also from public domain photography are included.

78In Table 1, the quantitative results of the quality of the recovered diffuse component from other methods available in the literature [22]- [26], [28], [30], [31] were compiled for comparison. Whenever presented, we kept the best peerreported result amongst different works. In Table 1 in which numel returns # × #{r, g, b} = m × n × 3, the total number of elements in I.

79The PSNR results we obtained in Table 1 are outstanding because our method has superseded the state of the art in three images for this metric: animals, cups, and masks. We regard our high PSNR metrics on account of the preservation of the input image's original chroma (i.e., the color difference channels Cb and Cr) which are not distorted by the specular phenomenon. This treatment reduces global error.

80We also quantitatively analyzed the performance of our method with regards to the SSIM metric (higher is better). It is a scalar that defines the structural similarity between two given images and was introduced by Wang et al. in [48]. We also note that SSIM incorporates a measure of perceived structural change. Similarly, we compiled selfreported results available in the literature for selected stateof-the-art methods. The results are also shown in Table 1.

81The SSIM results in Table 1 present good performance, and supersede two images: animals and cups. On the other images, the SSIM differences are twofold: the Guo et al. [25] method considers several constraints in the optimization which yield better results specifically for the masks image, which is slightly corrupted in the highlight regions because of non-linearities caused by the sensor at image acquisition. The second difference is that the fruit image has a different background in the true diffuse (ground truth) from the original image, which greatly increases our method's error in both PSNR and SSIM because we preserve and propagate the chroma of the original image.

82Besides, we have tested perfect separation under the DCP assumption (11), taking only min (true minimum chromaticity) and m d (diffuse weight map) from the ground truth's diffuse image, and calculatingĨ (PSF image) from the original image via (9). Ideal separation values considering this assumption are shown in the bottom row in Table 1.

83In Table 2, we analyze the quality of the diffuse component recovered in the presence of AWGN in terms of PSNR. It is an uncommonly reported result, therefore we only compared it to Shen and Zheng [31] which is, to date, the most performing method. Since the core of our method is a global intensity transformation via histogram matching, it is robust to perturbations. This visible in Table 2 by the superior results in most of the images, and in all images for a higher noise variance.

84Next, for the analysis of average execution time, we compared an implementation of our method in MATLAB 9.6 and another in C++ using OpenCV 2.4, with the method by Shen and Zheng [31], which is the fastest amongst the compared works that have public source code available. 1 The results are shown in Table 3. The results shown regard an average of over 100 trials, in the same manner as [31]. For a fair comparison, results for [31] are after compilation of the provided source code in the same machine as the one used to compile and generate the time reports of our method. For a complete reference, timing results were obtained for a personal computer running Windows 10 1903 with an i7-3632QM (up to 3.20 GHz CPU) and 8 GB DDR3 1600 MHz physical RAM.

85Regarding the runtime metrics in Table 3, we duly note that our approach is much faster than the fastest method to date. The low average processing time, even at a high-level computing language such as MATLAB, is due to the fast generation of the contrast function used to map the intensity values to perform the histogram matching step via LUT. Also, we add that these implementations are non-optimized CPUbased code. Shen and Zheng's method [31] is slower because it has two k-means clustering iterations and a sorting step, both of which are computationally costly in comparison to our method which is LUT-based.

86In Figure 8, visual results for the Shen and Zheng dataset were exported for qualitative analysis. We compare the proposed method to the two best methods [30], [31] among the works available online. Default settings were used per how their source code was distributed. Visibly, all of the results are very similar. This is because the images of this dataset were taken in controlled environments, and most single-image methods operate under the DRM (similar mechanisms). Our histogram matching approach presents no clustering artifacts, which results from Shen and Zheng [31] may present. However, ours may not always present smooth results, since there is no filtering involved. For instance, the masks image of Yang et al. [30] has better visual quality, even though it has worse quality metrics.

87In Figure 9, we evaluate test images from Tan and Ikeuchi [26] and Shen and Zheng [31]. The images included are fish, toys, rabbit and watermelon. These images are widely used in the single image highlight removal community for visual benchmarking. They are specific test images taken in controlled environments. Also, the values in the intensity domain are linear to the light reflected. This is because they were taken with precision CCD cameras without gamma encoding. We refer to the original works [26], [31] for further details on the experimental setup used to obtain the 1 images. Likewise, the results shown in Figure 9 are similar among the state-of-the-art methods. This further shows that separation is efficient in controllable environments. Methodspecific artifacts are especially visible in the watermelon image. Regardless, our method in this image has no artifacts.

88In Figure 10 we have included results for natural image photography. These are public domain stock photos available online. 2 We have analyzed visual results for the images green-pear, gourds-and-pumpkin, empty-aluminum-tablesand-chairs, and red-vintage-car. They were taken in uncontrolled environments and we cannot know precisely the camera response and post-processing applied to them. Thus, we have roughly attempted to undo the gamma correction before executing the highlight removal methods. We have done so by applying a power-law with γ = 2.2 to the intensity of these images. The procedure is undone after conducting highlight removal. Generally, for natural images, gamma correction should be reverted and the illuminant must be also normalized before separation-afterward, both operations can be undone to preserve appearance. In these images, we note that, while none of the methods present great results, the methods can be used for the mitigation of the specular reflection. Ours is less aggressive than Yang et al. [30], while improving or being comparable to Shen and Zheng [31].

89For completeness, we refer to the original papers of all compared-to methods for visual evaluation of their results.

A. LIMITATIONS

90Our method shares the same limitations as other methods based on the DRM, as well as all of the herein comparedto methods [22]- [26], [28], [30], [31]. This is not all due to the shortcomings of these methods but from the assumptions made in the physical reflection model [1] so that the single image problem has better tractability. In this context, we provide a descriptive list of known limitations, including a short description of how they could be mitigated by preprocessing blocks. These blocks form independent lines of research. They are, however, outside the scope of this work.

1) INFORMATION CORRUPTION

91We assume that the input image has no information corruption. Should it present clip or loss of color information, our method may not operate properly. This is a problem of correcting data corruption and should be dealt with beforehand. For that, we refer to methods that correct this loss by making use of smoothness priors of color components such as [49], [50].

2) ILLUMINANT NORMALIZATION

92As shown in section III, we assume that the illumination is normalized before processing. Thus, our method is as robust as the normalization of the illuminant. It can be a challenging step for all illuminants, given the plethora of illumination sources commonly encountered [51] and should be addressed properly beforehand by a color constancy algorithm [35], [36].

3) ACHROMATIC REGIONS

93Methods based on chromaticity analysis under the DRM cannot handle achromatic regions. These regions have no color information. Thus, originally grayscale regions become dark after processing [26]. Tan and Ikeuchi [26] propose thresholding them before processing. Qualitatively, this means that these methods have weak visual quality for human and portrait images. As visible in Figure 11, our method also performs poorly in these images. Knowingly, there exist other methods that are specific to the specular removal problem in skin tones and portrait images [52]. They involve optimizing VOLUME 8, 2020 an objective function composed of a data term and a smoothness term, in which they incorporate the reflection model, illumination modeling, and skin color modeling. However, these approaches are neither fast nor intended for generalpurpose processing as ours is.

B. FUTURE WORKS

94There are many directions in which the highlight removal problem could depart. We have mapped four main points that can be explored by future works. They are as follows.

1) SALIENCY

95A challenging advancement to the open problem of specular highlight removal [2] would be to incorporate saliency [53]. The highlight removal problem has yet to be formulated in a lower vision framework with regards to saliency. Diffuse reflection is often used as a subjective term to describe lowfrequency, low-parametric reflection content [3] and specular highlights are a feature that is inherent to the perception of shape [8], [9], therefore a link could be somehow established. It is clear that there is a perception prior that is not being considered: the integration of such prior would help further information about this problem.

2) SPARSE MODELING

96A contemporary trend in signal processing is sparse modeling [54]. Future work could incorporate the sparsity prior which is already being used in recent highlight removal methods [22], [25]. These two works have explored sparsity in the number of colors of the input image. We suggest that a future approach should also explore sparsity in other domains.

3) IMPROVING EXISTING METHODS

97Improvements such as proposed by Yamamoto and Nakazawa [16] can be very helpful for the mitigation of artifacts. Other forms of enhancing the diffuse and specular components' separation could be sought after, given that the limitations presented are in most part common to the numerous methods available.

4) VIDEO

98Processing blocks to provide smoothly varying highlight removal considering temporal relations between frames need to be developed.

VI. CONCLUSION

99We have proposed a method for single image highlight removal that is on par with state-of-the-art developments. It has a strong foundation on a physical reflection model and is the simplest yet proposed. The core idea behind it is histogram matching a pseudo-specular-free representation of the image in a perceptually-coded color space. We have detailed a straightforward and reproducible pipeline for the proposed method. Then, we compared our experimental results to stateof-the-art methods. The results have shown that ultimately the proposed method surpassed most self and peer-reported metrics and proved to be a fast and competitive contribution. Finally, we presented commentary for improvements to the proposed framework and called for future works. For such, we have also included a full literature review that covered contemporary applications in image enhancement in consumer electronics to encourage follow-up works.

APPENDIX A

100We'd like to show that the Cb and Cr channels in the YCbCr color space [39] are specular-free. First, we define A, the direct transform matrix which takes us from RGB to YCbCr

101for floating-point type images in the [0, 1] interval. Considering the DRM decomposition of the image I into diffuse and specular reflection components, and taking into account that the illumination has been normalized such that the specular component is of equal value among the three RGB channels, we have that

102The direct transformation of I(p), given by (22)

103which leads to our second claim in subsection III-D thatĨ cb = I cb andĨ cr = I cr .

104Lastly, we take notice of A −1

105The first column in A −1 is the Y basis in RGB values. Since (p) = 1 3 , 1 3 , 1 3 T , we note that (p) lies on the same basis as the luma.

참고문헌 47건

  1. The Reproduction of Specular Highlights on High Dynamic Range Displays Color and Imaging Conference · 2006 10.2352/cic.2006.14.1.art00061
  2. Specularity Removal in Images and Videos: A PDE Approach Lecture notes in computer science · Springer Science+Business Media · 2006 10.1007/11744023_43
  3. Geometry From Specularities 2005 10.1109/ccv.1988.590016
  4. Separation of reflection components by sparse non-negative matrix factorization Computer Vision and Image Understanding · Elsevier BV · 2015 10.1016/j.cviu.2015.09.001
  5. Dichromatic reflection models for a variety of materials Color Research & Application · Wiley · 1994 10.1002/col.5080190408
  6. Color matching for stereoscopic cinema 2013 10.1145/2466715.2466721
  7. Color constancy through inverse-intensity chromaticity space Journal of the Optical Society of America A · Optica Publishing Group · 2004 10.1364/josaa.21.000321
  8. Using color to separate reflection components Color Research & Application · Wiley · 1985 10.1002/col.5080100409
  9. Fast Hue and Range Preserving Histogram Specification: Theory and New Algorithms for Color Image Enhancement IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2014 10.1109/tip.2014.2337755
  10. &lt;title&gt;Photometric Stereo: A Reflectance Map Technique For Determining Surface Orientation From Image Intensity&lt;/title&gt; Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 1979 10.1117/12.956740
  11. Midway Image Equalization Journal of Mathematical Imaging and Vision · Springer Science+Business Media · 2004 10.1023/b:jmiv.0000035178.72139.2d
  12. Determining Surface Orientations of Specular Surfaces by Using the Photometric Stereo Method IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1981 10.1109/tpami.1981.4767167
  13. Fast Separation of Reflection Components using a Specularity-Invariant Image Representation International Conference on Image Processing · 2006 10.1109/icip.2006.312650
  14. Chromaticity-based separation of reflection components in a single image Pattern Recognition · Elsevier BV · 2008 10.1016/j.patcog.2008.01.026
  15. Efficient and Robust Specular Highlight Removal IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2014 10.1109/tpami.2014.2360402
  16. Computational Color Constancy: Survey and Experiments IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2118224
  17. Separating reflection components of textured surfaces using a single image IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2005 10.1109/tpami.2005.36
  18. Ground truth dataset and baseline evaluations for intrinsic image algorithms 2009 10.1109/iccv.2009.5459428
  19. Fast Summed‐Area Table Generation and its Applications Computer Graphics Forum · Wiley · 2005 10.1111/j.1467-8659.2005.00880.x
  20. Simple and efficient method for specularity removal in an image Applied Optics · Optica Publishing Group · 2009 10.1364/ao.48.002711
  21. Single Image Haze Removal Using Dark Channel Prior IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2010 10.1109/tpami.2010.168
  22. A model of saliency-based visual attention for rapid scene analysis IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1998 10.1109/34.730558
  23. A Survey of Sparse Representation: Algorithms and Applications IEEE Access · Institute of Electrical and Electronics Engineers · 2015 10.1109/access.2015.2430359
  24. Correction of Clipped Pixels in Color Images IEEE Transactions on Visualization and Computer Graphics · Institute of Electrical and Electronics Engineers · 2010 10.1109/tvcg.2010.63
  25. Image quality assessment: from error visibility to structural similarity IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2004 10.1109/tip.2003.819861
  26. Deriving intrinsic images from image sequences 2002 10.1109/iccv.2001.937606
  27. Specular Reflection Separation Using Dark Channel Prior 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2013 10.1109/cvpr.2013.192
  28. Real-time highlight removal using intensity ratio Applied Optics · Optica Publishing Group · 2013 10.1364/ao.52.004483
  29. High‐dynamic range image generation from single low‐dynamic range image IET Image Processing · Institution of Engineering and Technology · 2015 10.1049/iet-ipr.2014.0782
  30. A reflectance model for computer graphics ACM SIGGRAPH Computer Graphics · ACM SIGGRAPH · 1981 10.1145/965161.806819
  31. A review on dark channel prior based image dehazing algorithms EURASIP Journal on Image and Video Processing · Springer Nature · 2016 10.1186/s13640-016-0104-y
  32. Correction of Saturated Regions in RGB Color Space International Journal of Computer Graphics & Animation · Academy and Industry Research Collaboration Center · 2016 10.5121/ijcga.2016.6201
  33. Implementation of the Midway Image Equalization Image Processing On Line · Image Processing On Line · 2016 10.5201/ipol.2016.140
  34. Specular Reflection Separation With Color-Lines Constraint IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/tip.2017.2675204
  35. Specular Highlight Removal in Facial Images 2017 10.1109/cvpr.2017.297
  36. Specularity, Specular Reflectance Springer eBooks · Springer Nature · 2014 10.1007/978-0-387-31439-6_538
  37. HDR image from single LDR image after removing highlight 2023 IEEE International Conference on Consumer Electronics (ICCE) · 2018 10.1109/icce.2018.8326106
  38. Single Image Highlight Removal with a Sparse and Low-Rank Reflection Model Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01225-0_17
  39. [papers] General Improvement Method of Specular Component Separation Using High-Emphasis Filter and Similarity Function ITE Transactions on Media Technology and Applications · 2019 10.3169/mta.7.92
  40. Fast and High Quality Highlight Removal From a Single Image IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2016 10.1109/tip.2016.2605002
  41. (제목 없음) International Journal of Computer Vision · Springer Science+Business Media · 1997 10.1023/a:1007954719939
  42. Diffuse Reflectance Springer eBooks · Springer Nature · 2014 10.1007/978-0-387-31439-6_533
  43. Lambertian Reflectance Springer eBooks · Springer Nature · 2014 10.1007/978-0-387-31439-6_534
  44. Illumination Sources Springer eBooks · Springer Nature · 2012 10.1007/978-1-84996-169-1_7
  45. Consumer Imaging I: Processing Pipeline, Focus, and Exposure Handbook of Visual Display Technology · 2016 10.1007/978-3-319-14346-0_172
  46. Image Enhancement Handbook of Visual Display Technology · 2016 10.1007/978-3-319-14346-0_198
  47. Digital Image Processing CRC Press eBooks · Informa · 2018 10.1201/9781315152325-4