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

Pixel-wise orthogonal decomposition for color illumination invariant and shadow-free image

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

기본 정보

저자
  1. Liangqiong Qu
  2. Jiandong Tian
  3. Zhi Han
  4. Yandong Tang
DOI
10.1364/oe.23.002220
저널
Optics Express
발행년도
2015
발행기관
Optica Publishing Group
피인용수
18
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1364/oe.23.002220
토픽
Color Science and Applications
OpenAlex ID
W2004801908

평가 내용

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

초록

In this paper, we propose a novel, effective and fast method to obtain a color illumination invariant and shadow-free image from a single outdoor image. Different from state-of-the-art methods for shadow-free image that either need shadow detection or statistical learning, we set up a linear equation set for each pixel value vector based on physically-based shadow invariants, deduce a pixel-wise orthogonal decomposition for its solutions, and then get an illumination invariant vector for each pixel value vector on an image. The illumination invariant vector is the unique particular solution of the linear equation set, which is orthogonal to its free solutions. With this illumination invariant vector and Lab color space, we propose an algorithm to generate a shadow-free image which well preserves the texture and color information of the original image. A series of experiments on a diverse set of outdoor images and the comparisons with the state-of-the-art methods validate our method.

본문 64,872자

본문 펼치기
## Pixel-wise orthogonal decomposition for color illumination invariant and shadow-free image Liangqiong Qu, <sup>1</sup> <sup>_,_</sup> <sup>2</sup> Jiandong Tian, <sup>1</sup> Zhi Han, <sup>1</sup> and Yandong Tang <sup>1</sup> <sup>_,∗_</sup> 1 _State Key Laboratory of Robotics, Shenyang Institute of Automation, Chinese Academy of_ _Sciences, Shenyang, 110016, China_ 2 _University of Chinese Academy of Sciences, Beijing, 100049, China_ _∗Corresponding author: ytang@sia.cn_ Abstract: In this paper, we propose a novel, effective and fast method to obtain a color illumination invariant and shadow-free image from a single outdoor image. Different from state-of-the-art methods for shadow-free image that either need shadow detection or statistical learning, we set up a linear equation set for each pixel value vector based on physically-based shadow invariants, deduce a pixel-wise orthogonal decomposition for its solutions, and then get an illumination invariant vector for each pixel value vector on an image. The illumination invariant vector is the unique particular solution of the linear equation set, which is orthogonal to its free solutions. With this illumination invariant vector and Lab color space, we propose an algorithm to generate a shadow-free image which well preserves the texture and color information of the original image. A series of experiments on a diverse set of outdoor images and the comparisons with the state-of-the-art methods validate our method. © 2024 Optical Society of America OCIS codes: (100.0100) Image processing; (100.3010) Image reconstruction techniques. References and links 1. E. H. Land and J. J. McCann, “Lightness and retinex theory,” J. Opt. Soc. Am. A 61, 1–11 (1971). 2. Y. Weiss, “Deriving intrinsic images from image sequences,” in “Proc. ICCV,” (IEEE, 2001), pp. 68–75. 3. G. D. Finlayson and S. D. Hordley, “Color constancy at a pixel,” J. Opt. Soc. Am. A 18, 253–264 (2001). 4. S.-S. Lin, K. M. Yemelyanov, E. N. Pugh Jr, and N. Engheta, “Separation and contrast enhancement of overlapping cast shadow components using polarization,” Opt. Express 14, 7099–7108 (2006). 5. C. Jung, W. Kim, and C. Kim, “Detecting shadows from a single image,” Opt. Lett. 36, 4428–4430 (2011). 6. J. T. Barron and J. Malik, “Intrinsic scene properties from a single rgb-d image,” in “Proc. CVPR,” (IEEE, 2013), pp. 17–24. 7. G. Finlayson, C. Fredembach, and M. S. Drew, “Detecting illumination in images,” in “Proc. ICCV,” (IEEE, 2007), pp. 1–8. 8. P.-Y. Laffont, A. Bousseau, S. Paris, F. Durand, and G. Drettakis, “Coherent intrinsic images from photo collections,” ACM Trans. Graph. 31, (2012). 9. P. Laffont, A. Bousseau, and G. Drettakis, “Rich intrinsic image decomposition of outdoor scenes from multiple views,” IEEE Trans. Vis. Comput. Graphics 19, 210–224 (2013). 10. Y. Matsushita, K. Nishino, K. Ikeuchi, and M. Sakauchi, “Illumination normalization with time-dependent intrinsic images for video surveillance,” IEEE Trans. Pattern Anal. Machine Intell. 26, 1336–1347 (2004). 11. I. Huerta, M. Holte, T. Moeslund, and J. Gonzalez, “Detection and removal of chromatic moving shadows in surveillance scenarios,” in “Proc. ICCV,” (IEEE, 2009), pp. 1499–1506. 12. T.-P. Wu and C.-K. Tang, “A bayesian approach for shadow extraction from a single image,” in “Proc. ICCV,” (IEEE, 2005), pp. 480–487. This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. 13. A. Bousseau, S. Paris, and F. Durand, “User-assisted intrinsic images,” ACM Trans. Graph. 28, 130 (2009). 14. E. Arbel and H. Hel-Or, “Shadow removal using intensity surfaces and texture anchor points,” IEEE Trans. Pattern Anal. Machine Intell. 33, 1202–1216 (2011). 15. R. Guo, Q. Dai, and D. Hoiem, “Paired regions for shadow detection and removal,” IEEE Trans. Pattern Anal. Machine Intell. 35, 2956–2967 (2013). 16. J.-F. Lalonde, A. A. Efros, and S. G. Narasimhan, “Detecting ground shadows in outdoor consumer photographs,” in “Proc. ECCV,” (Springer, 2010), pp. 322–335. 17. M. F. Tappen, W. T. Freeman, and E. H. Adelson, “Recovering intrinsic images from a single image,” IEEE Trans. Pattern Anal. Machine Intell. 27, 1459–1472 (2005). 18. J. Zhu, K. G. Samuel, S. Z. Masood, and M. F. Tappen, “Learning to recognize shadows in monochromatic natural images,” in “Proc. CVPR,” (IEEE, 2010), pp. 223–230. 19. G. D. Finlayson, S. D. Hordley, C. Lu, and M. S. Drew, “On the removal of shadows from images,” IEEE Trans. Pattern Anal. Machine Intell. 28, 59–68 (2006). 20. G. D. Finlayson, M. S. Drew, and C. Lu, “Entropy minimization for shadow removal,” Int. J. Comput. Vis. 85, 35–57 (2009). 21. J. Tian, J. Sun, and Y. Tang, “Tricolor attenuation model for shadow detection,” IEEE Trans. Image Process. 18, 2355–2363 (2009). 22. J. Tian and Y. Tang, “Linearity of each channel pixel values from a surface in and out of shadows and its applications,” in “Proc. CVPR,” (IEEE, 2011), pp. 985–992. 23. R. Jain, R. Kasturi, and B. G. Schunck, _Machine Vision_ (McGraw-Hill, Inc., 1995). 24. Q. Yang, K. Tan, and N. Ahuja, “Shadow removal using bilateral filtering,” IEEE Trans. Image Process. 21, 4361–4368 (2012). 25. F. Liu and M. Gleicher, “Texture-consistent shadow removal,” in “Proc. ECCV,” (Springer, 2008), pp. 437–450. 26. J. Shen, X. Yang, Y. Jia, and X. Li, “Intrinsic images using optimization,” in “Proc. CVPR,” (IEEE, 2011), pp. 3481–3487. 27. B. A. Maxwell, R. M. Friedhoff, and C. A. Smith, “A bi-illuminant dichromatic reflection model for understanding images,” in “Proc. CVPR,” (IEEE, 2008), pp. 1–8. 28. M. S. Drew, G. D. Finlayson, and S. D. Hordley, “Recovery of chromaticity image free from shadows via illumination invariance,” in “Proc. ICCV,” (IEEE, 2003), pp. 32–39. 29. S. A. Shafer, “Using color to separate reflection components,” Color Research & Application 10, 210–218 (1985). 30. E. Arbel and H. Hel-Or, “Texture-preserving shadow removal in color images containing curved surfaces.” in “Proc. CVPR,” (IEEE, 2007), pp. 1–8. 1. Introduction Shadows, a physical phenomenon observed in most natural scenes, are problematic to many computer vision algorithms. They often bring some wrong results in edge detection, segmentation, target recognition and tracking. For these reasons, shadow processing and illumination invariant on an image are of great practical significance and have attracted a lot of attentions [1–6]. Some previous works dealt with this problem by utilizing additional information from multiple images [7–9], time-lapse image sequences [2, 10, 11] or user inputs [9, 12, 13]. Although these methods achieve impressive results for illumination invariant and shadow-free image, they may not be applied automatically to a single image. In general, a robust method for illumination invariant and shadow-free on a single image is more favored and challenging. The recent works related to a shadow-free image on a single image can be divided into two categories: methods that need shadow detection and methods that do not need shadow detection. Methods with shadow detection. Most works for shadow-free image often undergo two basic steps: shadow detection and shadow removal [14]. A fair proportion of shadow detection methods are based on shadow features with statistical learning [15–18]. The most commonly used shadow features are intensity, histograms, texture, color ratio, geometry property, and gradient. Lalonde et al. [16] obtained shadow removal results in consumer-grade photographs by a conditional random field (CRF) learning approach on color ratio, texture and intensity distributions. Based on initial segmentation, the method proposed by Guo et al. [15] detects shadows using SVM on shadow features (e.g, texture, chromaticity, and pairwise relation) and then relights each pixel to obtain a shadow-free image. These shadow features may not be robust enough in some applications. For example, shadowed regions are often dark, with less texture This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. and little gradient, but some non-shadowed regions may also have similar characteristics. Due to the lack of robust shadow features, these shadow feature and learning based methods are not always effective, especially in soft shadow regions or some complex scenarios. Besides, all these learning-based methods are usually time-consuming since large complex features are needed to be analyzed for classifiers. Some other works for shadow-free image with shadow detection are based on computing physically-based illumination invariants [19–22]. With a physically-based illumination invariant, Finlayson et al. [19,20] proposed a method to obtain a shadow-free image by shadow edge detection and solving a Poisson’s equation. In [22], we deduced a linear relationship between pixel values of a surface in and out of shadow regions, and then proposed a shadow removal method based on shadow edge detection. In the condition of correct shadow edge detection, the method proposed by Arbel and Hel-Or [14] yields a shadow-free image by finding scale factors to cancel the effect of shadows. All these mentioned methods require shadow edges to be correctly detected. However, automatic edge detection is known to be nonrobust [23], especially in complex scenarios and texture (such as the shadows of leaves and grasses). The defect of these shadow detection based methods is revealed in [24]. Even when the shadows are detected rightly, retaining the original color and texture in a shadow-free image is also a challenging problem [14,25]. Methods without shadow detection. Another effective approach for shadow-free image is intrinsic image via image decomposition. Tappen et al. [17] proposed a learning-based approach to predict the derivatives of reflectance and illumination images. Although this method successfully separates reflectance and shading for a given illumination direction used for training, it is not designed for arbitrary lighting directions [24]. Assuming that the neighboring pixels that have similar intensity values should have similar reflectance, Shen et al. [26] proposed both an automatic and user scribbles method to separate intrinsic image from a single image with optimization. Although their automatic method is able to extract most of the illumination variations, residual shadows remain in the reflectance image and they stated that user scribbles cannot improve the result significantly. Finlayson et al. [20] derived a grayscale shadow-free image by finding the special direction in a 2-D chromaticity feature space. In [22], we obtained a grayscale shadow-free image based on a physical deduced linear model from the view of atmospheric transmittance effects. These derived grayscale shadow-free images have some limitations in real applications due to the loss of color information. Applying narrowband camera sensors in deduction, Maxwell et al. [27] found that a 2-D illumination invariant image can be obtained by projecting the colors (in log-RGB) onto a plane. In their method, the projecting normal vector is determined either from a user input or a 2-D entropy searching, which may have some limitations in real applications. With the assumption of chromatic surfaces, Planckian lighting and narrowband camera sensors, Yang et al. [24] obtained a shadow-free image using bilateral filtering without shadow detection. The comparison results in [24] shows that this method for shadow-free image outperforms Finlayson’s [19] (a classical method for shadow-free image that need shadow detection). However, based solely on chromaticity, this method may not be valid on neutral regions when the neighboring regions of the image are also neutral [24]. The experimental results presented in section 4 of this paper also show that bilateral filtering often makes the method in [24] fail to recover a shadow-free image from the image with darker shadows or in which shadows pervade in a scenario. In this paper, we propose a novel, effective and efficient method to obtain a shadow-free image from a single outdoor image without feature extraction or shadow detection. The research is based on our previous work of grayscale illumination invariant image derivation from a physically-based shadow linear model [22]. With three different grayscale illumination invariant images (e.g., Fig. 1(b)) from this linear model [22], we apply them to set up three linear equations for each pixel value vector. The solution space of these linear equations is decom This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. (a) (b) (c) (d) Fig. 1. One experimental result of our algorithm. (a) Original image. (b) One of the three grayscale illumination invariant images. (c) Color illumination invariant image with our pixel-wise orthogonal decomposition. (d) Shadow-free image after color restoration. posed into one-dimensional nullspace (free solution space) and particular solution space. The free solution, representation of illuminants ratio, is only determined by illumination condition. The particular solution, which is perpendicular to free solutions, is unique and illumination invariant. It retains the basic color information of the original pixel value vector. Therefore, we name this process as pixel-wise orthogonal decomposition for color illumination invariant. Due to that this color illumination invariant image (e.g., Fig. 1(c)) still has some color distortion compared with the original image, combining color illumination invariant image and Lab color space, we propose an algorithm to generate a shadow-free image (e.g., Fig. 1(d)), which better preserves the color and texture information of the original image. The main contributions of this paper are: (1) We propose a new pixel-wise orthogonal decomposition method to obtain a shadow-free image without feature extraction or shadow detection. (2) Our method requires only once pixel-wise calculation on an image and can run in real time. (3) This pixel-wise orthogonal decomposition retains the original texture well. (4) The color illumination invariant image yields an identical reflectivity result regardless of illumination condition, which is both invariant for different illumination conditions and shadows. The rest of the paper is organized as follows. In Section 2, we give a brief introduction of the derivation of grayscale illumination invariant image and then present our orthogonal decomposition method for color illumination invariant image from a single image. In section 3, we present a color restoration method for the generation of shadow-free image from color illumination invariant image. Some quantitative and qualitative experiments on a diverse set of shadow images are given in Section 4 . We end this paper with a brief discussion and conclusion in section 5 . 2. Pixel-wise orthogonal decomposition and color illumination invariant image In this section, we first give a brief introduction of our previous work of shadow linear model and the derivation of relevant grayscale illumination invariant image. Then we present our pixelwise orthogonal decomposition method for color illumination invariant image from a single image. _2.1._ _Pixel-wise orthogonal decomposition_ 2.1.1. Shadow linear model on an image [22] For visible light whose spectrum ranges from 400nm to 700nm, given spectral power distributions (SPD) of illumination _E_ ( _λ_ ), object reflectance _S_ ( _λ_ ) and sRGB color matching functions _Q_ ( _λ_ ), the RGB tristimulus values ( _FH_ ) in sRGB color space are computed by, _FH_ = - 700 400 <sup>_E_</sup> <sup>(</sup> <sup>_λ_</sup> <sup>)</sup> <sup>_S_</sup> <sup>(</sup> <sup>_λ_</sup> <sup>)</sup> <sup>_QH_</sup> <sup>(</sup> <sup>_λ_</sup> <sup>)</sup> <sup>_dλ_</sup> (1) This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. where _H_ = _{R,_ _G,_ _B}_ represent red, green, and blue channel respectively. Light emitted from the sun will be scattered by atmospheric transmittance effects which causes the incident light to be split into direct sunlight and diffuse skylight. The illumination for shadow is skylight while for non-shadow background is both sunlight and skylight. In clear weather when shadows most probably take place, the SPD of daylight and skylight show strong regularities, and they are mainly controlled by sun angles. Based on these principals, it is revealed that the sRGB tristimulus values of a surface illuminated by daylight are proportional to those of the same surface illuminated by skylight in each of the three color channels, i.e., log( _FH_ + 14) = <sup><u>log(</u></sup> <sup>_<u>KH</u>_</sup> <sup><u>)</u></sup> + log( _fH_ + 14) (2) 2 _._ 4 where _FH_ denotes the RGB values of a surface in non-shadow area and _fH_ denotes the RGB values for the same surface in shadow area. The proportional coefficients _KH_ are independent of reflectance and are approximately equal to constants determined by Eq. (3). _KH_ = argmin _KH_ 700 ### ∑ _λ_ =400 �� _QH_ ( _λ_ ) _·_ ( _Eday_ ( _λ_ ) _−_ _KH ·_ _Esky_ ( _λ_ ))�� (3) where _Eday_ and _Esky_ represent the SPD of daylight and skylight respectively. In our experiment, this SPD of daylight and skylight were obtained by calculating the mean values of the SPD of daylight and skylight measured by an Avantes USB 2.0 spectrometer under different sun angles on ten different days in sunny weather. This optimization problem of _KH_ is solved by setting the sampling stepsize of in Eq. (3) as 5nm and the stepsize of _KH_ as 0.01. From Eq. (2), the following equation holds. log( _FR_ + 14)+ log( _FG_ + 14) _−_ _β_ 1 _·_ log( _FB_ + 14) (4) = log( _fR_ + 14)+ log( _fG_ + 14) _−_ _β_ 1 _·_ log( _fB_ + 14) where _β_ 1 = <sup><u>log(</u></sup> <sup>_<u>KR</u>_</sup> <sup><u>)+</u></sup> <sup><u>log(</u></sup> <sup>_<u>KG</u>_</sup> <sup><u>)</u></sup> (5) log( _KB_ ) For a pixel in an image, Eq. (4) represents a shadow invariant. For an arbitrary pixel and its RGB value vector, ( _vR,_ _vG,_ _vB_ ) <sup>_T_</sup>, log( _vR_ + 14)+ log( _vG_ + 14) _−_ _β_ 1 _·_ log( _vB_ + 14) keeps the same no matter whether the pixel is on shadow region or not. Apparently, a grayscale illumination invariant image is obtained. Two results of this type of illumination invariant image are shown in Fig. 2. Fig. 2. Grayscale illumination invariant image results based on the linear model 2.1.2. Pixel-wise orthogonal decomposition The grayscale illumination invariant image has some limitations in some applications due to the loss of color and contrast information. We expect to get an illumination (including shadow) invariant image, which can retain the color information of the original image and appear the This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. same as the original image without shadow. For this purpose, based on the model in previous section, we deduce a pixel-wise orthogonal decomposition and obtain an illumination invariant image which retains the basic color information of the original image. For a RGB value vector ( _vR,_ _vG,_ _vB_ ) <sup>_T_</sup>, we first define the following grayscale illumination invariant values _I_ 1 according to Eq. (4): _I_ 1 = log( _FR_ + 14)+ log( _FG_ + 14) _−β_ 1 _·_ log( _FB_ + 14) = log( _fR_ + 14)+ log( _fG_ + 14) _−β_ 1 _·_ log( _fB_ + 14) = log( _vR_ + 14)+ log( _vG_ + 14) _−_ _β_ 1 _·_ log( _vB_ + 14) (6) Similar to Eq. (6), we can obtain two other grayscale illumination invariant values _I_ 2 and _I_ 3, _I_ 2 = log( _FR_ + 14) _−β_ 2 _·_ log( _FG_ + 14)+ log( _FB_ + 14) = log( _fR_ + 14) _−β_ 2 _·_ log( _fG_ + 14)+ log( _fB_ + 14) = log( _vR_ + 14) _−β_ 2 _·_ log( _vG_ + 14)+ log( _vB_ + 14) _I_ 3 = _−β_ 3 _·_ log( _FR_ + 14)+ log( _FG_ + 14)+ log( _FB_ + 14) = _−β_ 3 _·_ log( _fR_ + 14)+ log( _fG_ + 14)+ log( _fB_ + 14) = _−β_ 3 _·_ log( _vR_ + 14)+ log( _vG_ + 14)+ log( _vB_ + 14) (7) (8) where _β_ 2 = <sup><u>log(</u></sup> <sup>_<u>KR</u>_</sup> <sup><u>)+</u></sup> <sup><u>log(</u></sup> <sup>_<u>KB</u>_</sup> <sup><u>)</u></sup> <sup>_<u>R</u>_</sup> <sup><u>)+</u></sup> <sup><u>log(</u></sup> <sup>_<u>KB</u>_</sup> <sup><u>)</u></sup> _,_ _β_ 3 = <sup><u>log(</u></sup> <sup>_<u>KG</u>_</sup> <sup><u>)+</u></sup> <sup><u>log(</u></sup> <sup>_<u>KB</u>_</sup> <sup><u>)</u></sup> log( _KG_ ) log( _KR_ ) <sup>_<u>G</u>_</sup> <sup><u>)+</u></sup> <sup><u>log(</u></sup> <sup>_<u>KB</u>_</sup> <sup><u>)</u></sup> (9) log( _KR_ ) For convenience, let _u_ = ( _uR,_ _uG,_ _uB_ ) <sup>_T_</sup> defines a Log-RGB value vector of a pixel, where _uH_ = _log_ ( _vH_ + 14) _,_ _H_ = _{R,_ _G,_ _B}_ . From Eqs. (4), (7), and (8), we have the following linear equations,  _uR_ + _uG −_ _β_ 1 _·_ _uB_ = _I_ 1  (10)  _uR_ + _uG −_ _β_ 1 _·_ _uB_ = _I_ 1 _uR −_ _β_ 2 _·_ _uG_ + _uB_ = _I_ 2 _−β_ 3 _·_ _uR_ + _uG_ + _uB_ = _I_ 3 where _Ii,_ _i_ = 1 _,_ 2 _,_ 3 _,_ correspond to the invariant values calculated by Eqs. (6), (7), and (8) respectively. The matrix format of Eq. (10) is as following: _A_ _u_ = _I_ (11) 1 1 _−β_ 1 1 _−β_ 2 1 _−β_ 3 1 1  , _u_ = ( _uR,_ _uG,_ _uB_ ) <sup>_T_</sup>, and _I_ = ( _I_ 1 _,_ _I_ 2 _,_ _I_ 3) <sup>_T_</sup> . According to the where _A_ =   definitions and calculations of _β_ 1 _,_ _β_ 2, and _β_ 3, we have 2 + _β_ 1 + _β_ 2+ _β_ 3 _−_ _β_ 1 _β_ 2 _β_ 3 = 0 (12) which leads to _rank_ ( _A_ ) = 2. For a given image, from algebraic theory, we know that Eq. (11) has infinite number of solutions. The solution space can be decomposed into a particular solution plus one-dimensional nullspace solutions. For a pixel on an image, we only know one of the solutions, i.e., pixel Log-RGB value vector. We aim to find one solution of Eq. (11) which is illumination invariant. In the following, we prove that this solution exists and is unique. From algebraic theory, any solution _u_ of Eq. (11), can be expressed as following: _u_ = _us_ + _α_ _u_ 0 (13) This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. where _us_ is an arbitrary particular solution and _u_ 0 is the normalized free solution of Eq. (11), such that _A_ _u_ 0 = 0 and _∥_ _u_ 0 _∥_ = 1, _α_ _∈_ _R_ . The symbol _∥·∥_ denotes _L_ <sup>2</sup> norm. One of the free solution is solved in Formula 14, _u_ <sup>_′_</sup> 0 = ( _β_ 1 _β_ 2 _−_ 1 _,_ 1 + _β_ 1 _,_ 1 + _β_ 2) (14) = log( _KRKGKB_ ) _·_ (log( _KR_ ) _,_ log( _KG_ ) _,_ log( _K_ B)) From Formula 14, the normalized free solution _u_ 0 can be calculated as following: <u>1</u> _u_ 0 = <u>��</u> _u_ _′_ 0 <u>��</u> _u_ 0 <sup>_′_</sup> (15) Here the free solution has no relationship with the image itself but is determined by matrix _A_, i.e. illumination condition. Formula 14 further reveals that this free solution is a representation of the ratio of illuminants in imaging environments. Given a particular solution _us_ and the normalized free solution _u_ 0 of Eq. (11), according to Eq. (13) and algebraic theory, we define _u_ _p_ as - _u_ _p_ = _us_ + _αp_ _u_ 0 (16) _αp_ = _−⟨_ _us_ _,_ _u_ 0 _⟩_ It is a particular solution of Eq. (11), where _⟨·,_ _·⟩_ denotes vector inner product. It can be proved that _u_ _p_, satisfying _u_ _p_ _⊥_ _u_ 0, is the unique particular solution of Eq. (11) (The proof of the uniqueness of _u_ _p_ is provided in Appendix A). For a Log-RGB value vector _u_, whether it is on shadow or not, it is the solution of Eq. (11) and can be decomposed as _u_ = _u_ _p_ + _α_ _u_ 0 (17) where _α_ = _⟨_ _u_ _,_ _u_ 0 _⟩_ and _u_ _p_, _u_ _p_ = _u_ _−_ _α_ _u_ 0, is the unique particular solution of Eq. (11). Due to _u_ _p_ _⊥_ _u_ 0, we call this process as pixel-wise orthogonal decomposition. For a given pixel, no matter how different the values of the pixel are with different illumination conditions, this pixelwise orthogonal decomposition will yield a unique particular solution _u_ _p_ . From the deducing procedure above and the orthogonal decomposition, we know that _u_ 0, representation of illuminants ratio, is only related with ( _β_ 1 _,_ _β_ 2 _,_ _β_ 3) <sup>_T_</sup> and _u_ _p_, perpendicular to _u_ 0, is illumination invariant. It means that for a pixel with Log-RGB value vector _u_, no matter whether it is on shadow or not, _u_ _p_ is invariant and only _α_ reflects the variation of pixel RGB values caused by shadow or different illuminants. The different solutions caused by different _α_ component in Eq. (17) can be regarded as Log-RGB values of a pixel on different illumination conditions. Therefore, given an image under multiple illumination conditions, for each pixel with Log-RGB value vector _u_ of this image, we can directly calculate its illumination invariant vector _u_ _p_ as - _u_ _p_ = _u_ + _αp_ _u_ 0 (18) _αp_ = _−⟨_ _u_ _,_ _u_ 0 _⟩_ By exponential transform on _u_ _p_ for each pixel, we can get an illumination invariant image which retains basic color information of the original image in RGB color space. This pixel-wise orthogonal decomposition process can be shown more clearly from the illustration in Fig. 3. For a pixel, _u_ <sup>1</sup> _s_ <sup>and</sup> <sup>_u_</sup> <sup>2</sup> _s_ <sup>denote its log-RGB vector within shadow and log-RGB</sup> vector without shadow respectively, which are the solutions of Eq. (11). Here we denote any solution of Eq. (11) by vector _u_ . According to our orthogonal decomposition Eqs. (14), (15), and (17), _u_ <sup>1</sup> _s_ <sup>,</sup> <sup>_u_</sup> <sup>2</sup> _s_ <sup>, and</sup> <sup>_u_</sup> <sup>can be projected along the vector</sup> <sup>_u_</sup> 0 <sup>into an specific solution of Eq. (13),</sup> _u_ _p_, which is perpendicular to _u_ 0 . Therefore, for a pixel on an image, it means that, no matter how different the values of the pixel are with different illumination conditions (within shadow, without shadow or other illuminated), we can get an unique invariant _u_ _p_ by our orthogonal decomposition. <sup>1</sup> _s_ <sup>and</sup> <sup>_u_</sup> <sup>2</sup> _s_ <sup>1</sup> _s_ <sup>,</sup> <sup>_u_</sup> <sup>2</sup> _s_ This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper.  _s_ 2   _s_ 1 Normalized free solution _u0_ <sup>_u_</sup> _s_ 2 (illuminated by daylight and skylight) _u_ (other illumination condition) _u_ 1 _s_ (illuminated by skylight) Perpendicular to free solution Unique particular solution _up_ Fig. 3. An illustration of pixel-wise orthogonal decomposition. <u>Table 1. Parameters (PRMs) from representative sun angles</u> Angle 20 <sup>_◦_</sup> 30 <sup>_◦_</sup> 40 <sup>_◦_</sup> 50 <sup>_◦_</sup> 60 <sup>_◦_</sup> 70 <sup>_◦_</sup> 80 <sup>_◦_</sup> Mean <u>XXPRMsXXXXXXXX</u> _β_ 1 2.353 2.321 2.299 2.371 2.648 2.520 2.473 2.557 _β_ 2 1.963 1.963 1.977 1.982 1.925 1.996 1.985 1.889 _<u>β</u>_ <u>3</u> <u>1.745</u> <u>1.767</u> <u>1.770</u> <u>1.716</u> <u>1.604</u> <u>1.617</u> <u>1.652</u> <u>1.682</u> _2.2._ _Analysis of Parameters β_ 1 _,_ _β_ 2 _,_ _β_ 3 _and color illumination invariant image_ The estimation of parameters _β_ 1 _,_ _β_ 2 _,_ _β_ 3 is important in determining whether our pixel-wise orthogonal decomposition works well or not. Luckily, from Eqs. (5), (9), and (3), we know that these parameters are reflectance irrelevant and only determined by the illumination condition (i.e, the SPD of daylight and skylight), such as zenith angle (time) and aerosol (weather). In clear weather that shadows mostly take place, these parameters are mainly determined by zenith angle. The SPD can be measured by spectrometer or calculated in atmosphere optics (software like MODTRAN and SMARTS2) with zenith angle and aerosol (for weathers) in advance. We have calculated parameters _β_ 1 _,_ _β_ 2 _,_ _β_ 3 in sunny weather at different sun angles from 9:00 AM till 4:00 PM in our city and some of the values are shown in Tab.1. The mean values in Tab.1 are calculated by the mean SPD of daylight and skylight at 20 <sup>_◦_</sup> to 70 <sup>_◦_</sup> . From Tab.1, we notice that the values of parameters _β_ 1 _,_ _β_ 2 _,_ _β_ 3 from sun angle 20 <sup>_◦_</sup> to sun angle 80 <sup>_◦_</sup> are quite stable. In real applications, the sun angle (time) is known and the parameters can then be determined. In the condition that we have no information about at what sun angles the pictures were taken, the stability of parameters shows that the mean values for _β_ 1 _,_ _β_ 2 _,_ _β_ 3 at 20 <sup>_◦_</sup> to 70 <sup>_◦_</sup> sun angles can be used for most situations in our decomposition, except some images taken at twilight, i.e., at sunrise or sunset, when sun angle is less than 10 <sup>_◦_</sup> . Also, for more precise parameter values, an automatic entropy minimization method similar to Finlayson et al. [20] is employed. In addition to the factors (zenith angle and aerosol) mentioned above that may affect parameters _β_ 1 _,_ _β_ 2 _,_ _β_ 3, some other aspects are also worthy of attention. For example, cloud and fog will affect the SPD of daylight and skylight and further affect the parameters _β_ 1 _,_ _β_ 2 _,_ _β_ 3 in our algorithm. From clear weather to cloudy, as the clouds increase (aerosol increases), shadows vary from strong to weak. When shadows are weak, the error of the color illumination invariant results caused by parameters ( _β_ 1 _,_ _β_ 2 _,_ _β_ 3) deviation from cloud is also weaker. Therefore, the influence caused by the cloud distribution would be small and can be corrected by automatic entropy minimization [20]. This similar situation also goes for foggy weather. The above analysis shows that our pixel-wise orthogonal decomposition can work well on This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. (a) (b) (c) Fig. 4. Pixel-wise orthogonal decomposition on images. Left: Original image. Middle: color illumination invariant image. Right: _α_ information. most situations. Our experimental results on many images in different scenes and reflectance also support this analysis. Two original images, their color illumination invariant images and _α_ information are presented in Fig. 4. The shadows disappear and the main color information is maintained in our color illumination invariant images. Compared with prior works [20,27,28], our 2-D color illumination invariant image has three main advantages: (1) Our 2-D color illumination invariant image is a true 2-D image which can be automatically obtained through a simple pixel-wise orthogonal decomposition. In [20, 28], Finlayson and Drew obtained a 2-D chromaticity image by projecting the 1-D chromaticity back to 2-D via keeping the vector components. In [27], Maxwell et al. stated that this 2-D chromaticity image is inherently one dimensional. Applying narrowband camera sensors in deduction, Maxwell et al. [27] successfully obtained a truly 2-D color illumination invariant image by projecting the colors (in log-RGB) onto a plane based on Shafer’s dichromatic reflection model [29]. Their 2-D color illumination invariant image is obtained either from a user input for projecting normal vector or an 2-D entropy searching. This user input or 2-D entropy search of the angle of the normal vector in a three dimensional space may bring some difficulties in real applications, especially for some images with small fragment shadows and complex reflectance. While our 2-D color illumination invariant image can be directly obtained by measuring the SPD of daylight and skylight or simply giving the information about at what sun angles the pictures were taken (the time when the pictures were taken). Even when these information is unknown to the users, a mean value of SPD information is suitable for most situations. For the correction of the errors caused by the mean values, a simple 1-D entropy searching is used to get optimized parameter values among all the given parameters that be measured in different sun angles in advance. (2) Based on a rigorous mathematical deducing, our 2-D color illumination invariant image has an explicit and simple mathematical expression. This expression and fast pixel-wise calculation of our 2-D color illumination invariant image can be applied directly to the real-time applications. (3) From the view of atmospheric transmittance effects, we do not apply the assumption of Planckian lighting and narrowband camera sensors in our derivation, which may be more practical in real situation. This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. 3. Color restoration and shadow-free image By the orthogonal decomposition on an image, some image color information gets lost (Fig. 4). As shown in Tab.1 and Eqs. (14) and (15), the directions of free solution in different sun angles (from sun angle 20 <sup>_◦_</sup> to sun angle 80 <sup>_◦_</sup> ) are all near to (1 _,_ 1 _,_ 1) <sup>_T_</sup> . From the orthogonal decomposition equation, we have, if _u_ _≈_ _α_ _u_ 0, the illumination invariant _u_ _p_ _≈_ (0 _,_ 0 _,_ 0) <sup>_T_</sup> . It implies that the closer to the neutral surface on RGB space a pixel RGB value vector is, the more color information is got lost. To restore this loss, we present a color restoration method to generate a shadow-free image by correcting color vectors on the illumination invariant image which are near RGB color neutral surface. Let _v_ ( _x,_ _y_ ) = ( _vR_ ( _x,_ _y_ ) _,_ _vG_ ( _x,_ _y_ ) _,_ _vB_ ( _x,_ _y_ )) <sup>_T_</sup> be an RGB image, where _x_ = 1 _,_ 2 _,...,_ _M_ ; _y_ = 1 _,_ 2 _,...,_ _N_ ; _M_ and _N_ denote the image width and height respectively. We define _u_ ( _x,_ _y_ ) = (log( _vR_ ( _x,_ _y_ )+ 14) _,_ log( _vG_ ( _x,_ _y_ )+ 14) _,_ (19) log( _vB_ ( _x,_ _y_ )+ 14)) <sup>_T_</sup> With the orthogonal decomposition on _u_ (to see Eq. (17)), we obtain _u_ ( _x,_ _y_ ) = _α_ ( _x,_ _y_ ) _u_ 0 + _u_ _p_ ( _x,_ _y_ ) (20) where _u_ _p_ ( _x,_ _y_ ) is illumination invariant on pixel ( _x,_ _y_ ), _α_ ( _x,_ _y_ ) _∈_ _R_ . For _u_, we define the following pixel set, which indicates pixels that are near RGB color neutral surface, ��� _≤_ _ε_ ; _S_ = _{_ ( _x,_ _y_ ) _|_ ��� _∥_ _<u>uu</u>_ <u>((</u> _<u>xx,,yy</u>_ <u>))</u> _∥_ <sup>_−_</sup> <sup>_u_</sup> <sup>0</sup> _x_ = 1 _,_ 2 _,..,_ _M_ ; _y_ = 1 _,_ 2 _,...,_ _N}_ (21) <u>Algorithm 1</u> <u>Algorithm pipeline: Pixel-wise orthogonal decomposition for shadow-free image</u> Input: Original image _I_, Coefficient _KH_ ; Output: Shadow-free image _O_ ; Some notations: _u_, _uc_, _u_ _p_ : Image in the Log-RGB color space; _u_ <sup>_RGB_</sup> _p_, _u_ <sup>_RGB_</sup> _c_ : Image in the RGB color space, the superscript <sup>_RGB_</sup> _p_, _u_ <sup>_RGB_</sup> _c_ _u_ <sup>_RGB_</sup> _p_, _u_ <sup>_RGB_</sup> _c_ : Image in the RGB color space, the superscript _RGB_ indicates image in the RGB color space; _u_ <sup>_Lab_</sup> _p_ <sup>,</sup> <sup>_u_</sup> _c_ <sup>_Lab_</sup>, _u_ <sup>_Lab_</sup> _f_ : Image in the Lab color space, the subscript _Lab_ indicates images in the Lab <sup>_Lab_</sup> _p_ <sup>,</sup> <sup>_u_</sup> _c_ <sup>_Lab_</sup> _c_ <sup>_Lab_</sup>, _u_ <sup>_Lab_</sup> _f_ _u_ <sup>_Lab_</sup> _p_ <sup>,</sup> <sup>_u_</sup> _c_ <sup>_Lab_</sup>, _u_ <sup>_Lab_</sup> _f_ : Image in the Lab color space, the subscript _Lab_ indicates images in the Lab color space; Algorithm: 1: Perform a logarithmic transformation on _I_ to get the Log-RGB image _u_ ; 2: Make a pixel-wise orthogonal decomposition on _u_ according to Eq. (18) to get the color illumination invariant values _u_ _p_, where we have _u_ _p_ = _u_ _−_ _<_ _u_ _,_ _u_ 0 _>_ _u_ 0 ; 3: Calculate the parameter vector _T_ according to Eqs. (21) and (22). This parameter vector is used to correct the colors in the original image that lies close to the neutral surface; 4: Perform color correction on _u_ _p_ according to Eq. (23) to get _uc_ ; 5: Transfer _u_ _p_ and _uc_ back to the RGB color space by an exponentiation transformation and get _u_ <sup>_RGB_</sup> _p_ and _u_ <sup>_RGB_</sup> _c_ respectively. This image _u_ <sup>_RGB_</sup> _p_ has almost the same chrominance as <sup>_RGB_</sup> _p_ and _u_ <sup>_RGB_</sup> _c_ <sup>_RGB_</sup> _c_ respectively. This image _u_ <sup>_RGB_</sup> _p_ get _u_ <sup>_RGB_</sup> _p_ and _u_ <sup>_RGB_</sup> _c_ respectively. This image _u_ <sup>_RGB_</sup> _p_ has almost the same chrominance as original image and image _u_ <sup>_RGB_</sup> _c_ has almost the same luminance as original image; original image and image _u_ <sup>_RGB_</sup> _c_ has almost the same luminance as original image; 6: Convert _u_ <sup>_RGB_</sup> _p_ and _u_ <sup>_RGB_</sup> _c_ from RGB color space into Lab color space and get _u_ <sup>_Lab_</sup> _p_ 7: Combine the luminance component of _u_ <sup>_Lab_</sup> _c_ and chrominance components of _u_ <sup>_Lab_</sup> _p_ <sup>_RGB_</sup> _c_ from RGB color space into Lab color space and get _u_ <sup>_Lab_</sup> _p_ <sup>_Lab_</sup> _p_ and _u_ <sup>_Lab_</sup> _c_ <sup>_Lab_</sup> _c_ ; Combine the luminance component of _u_ <sup>_Lab_</sup> _c_ and chrominance components of _u_ <sup>_Lab_</sup> _p_ to obtain the shadow-free image _u_ <sup>_Lab_</sup> _f_ in Lab space according to Eqs. (24) and (25); <sup>_Lab_</sup> _f_ in Lab space according to Eqs. (24) and (25); 8: Convert _u_ <sup>_Lab_</sup> _f_ to the RGB color space to get the final shadow-free image _O_ ; This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. Input Image ( ) _I_ L component of _I_ a component of _I_ b component of _I_ Simple algorithm pipeline _I_ L component of _I_ Pixel-wise orthogonal decomposition on log( _I_ ) _and_ log( _I_ )   _u_ 0  _u_ _p_ ①: Pixel-wise orthogonal decomposition on _I_ according to Eq.(18); ②: Color correction on unique particular solution according to Eqs.(21)-(23) gets ; <sup>_u_</sup> _uc_ _p_ ③: Combining right luminance of and <sup>_u_</sup> _c_ right chrominance of according to _u_ _p_ Eqs.(24)-(25) and then transferring them from Lab space to RGB space. _u_ _p_ Unique particular solutios _u_ _p_ Illuminant-invariant Image ( _P_ ) _Alpha_ componet  Illumination Image Input Original Image _I_ ; Output: Shadow free image _O_ ; _u_ _p_ <sup>_u_</sup> _c_ <sup>_u_</sup> _c_ Output shadow free image ( _O_ ) Color correction on getting _u_ _p_ _u_ _c_ L component of _u_ _c_ a component of P b component of P Fig. 5. The stages of our algorithm implemented on a shadowed image. Note that the arrow in the first row represents the color space conversion, that is converting from RGB space to Lab space. These three components have no actual use in our algorithm. They are only used to act as the reference for the Lab component of our shadow-free image _O_ . where parameter _ε_ is set to 0.15 empirically. We then calculate the following parameter vector, _T_ = <sup><u>1</u></sup> ### G ( x, ∑ y ) ∈ ( _x,y_ ) _∈S_ - _u_ 0 _−_ <sup>_<u>u</u>_</sup> <sup><u>(</u></sup> <sup>_<u>x,</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>)</u></sup> (22) _∥_ _u_ ( _x,_ _y_ ) _∥_ where _G_ is the number of the pixels in set _S_ . This parameter vector is used to measure the average deviation of the pixel vectors of image _u_ in set _S_ from the vector _u_ 0 . Then the color correction on _u_ _p_ is calculated as following: _uc_ ( _x,_ _y_ ) = _∥_ _u_ _p_ ( _x,_ _y_ ) _∥·_ _∥_ _<u>uu</u>_ _<u>pp</u>_ <u>((</u> _<u>xx,,yy</u>_ <u>))</u> _∥_ <sup>+</sup> <u>1</u> 3 +1 <u>���</u> (23) _T_ _κ_ <u>���</u> _∥_ _<u>uu</u>_ <u>((</u> _<u>xx,,yy</u>_ <u>))</u> _∥_ <sup>_−_</sup> <sup>_u_</sup> <sup>0</sup> From the formula above, if _u_ ( _x,_ _y_ ) = _α_ ( _x,_ _y_ ) _u_ 0, we have _uc_ ( _x,_ _y_ ) = _u_ _p_ ( _x,_ _y_ ) + _T_ . This color correction aims to correct the color for pixels in set _S_ . The role of function <u>1</u> 3 _κ_ <u>���</u> _∥_ _<u>uu</u>_ <u>((</u> _<u>xx,,yy</u>_ <u>))</u> _∥_ <sup>_−_</sup> <sup>_u_</sup> <sup>0</sup> <u>���</u> +1 in Eq. (23) is used to minimize the impact of this correction on pixels not in set _S_ and keep the correction smooth. The parameter _κ_ is set to 0.02 empirically. With exponentiation, we transform _uc_ and _u_ _p_ into RGB space and get _u_ <sup>_RGB_</sup> _c_ and _u_ <sup>_RGB_</sup> _p_ respectively, where image _u_ <sup>_RGB_</sup> _p_ has _κ_ <u>���</u> _∥_ _<u>uu</u>_ <u>((</u> _<u>xx,,yy</u>_ <u>))</u> _∥_ <sup>_−_</sup> <sup>_u_</sup> <sup>0</sup> <sup>_RGB_</sup> _c_ and _u_ <sup>_RGB_</sup> _p_ <sup>_RGB_</sup> _p_ respectively, where image _u_ <sup>_RGB_</sup> _p_ transform _uc_ and _u_ _p_ into RGB space and get _u_ <sup>_RGB_</sup> _c_ and _u_ <sup>_RGB_</sup> _p_ respectively, where image _u_ <sup>_RGB_</sup> _p_ has almost the same chrominance as original image and image _u_ <sup>_RGB_</sup> _c_ has almost the same luminance as original image. This is verified by experimental results on many images in different scenes and reflectance. Then a shadow-free image is obtained by transferring the right luminance component of _u_ <sup>_RGB_</sup> _c_ to the color illumination invariant image. We adopt Lab color space (L, the luminance Then a shadow-free image is obtained by transferring the right luminance component of _u_ <sup>_RGB_</sup> _c_ to the color illumination invariant image. We adopt Lab color space (L, the luminance This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. component; a, b, two chrominance components) for this transfer. First we convert _u_ <sup>_RGB_</sup> _c_ component; a, b, two chrominance components) for this transfer. First we convert _u_ <sup>_RGB_</sup> _c_ and _u_ <sup>_RGB_</sup> _p_ from RGB space into Lab space and get _u_ <sup>_Lab_</sup> _c_ and _u_ <sup>_Lab_</sup> _p_ respectively, <sup>_RGB_</sup> _p_ from RGB space into Lab space and get _u_ <sup>_Lab_</sup> _c_ <sup>_Lab_</sup> _c_ and _u_ <sup>_Lab_</sup> _p_ <sup>_Lab_</sup> _p_ respectively, - _u_ _Lab_ _c_ ( _x,_ _y_ ) = ( _Lc_ ( _x,_ _y_ ) _,_ _ac_ ( _x,_ _y_ ) _,_ _bc_ ( _x,_ _y_ )) <sup>_T_</sup> _c_ (24) <sup>_Lab_</sup> _p_ <sup>(</sup> <sup>_x,_</sup> <sup>_y_</sup> <sup>) = (</sup> <sup>_Lp_</sup> <sup>(</sup> <sup>_x,_</sup> <sup>_y_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_ap_</sup> <sup>(</sup> <sup>_x,_</sup> <sup>_y_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_bp_</sup> <sup>(</sup> <sup>_x,_</sup> <sup>_y_</sup> <sup>))</sup> <sup>_T_</sup> _u_ <sup>_Lab_</sup> _p_ Then the final shadow-free image _u_ <sup>_Lab_</sup> _f_ in Lab space is obtained as following, _u_ <sup>_Lab_</sup> _f_ ( _x,_ _y_ ) = ( _Lc_ ( _x,_ _y_ ) _,_ _ap_ ( _x,_ _y_ ) _,_ _bp_ ( _x,_ _y_ )) <sup>_T_</sup> (25) An overview of our shadow-free image generation pipeline is presented in Algorithm 1. Fig. 5 shows the stages of the algorithm implemented on a shadowed image. More shadowfree images can be seen in the experiment section and Appendix B. From the results, we can see that our method for shadow-free image effectively removes shadows from images while retaining the color and texture information of the original image. It is worth noting that, unlike shadow removal method that only recovers pixels in the shadow region, our shadow-free image, without the process of shadow detection, is operating on the entire image. In our algorithm, all the brighter pixels and darker pixels are pulled to the same illumination intensity and it may reduce the contrast of the image. Therefore, our shadow-free image may sometimes looks a bit dull compared with the original image. 4. Experiments In our experiment, we evaluate the results of color illumination invariant image and the relevant shadow-free image on more outdoor real images. These images consist of common scenes or objects under a variety of illumination conditions without shadow or with different types of shadows, such as soft shadows, cast shadows, and self shadows. We first compare our method with two state-of-the-art full-automatic methods (a statistical learning method [15] and a physical-based method [24] (Figs. 6 and 7)) and a shadow removal method [14,30] with human intervention (Fig. 8), respectively. Then the results obtained by our method and Shen’s method [26] on images under different illumination conditions show that our color illumination invariant image is much closer to the intrinsic feature than Shen’s from the view of yielding an identical reflectivity result regardless of illumination condition (Fig. 9). _4.1._ _Comparison of shadow-free images_ Comparison with full-automatic methods. In our experiment, we compare our method with two state-of-the-art methods ([15] and [24]) in terms of shadow-free results and running time. These two methods are based on shadow feature with statistical learning and physical model respectively. These methods are executed with the codes published by the authors of [15] and [24]. In Fig. 6, we show two shadow-free image results. For the first image (Fig. 6(a1)), both our method and Yang’s method [24] remove the soft-shadow of leaves successfully. However, Guo’s method [15] fails to recover a shadow-free image due to the wrong detection on shadows. Due to lack of robust shadow features, this shadow feature and learning based method [9] are not always effective, especially in soft shadow region or some complex scenarios (e.g., Figs. 7(d) and 7(e)). Close-ups of the first image (Fig. 6(b1)) show that, compared with our result, Yang’s method [24] fails to retain the white arrow on the ground. This is because that Yang’s method is not solid for neutral regions when its neighbor regions are also neutral [24]. For the second image (Fig. 6(a2)), our method gets a shadow-free image with texture preserved, while Guo’s method [15] fails to retain the original texture even when it detects the shadows successfully due This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. Input Image Guo's result Yang's Result Our Result (a1) (b1) (a2) (b2) Fig. 6. Comparisons with two state-of-the-art methods (Guo et al. [15] and Yang et al. [24]). (b1), (b2) are close-ups of the red rectangles in (a1), (a2). Input Image Guo's Result Yang's Result Our Result (a) (b) (d) (c) (e) (d) (e) Fig. 7. Comparisons with two state-of-the-art methods (Guo et al. [15] and Yang et al. [24]) on more images. This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. to the inappropriate relighting on pixels. Specially, some pixels are relighted serious wrongly, such that it looks like that some objects that do not exist in the original image appear (e.g., the tiny yellow flowers shown in Guo’s shadow-free image in Fig. 6(b2)). Close-ups of the red rectangle (Fig. 6(b2)) show that some of the grasses are blurred in Yang’s method [24] due to bilateral filtering, while our method, without any filtering operation, retains the texture well. Some other comparison results are shown in Fig. 7. The images in Fig. 7 show that our method removes shadows effectively from a single image with texture well-preserved. However, Guo’s method [15] fails to recover a shadow-free image either due to the wrong detection on shadow regions (Figs. 7(b), 7(d), and 7(e)) or the inappropriate relighting on pixels (Figs. 7(a) and 7(c)). Due to the complex of image reflectance and the irregular distribution of shadows in Fig. 7(e), none of the shadow regions are correctly detected in Guo’s shadow-free image. For images with dark shadows or in which shadows pervade in a scenario (Figs. 7(a)–7(e)), Yang’s method [15] blurs the shadow-free images. For example, the clear water in the original image in Fig. 7(e) is seriously blurred in Yang’s method. Some small and tiny objects such as leaves are also removed in Yang’s results. Table 2. Comparison of running time of the three methods on images shown in Fig. 7 <u>(measured in seconds)</u> Images a b c d e <u>(Resolution)</u> <u>(287*163)</u> <u>(682*453)</u> <u>(496*334)</u> <u>(498*332)</u> <u>(500*475)</u> Guo’s (Matlab) 36.36 138.63 158.2786 286.5894 6.48e+003 <u>Ours (Matlab)</u> <u>0.13</u> <u>0.78</u> <u>0.384</u> <u>0.386</u> <u>0.546</u> Yang’s (C++) 0.171 0.94 0.602 0.614 0.75 <u>Ours (C++)</u> <u>0.041</u> <u>0.187</u> <u>0.119</u> <u>0.092</u> <u>0.157</u> Figs. 6 and 7 verify that our method removes shadows more effectively from a single image, and performs steadily on images with complex outdoor scenes. Our shadow-free image also better preserves the original texture compared to the other two methods. In running time, our method also outperforms Guo’s [15] and Yang’s [24]. In Tab.2, we compare the running time of these three methods on the images shown in Fig. 7. All experiments were conducted on a computer with Intel (R) Core (TM) i3-2120 3.3GHz CPU and 2G RAM memory. The source codes that Guo and Yang provided are implemented in Matlab and C++ respectively. For better comparison, we implement our method both in Matlab and C++. Without any statistical learning or complex filtering operation, our method is faster than Guo’s [15] and Yang’s [24]. Note that, when the reflectance of image becomes complex and shadows on the image get intricate, it will be extremely hard for Guo’s method to detect shadow regions and then remove them, and the running time rose up to 6.4827e+003 second, almost 2 hours in Fig. 7(e). All these tested examples and quantitative results show that our method performs better in terms of accuracy, consistency, and efficiency than the other two methods on shadow images. Comparison with shadow removal method with human intervention. Apart from previous comparisons with full-automatic methods for shadow-free image, in this section, we also compare our method with a shadow removal method [14, 30]. In Arbel’s method, the shadow mask is firstly extracted based on region growing and SVM learning with the user inputs (Figs. 8(b) and 8(c)). Then the shadow-free image is constructed by multiplying a constant scalar to cancel the effect of shadows in umbra regions, while on penumbra regions, the shadows are removed based on the intensity surface construction. Fig. 8 gives the comparison of our method with Arbel’s method on shadow-free image. Fig. 8(r1,e) shows that even though Arbel’s method effectively removes shadows from image with dark shadows, the texture in the original shadow area is not consistent with that in the non This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. (r1) (r2) (r3) (a) (b) (c) (d) (e) Fig. 8. Comparison with Arbel’s shadow removal method [14,30]. (a) Original image. (b) Examples of user-guided shadow and non-shadow observations in Arbel’s method denoted by red circles and white circles respectively. (c) The extracted shadow masks in Arbel’s method. (d) Arbel’s shadow-free image. (e) Our shadow-free image. shadow area. Figs. 8(r2,d) and 8(r3,d) further show that Arbel’s method fails to reconstruct a shadow-free image from images with complex shadows. In these complex scenarios, the constant scalar in the umbra area in Arbel’s method no longer works. These wrong constant scalar relights the shadow regions either excessively or insufficiently. As a contrast, our method can not only remove the shadows, but also keep the texture consistency between the shadow and non-shadow area as shown in Figs. 8(r1,d), 8(r2,e), and 8(r3,e). _4.2._ _The “intrinsic” of color illumination invariant image_ Both Guo’s [15] method, Yang’s [24] method, and Arbel’s method [14, 30] are designed for removing shadows from an image. They cannot yield an identical reflectivity result regardless of illumination condition. In this section we will show that our color illumination invariant image has intrinsic feature. We apply our algorithm to a series of images taken in outdoor scenes at different times on a sunny day to testify the intrinsic feature of our color illumination invariant image. Shown in Fig. 9(r1), these tested images were taken under four different illumination conditions, one under total daylight (Fig. 9(r1,a)), two under partly daylight and partly skylight (Figs. 9(r1,b) and 9(r1,c)), and one under total skylight (Fig. 9(r1,d)). Taking the image under total daylight as reference image, we compare the differences between the corresponding processed results by different methods. For an intrinsic image derivation algorithm, the difference of the reference intrinsic image and other three intrinsic images should be approximately the same or at least much closer to each other than the original image sequences. In our experiment, we calculated the differences both for our color illumination invariant images and shadow-free images. As a comparison, we also present the intrinsic images obtained by Shen et al. [26] and the corresponding differences. The root mean square error (RMSE) is used as the measurement. Since being compressed, the range of our color illumination is much lower compared with original images and shadow-free images. Therefore, besides RMSE, we also adopt Relative Error ( The Range of Mearsued ImageRMSE <sup>) as our measurement. All these measured images are 24 bit</sup> RGB images. As shown in Fig. 9(r3), the four color illumination invariant images generated by our method are basically the same. It verifies that our orthogonal decomposition on an image yields an identical reflectivity result regardless of illumination condition. The quantitative measurement is given in Tab.3. Taken the images under total daylight and total skylight as an example, the RMSE difference of the original images is decreased from 101.85 to 4.67 in our color illumina This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. (r1) (r2) (r3) (r4) (a) (b) (c) (d) Fig. 9. Images under different illumination conditions. For rows: (r1) original image, (r2) intrinsic image by Shen et al. [26], (r3) our color illumination invariant image, (r4) our shadow-free image. For columns: (a) (reference image) in daylight, (b) and (c) partly in daylight and partly in skylight, (d) in skylight. <u>Table 3. MSE and relative error between images</u> RMSE Relative Error (%) Images a and b a and c a and d a and b a and c a and d Original img. 45.96 80.03 101.85 18.02 31.39 39.94 Intrinsic img. by [26] 45.17 72.67 86.36 17.71 28.50 33.87 Our invariant img. 4.98 4.49 4.67 5.79 5.22 5.70 Our shadow-free img. 15.12 17.87 24.88 6.00 7.45 9.99 tion invariant images. Also, when considering the Relative Error, this value is decreased from 39.94% to 5.7%. Even after a color restoration operation on illumination invariant images, the RMSE difference (24.88) between our shadow-free images is still much smaller than original images. However, the intrinsic images obtained by Shen et al. [26] still have a big difference, 86.36. The quantitative measurements demonstrate that our color illumination invariant images are considerably closer to generate an intrinsic representation than Shen et al. [26]. The corresponding shadow-free images also maintain this “intrinsic” to some extent. 5. Discussion and conclusion In this paper, we propose a novel, effective and fast method to obtain a shadow-free image from a single outdoor image. Different from state-of-the-art methods that either need shadow detection or statistical learning, our shadow-free image is obtained by a pixel-wise orthogonal decomposition and color restoration. Also, our shadow-free image better preserves the texture This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. information compared to the state-of-the-art method. Intrinsic to the illumination condition, our color illumination invariant image is useful for relighting by adjusting _α_ information. Besides, only requiring pixel-wise calculation, our method for color illumination invariant image and shadow-free image can be further applied to the real-time applications to resist illumination variation. (a) (b) Fig. 10. (a) Two original indoor images and the corresponding shadow-free images. (b) Two failure cases: original images with over-exposed regions and the corresponding shadowfree images. Despite that our pixel-wise orthogonal decomposition is designed for outdoor shadow images, it is also valid for indoor situation by the correction of physical parameters _β_ 1 _,_ _β_ 2 _,_ _β_ 3. Fig. 10(a) gives two results for our shadow-free images on the indoor shadow images. It shows that our pixel-wise orthogonal decomposition method can be also applied in indoor situation. According to our experiments, we also found two main limitations of our method: 1) Shadowfree image has somewhat color distortion, especially near neutral surface; 2) It does not work well on images with overexposure regions. The main reason for the failure on overexposure regions is: the pixel values on overexposure region are not physically correct values, they do not satisfy the linear model and we cannot get their correct orthogonal decomposition. Fig. 10(b) shows two failure examples for our shadow-free images. The modification and improvement of the model and method for an over-exposed regions, indoor image and more accurate color restoration are in process. See Appendix for supporting content. Appendix A. The uniqueness of particular solution _u_ _p_ The Theorem. _Let_ _A_ _denote_ _a_ _3_ _by 3_ _matrix, rank_ ( _A_ ) = 2 _and_ _b_ _be_ _a non-zero three dimen-_ _sional vector. For linear equations_ _A_ _u_ = _b_ (26) _there exists a unique particular solution_ _u_ _p_ _of Eq. (26) that is perpendicular to its normalized_ _free solution._ _Proof._ 1) Proof of the existence Due to _rank_ ( _A_ ) = 2 and _b_ _̸_ = 0, we know that the dimension of the nullspace of Eq. (26) is one. Let _us_ be a particular solution of Eq. (26) and _u_ 0 be the normalized free solution of Eq. 26, i.e., _A_ _us_ = _b_, _A_ _u_ 0 = 0 and _∥_ _u_ 0 _∥_ = 1. We obtain a new solution of Eq. (26) by _u_ _p_ = _us_ _−⟨_ _us_ _,_ _u_ 0 _⟩_ _u_ 0 (27) This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. By inner product operation on both sides of Eq. (27) with _u_ 0, we have - _u_ _p_ _,_ _u_ 0 - = _⟨_ _us_ _,_ _u_ 0 _⟩−⟨_ _us_ _,_ _u_ 0 _⟩⟨_ _u_ 0 _,_ _u_ 0 _⟩_ = _⟨_ _us_ _,_ _u_ 0 _⟩−⟨_ _us_ _,_ _u_ 0 _⟩_ = 0 Then we have _u_ _p_ _⊥_ _u_ 0 . Because that the dimension of the nullspace of Eq. (26) is one, we get that _u_ _p_ is perpendicular to any non-zero free solution of Eq. (26). 2) Proof of the uniqueness Similar due to _rank_ ( _A_ ) = 2 and _b_ _̸_ = 0, the solution space of Eq. (26) can be decomposed into a particular solution plus one-dimensional nullspace solutions. Without loss of generality, for _u_ _p_ in Eq. (27) and the normalized free solution _u_ 0, any solution _u_ of Eq. (26) can be expressed as following, _u_ = _u_ _p_ + _a_ _u_ 0 (28) where _a ∈_ _R_ . Suppose there exists another particular solution _u_ <sup>_′_</sup> <sup>_′_</sup> _p_ <sup>of Eq. (26), such that</sup> <sup>_u_</sup> <sup>_′_</sup> where _a ∈_ _R_ . Suppose there exists another particular solution _u_ <sup>_′_</sup> _p_ <sup>of Eq. (26), such that</sup> <sup>_u_</sup> <sup>_′_</sup> _p_ <sup>_⊥_</sup> <sup>_u_</sup> 0 and _u_ <sup>_′_</sup> _p_ _̸_ <sup>=</sup> <sup>_u_</sup> <sup>_p_</sup> <sup>. According to Formula 28, we can have</sup> <sup>_′_</sup> _p_ _̸_ <sup>=</sup> <sup>_u_</sup> <sup>_p_</sup> <sup>. According to Formula 28, we can have</sup> _u_ <sup>_′_</sup> _p_ <sup>=</sup> <sup>_u_</sup> <sup>_p_</sup> <sup>+</sup> <sup>_a′_</sup> <sup>_u_</sup> 0 (29) By inner product operation on both sides of Formula 29 with _u_ 0, we have - _u_ <sup>_′_</sup> _p_ <sup>_,_</sup> <sup>_u_</sup> 0 - = - _u_ _p_ _,_ _u_ 0 + _a_ <sup>_′_</sup> _⟨_ _u_ 0 _,_ _u_ 0 _⟩_ Because _u_ _p_ _⊥_ _u_ 0, _u_ <sup>_′_</sup> _p_ <sup>_⊥_</sup> <sup>_u_</sup> 0 <sup>, and</sup> <sup>_∥_</sup> <sup>_u_</sup> 0 <sup>_∥_</sup> <sup>= 1, we obtain 0 = 0</sup> <sup>+</sup> <sup>_a′_</sup> <sup>. Then</sup> <sup>_a′_</sup> <sup>= 0.</sup> From Eq. (29) and _a_ <sup>_′_</sup> = 0, we can get that the solution of Eq. (26), which is perpendicular to any non-zero free solution of Eq. (26), is unique. For the case _b_ = 0, we set _u_ _p_ = 0. Appendix B. Our results on more outdoor images In this section we show our results on more outdoor images. For each case, we provide the original image, color illumination invariant image, _α_ information, and the final shadow-free image. This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. Input Image Color Illumination Invariant Image  Information Shadow-free Image (a) Image mainly with cast shadows on the ground. (b) Image mainly with cast shadows on the grasses. (c) Image mainly with soft cast shadows on the ground. (d) Image mainly with soft cast shadows on the grasses. (e) Image with dark cast shadows . (f) Image with dark cast shadows. Fig. 11. Our results on some cast shadow images. Both images with soft shadows and dark shadows are given. This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper. Input Image Color Illumination Invariant Image  Information Shadow-free Image (a) Image with complex cast shadows on the grasses and leaves and some self shadows of the trees and leaves. (b) Image with complex cast shadows on withered grasses and snows and some self shadows on the buildings. (c) Image with complex cast shadows on the grasses and ground and some self shadows of trees and leaves. (d) Image with cast shadows on the grasses, some soft cast shadows of thin sticks and some self shadows of sticks. (e) Image with complex cast shadows of sticks and stones and self shadows of stones. (f) Image with large complex cast shadows of the leaves on the ground and some self shadows on the trunks. Fig. 12. Our results on more complex outdoor scenes, which mainly contain cast shadows and self shadows. Acknowledgments This work was supported by the Natural Science Foundation of China under Grant No.61102116, 61473280, and 61333019. We thank Eli Arbel for his provision of the source code of [14,30]. This paper has been published in Optics Express, Vol. 23, Issue 3, pp. 2220-2239. The final version is available on http://dx.doi.org/10.1364/OE.23.002220. Please refer to that version when citing this paper.

