Single Image Highlight Removal for Real-Time Image Processing Pipelines
필름·전자재료 · (13) 프리즘 필름
기본 정보
- 저자
- 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 활용 포인트
- –
- 평가 입력
- –
초록
본문 71,788자
본문 펼치기
섹션 본문 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건
- The Reproduction of Specular Highlights on High Dynamic Range Displays Color and Imaging Conference · 2006 10.2352/cic.2006.14.1.art00061
- Specularity Removal in Images and Videos: A PDE Approach Lecture notes in computer science · Springer Science+Business Media · 2006 10.1007/11744023_43
- Geometry From Specularities 2005 10.1109/ccv.1988.590016
- 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
- Dichromatic reflection models for a variety of materials Color Research & Application · Wiley · 1994 10.1002/col.5080190408
- Color matching for stereoscopic cinema 2013 10.1145/2466715.2466721
- Color constancy through inverse-intensity chromaticity space Journal of the Optical Society of America A · Optica Publishing Group · 2004 10.1364/josaa.21.000321
- Using color to separate reflection components Color Research & Application · Wiley · 1985 10.1002/col.5080100409
- 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
- <title>Photometric Stereo: A Reflectance Map Technique For Determining Surface Orientation From Image Intensity</title> Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 1979 10.1117/12.956740
- Midway Image Equalization Journal of Mathematical Imaging and Vision · Springer Science+Business Media · 2004 10.1023/b:jmiv.0000035178.72139.2d
- 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
- Fast Separation of Reflection Components using a Specularity-Invariant Image Representation International Conference on Image Processing · 2006 10.1109/icip.2006.312650
- Chromaticity-based separation of reflection components in a single image Pattern Recognition · Elsevier BV · 2008 10.1016/j.patcog.2008.01.026
- Efficient and Robust Specular Highlight Removal IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2014 10.1109/tpami.2014.2360402
- Computational Color Constancy: Survey and Experiments IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2118224
- 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
- Ground truth dataset and baseline evaluations for intrinsic image algorithms 2009 10.1109/iccv.2009.5459428
- Fast Summed‐Area Table Generation and its Applications Computer Graphics Forum · Wiley · 2005 10.1111/j.1467-8659.2005.00880.x
- Simple and efficient method for specularity removal in an image Applied Optics · Optica Publishing Group · 2009 10.1364/ao.48.002711
- 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
- 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
- A Survey of Sparse Representation: Algorithms and Applications IEEE Access · Institute of Electrical and Electronics Engineers · 2015 10.1109/access.2015.2430359
- 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
- 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
- Deriving intrinsic images from image sequences 2002 10.1109/iccv.2001.937606
- Specular Reflection Separation Using Dark Channel Prior 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2013 10.1109/cvpr.2013.192
- Real-time highlight removal using intensity ratio Applied Optics · Optica Publishing Group · 2013 10.1364/ao.52.004483
- 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
- A reflectance model for computer graphics ACM SIGGRAPH Computer Graphics · ACM SIGGRAPH · 1981 10.1145/965161.806819
- 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
- 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
- Implementation of the Midway Image Equalization Image Processing On Line · Image Processing On Line · 2016 10.5201/ipol.2016.140
- Specular Reflection Separation With Color-Lines Constraint IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/tip.2017.2675204
- Specular Highlight Removal in Facial Images 2017 10.1109/cvpr.2017.297
- Specularity, Specular Reflectance Springer eBooks · Springer Nature · 2014 10.1007/978-0-387-31439-6_538
- HDR image from single LDR image after removing highlight 2023 IEEE International Conference on Consumer Electronics (ICCE) · 2018 10.1109/icce.2018.8326106
- 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
- [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
- 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
- (제목 없음) International Journal of Computer Vision · Springer Science+Business Media · 1997 10.1023/a:1007954719939
- Diffuse Reflectance Springer eBooks · Springer Nature · 2014 10.1007/978-0-387-31439-6_533
- Lambertian Reflectance Springer eBooks · Springer Nature · 2014 10.1007/978-0-387-31439-6_534
- Illumination Sources Springer eBooks · Springer Nature · 2012 10.1007/978-1-84996-169-1_7
- Consumer Imaging I: Processing Pipeline, Focus, and Exposure Handbook of Visual Display Technology · 2016 10.1007/978-3-319-14346-0_172
- Image Enhancement Handbook of Visual Display Technology · 2016 10.1007/978-3-319-14346-0_198
- Digital Image Processing CRC Press eBooks · Informa · 2018 10.1201/9781315152325-4