섹션 본문

섹션 본문이 없습니다.

참고문헌 15건

  1. Lightness and Retinex Theory Journal of the Optical Society of America · Optica Publishing Group · 1971 10.1364/josa.61.000001
  2. Color constancy at a pixel Journal of the Optical Society of America A · Optica Publishing Group · 2001 10.1364/josaa.18.000253
  3. Separation and contrast enhancement of overlapping cast shadow components using polarization Optics Express · Optica Publishing Group · 2006 10.1364/oe.14.007099
  4. Detecting shadows from a single image Optics Letters · Optica Publishing Group · 2011 10.1364/ol.36.004428
  5. Rich Intrinsic Image Decomposition of Outdoor Scenes from Multiple Views IEEE Transactions on Visualization and Computer Graphics · Institute of Electrical and Electronics Engineers · 2012 10.1109/tvcg.2012.112
  6. Illumination normalization with time-dependent intrinsic images for video surveillance IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2004 10.1109/tpami.2004.86
  7. User-assisted intrinsic images ACM Transactions on Graphics · Association for Computing Machinery · 2009 10.1145/1618452.1618476
  8. Shadow Removal Using Intensity Surfaces and Texture Anchor Points IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2010 10.1109/tpami.2010.157
  9. Paired Regions for Shadow Detection and Removal IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2012 10.1109/tpami.2012.214
  10. Recovering intrinsic images from a single image IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2005 10.1109/tpami.2005.185
  11. On the removal of shadows from images IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2006 10.1109/tpami.2006.18
  12. Entropy Minimization for Shadow Removal International Journal of Computer Vision · Springer Science+Business Media · 2009 10.1007/s11263-009-0243-z
  13. Tricolor Attenuation Model for Shadow Detection IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2009 10.1109/tip.2009.2026682
  14. Shadow Removal Using Bilateral Filtering IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2012 10.1109/tip.2012.2208976
  15. Using color to separate reflection components Color Research & Application · Wiley · 1985 10.1002/col.5080100409