<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">ARS</journal-id><journal-title-group><journal-title>Advances in Remote Sensing</journal-title></journal-title-group><issn pub-type="epub">2169-267X</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ars.2013.22011</article-id><article-id pub-id-type="publisher-id">ARS-32770</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  A New Shadow Removal Method for Color Images
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>iang</surname><given-names>He</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Chee-Hung</surname><given-names>Henry Chu</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>The Center for Advanced Computer Studies, University of Louisiana at Lafayette, Lafayette, USA</addr-line></aff><aff id="aff1"><addr-line>Department of Mathematics, Computer and Information Sciences,Mississippi Valley State University, Itta Bena, USA</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>qianghe2005@gmail.com(IH)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>05</day><month>06</month><year>2013</year></pub-date><volume>02</volume><issue>02</issue><fpage>77</fpage><lpage>84</lpage><history><date date-type="received"><day>February</day>	<month>20,</month>	<year>2013</year></date><date date-type="rev-recd"><day>March</day>	<month>23,</month>	<year>2013</year>	</date><date date-type="accepted"><day>March</day>	<month>31,</month>	<year>2013</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   Shadow and variable illumination considerably influence the results of image understanding such as image segmentation, object tracking, and object recognition. The intrinsic image decomposition is to separate the reflectance and the illumination image from an observed image. The intrinsic image decomposition is very useful to remove shadows and then improve the performance of image understanding. In this paper, we present a new shadow removal method based on intrinsic image decomposition on a single color image using the Fisher Linear Discriminant (FLD). Under the assumptions-Lambertian surfaces, approximately Planckian lighting, and narrowband camera sensors, there exist an invariant image, which is 1-dimensional greyscale and independent of illuminant color and intensity. The Fisher Linear Discriminant is applied to create the invariant image. And further the shadows can be removed through the difference between invariant image and original color image. The experimental results on real data show good performance of this algorithm.
    <!--?xml:namespace prefix = o /-->
     
 
</p></abstract><kwd-group><kwd>Intrinsic Image; Reflectance Image; Illumination Image; Shadow Removal; Invariant Direction; K-Means Method; Fisher Linear Discriminant</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Shadow and variable illumination considerably influence the results of the image segmentation, object tracking, and object recognition [1,2]. For instance, pictures taken by a stationary camera under different weather conditions can have remarkably different appearances. The intensity contrast is reduced under an overcast sky, whereas shadows are more prevalent in sunny conditions. If a cast shadow exists, it is hard to separate the object from its shadow in image segmentation. Intrinsic image decomposition is very helpful to improve the performance of image segmentation and object recognition [3-5]. Intrinsic images [<xref ref-type="bibr" rid="scirp.32770-ref6">6</xref>] refer to the reflectance image and the illumination image (also termed as shading image). An observed image is a product of its reflectance image and illumination image. The illumination describes what happens when light interacts with surfaces. It is the amount of light incoming to a surface. The reflectance is the ratio of the reflected light from a surface to the incoming light, which is used to measure a surface’s capacity to reflect incident light. The intrinsic image decomposition is to separate the reflectance image and the illumination image from an observed image. Let <img src="6-2630030\e1603dda-f32d-4fde-9c62-cad1da67dc60.jpg" /> be the observed image and <img src="6-2630030\d3495024-ccac-4b9c-9669-d2227fdd921c.jpg" /> be the reflectance image and <img src="6-2630030\f5ab6246-ba7a-400c-b928-bd7e89f86f19.jpg" /> be the illumination image. Then, we have expression<img src="6-2630030\972e0c57-3b68-4112-a551-8ba918fa4592.jpg" />.</p><p>There are two tracks on the intrinsic image decomposition. One is to extract the reflectance image and the illumination image from a sequence of observed images [7,8]. The other is to extract the reflectance image and the illumination image from a single observed image [9,10]. The typical work for the intrinsic image recovery from a sequence of observed images is from Weiss [<xref ref-type="bibr" rid="scirp.32770-ref8">8</xref>]. He decomposed the intrinsic image from a sequence of images taken under a stationary camera. He assumes that the reflectance is constant and the illumination varies with time. One important natural image statistics is that its derivative filter output is sparse [11,12]. By incorporating the statistics of natural image as a prior, he developed a maximum-likelihood estimation solution to this problem. For the intrinsic image recovery from a single observed image, Tappen, Freeman and Adelson [<xref ref-type="bibr" rid="scirp.32770-ref10">10</xref>] presented an algorithm that incorporates both color and gray-level information to recover shading and reflectance intrinsic images from a single image. They assume that every image derivative is caused either by illumination or by a change in the surface’s reflectance, but not both. In order to propagate local information between different areas, they introduced Generalized Belief Propagation to classify the ambiguous areas.</p><p>The work most related to ours is from Finlayson [<xref ref-type="bibr" rid="scirp.32770-ref13">13</xref>]. They devised a method to recover reflectance images directly from a single color image. Under assumptions of Lambertian reflectance, approximately Planckian lighting, and narrowband camera sensors, they introduced an invariant image, which is 1-dimensional greyscale and independent of illuminant color and intensity. As a result, invariant images are free of shadows. The most important step to compute invariant images is to calibrate the angle for an “invariant direction” in a 2-dimensional log-chromaticity space. The invariant images are generated by projecting data, in the log-chromaticity space, along the invariant direction. They showed a fact that the correct projection can be reached by minimizing entropy in the resulting invariant image. In practice, they recovered shadow-free images for the images from unsourced imagery. To minimize the entropy on the projected data seems equivalently to maximize the probabilities within one sensor band. As a result, the color data from one sensor band have minimum variance and then distribute as close as possible after projection. They used histograms to approximate probabilities in every search direction.</p><p>Here, we present an intrinsic image decomposition method for a single color image under the above assumptions of Lambertian reflectance, approximately Planckian lighting, and narrowband camera sensors. We showed that the invariant direction could be achieved successfully through the Fisher Linear Discriminant (FLD). We obtain the satisfactory invariant images through FLD. The Fisher Linear Discriminant not only guarantees the within-sensor data as convergent as possible but also treats the between-sensor data as separate as possible. In Section 2, we give a description on invariant direction and invariant image. We discuss the Fisher Linear Discriminant and explain how it can be used to detect the projection direction for invariant images in Section 3. Section 4 shows how to recover the shadow free image from derivative filter outputs. The shadow removal algorithm is proposed in Section 5. In Section 6, experimental results are given to show that the shadow free images could be recovered through the Fisher Linear Discriminant. Finally, we make a conclusion and discuss the future work.</p></sec><sec id="s2"><title>2. Invariant Direction and Invariant Image</title><p>Under assumptions of Lambertian reflectance, approximately Planckian lighting, and narrowband camera sensors, a 1-dimensional greyscal invariant image can be generated. The invariant image is independent of illuminant color and intensity. As a result, invariant images are free of shadows. A 2-dimensional log-chromaticity map is first created by calculating the positions of <img src="6-2630030\57651c79-9cc8-441b-92e3-2a876bb3288f.jpg" /> and<img src="6-2630030\4669eed1-14bc-4eeb-be93-90f77566b32b.jpg" />. One amazing property is that points from different illuminant conditions but under the same sensor band tend to form a straight line. Furthermore, those lines from different sensors tend to be parallel. Therefore, if we project those points onto the vertical direction to the lines, we obtain an illumination free image, which is called the invariant image. This is illustrated in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>Let us take a look at the theory behind this. The following part of this section gives a brief review on the invariant image theory from Finlayson [13,14]. As we know, camera responses depend on three factors: the light E, the surface S, and the sensor<img src="6-2630030\cfc48e86-5ce7-41a0-a195-8ea51b0ac1ec.jpg" />. So we can represent each channel value as integrations over all wavelengths,</p><disp-formula id="scirp.32770-formula121854"><label>(1)</label><graphic position="anchor" xlink:href="6-2630030\0fa2c2e0-26c1-4b21-8b5b-aa89dfde0389.jpg"  xlink:type="simple"/></disp-formula><p>If the sensor is narrowband, then we have a Delta function constraint on each channel, as follows</p><disp-formula id="scirp.32770-formula121855"><label>(2)</label><graphic position="anchor" xlink:href="6-2630030\97006a9e-8423-45d8-994c-a91964f6ae85.jpg"  xlink:type="simple"/></disp-formula><p>Then the integrations for each channel can be picked at single wavelength as follows</p><disp-formula id="scirp.32770-formula121856"><label>(3)</label><graphic position="anchor" xlink:href="6-2630030\f3bad23a-2c5f-4d53-b2b4-c1bb20c3594c.jpg"  xlink:type="simple"/></disp-formula><p>Most typical illuminants lie on, or close to, the Planckian locus. Under Planck’s law, the light <img src="6-2630030\9103c097-ae4a-4ae4-8265-056ef7b39ab5.jpg" /> can be computed as</p><disp-formula id="scirp.32770-formula121857"><label>(4)</label><graphic position="anchor" xlink:href="6-2630030\107861cd-32f3-4693-aac5-0b3a3c909740.jpg"  xlink:type="simple"/></disp-formula><p>where I controls the overall intensity of light, T is the temperature, and <img src="6-2630030\4f5a63b3-09a4-4113-9412-bf5dd6c68f6e.jpg" /> and <img src="6-2630030\7f9e8c88-589c-4a3f-a683-f39fe42f56c3.jpg" /> are constants.</p><p>For typical illuminants, we have<img src="6-2630030\6a67271b-9c95-44d0-b20b-1d314d0eb4fe.jpg" />. Then <img src="6-2630030\55244927-1073-450a-9908-780f08d9dede.jpg" /> can be approximated as</p><disp-formula id="scirp.32770-formula121858"><label>(5)</label><graphic position="anchor" xlink:href="6-2630030\cb4d6df1-6145-41a8-842f-8fcc264b5dfb.jpg"  xlink:type="simple"/></disp-formula><p>Furthermore,</p><disp-formula id="scirp.32770-formula121859"><label>(6)</label><graphic position="anchor" xlink:href="6-2630030\2c173371-c8ee-498c-af91-bbe3604c6b2a.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.32770-formula121860"><label>(7)</label><graphic position="anchor" xlink:href="6-2630030\1f2e89b6-4b55-41e6-88f8-e2465f4e43dd.jpg"  xlink:type="simple"/></disp-formula><p>On the right hand side of Equation (7), the first element is a constant and independent of sensor. The second element is only dependent on reflectance. For Lambertian surfaces, the reflectance is determined by the surface<img src="6-2630030\9707e11c-72c1-4b65-bad9-6de097981163.jpg" />. The third element is dependent on illumination since temperature <img src="6-2630030\f543f27b-badc-4d5c-a42f-1ba5652b641e.jpg" /> is inside. Summarizing over three channels, we have</p><disp-formula id="scirp.32770-formula121861"><label>(8)</label><graphic position="anchor" xlink:href="6-2630030\74853301-d161-453a-9837-ba793fd76e5c.jpg"  xlink:type="simple"/></disp-formula><p>where subscript <img src="6-2630030\efbd011d-7201-4002-ae0e-ba6c17580af6.jpg" /> denotes dependence on reflectance and k, a, b, and c are constants, <img src="6-2630030\a8717bf8-822e-49d1-985e-5a6e559ccc87.jpg" />is the temperature.</p><p>By introducing two new parameters <img src="6-2630030\ee18143e-e595-4bb5-a91c-81a217543a34.jpg" /> and <img src="6-2630030\b136300a-0606-4d42-a3bb-edd653f34266.jpg" /> as follows, we can remove illumination.</p><disp-formula id="scirp.32770-formula121862"><label>(9)</label><graphic position="anchor" xlink:href="6-2630030\37cc1dbd-fff6-4abf-a324-18494333fc45.jpg"  xlink:type="simple"/></disp-formula><p>We can see that there exists a linear relationship between <img src="6-2630030\31461c08-2b36-4879-8e19-48acdd40abd9.jpg" /> and<img src="6-2630030\5b0a5dfa-c1ac-41fa-9a6a-bafefa37f7a2.jpg" />, which is free of illumination</p><disp-formula id="scirp.32770-formula121863"><label>(10)</label><graphic position="anchor" xlink:href="6-2630030\4bd6b96c-0966-4e62-9540-6c57512f1487.jpg"  xlink:type="simple"/></disp-formula><p>That is, if we project log-chromaticity data along the straight line, the projected data are only dependent on surface reflectance.</p><p>To compute invariant images requires calibrating the angle for an invariant direction in a log-chromaticity space. Here, we show that the invariant direction can be recovered through the Fisher Linear Discriminant and we got satisfactory results.</p></sec><sec id="s3"><title>3. Invariant Image by Fisher Linear Discriminant</title><p>Pattern recognition algorithms that minimize entropy guarantee that the projected data have minimum variance within each class. In our application, the projected data from the same sensor band are required to distribute as closely as possible. The Fisher Linear Discriminant [<xref ref-type="bibr" rid="scirp.32770-ref15">15</xref>] is developed for dimensional reduction and pattern classification. The goal of Fisher Linear Discriminant is to project original data onto low dimensional space such that the between-class distance is as large as possible and the within-class distance is as small as possible. Using the Fisher Linear Discriminant, we not only make the projected data from the same band as convergent as possible, but also separate the projected data from different sensor bands as apart as possible. Therefore, the Fisher linear discriminant is a good choice to choose the invariant direction.</p><p>Assume that there are <img src="6-2630030\9ad5ae7e-eff9-49d4-8f6b-22f39274aec7.jpg" /> classes among original data. The data are represented as <img src="6-2630030\cec28855-972d-40e0-8f6d-6a2114e5f387.jpg" /> vector <img src="6-2630030\2e9581fc-65b1-4994-86ac-795065a7ee81.jpg" /> for<img src="6-2630030\97827b26-d2a9-40bb-ad76-b52607a3f45e.jpg" />, where <img src="6-2630030\beb64faa-51c5-47b8-a7bd-8705b3bd064e.jpg" /> is the data dimension and <img src="6-2630030\ef87bab9-d6e8-4c7f-8871-a8a9d037bbd6.jpg" /> is the total number of data. Further, the classes are labeled as <img src="6-2630030\a46978bf-2025-4188-abc5-7fc928b28f22.jpg" /> for<img src="6-2630030\5026377a-8723-40f2-a95a-f0458ebacd56.jpg" />. We have the following definitions.</p><p>The sample mean for class <img src="6-2630030\ffe50da7-0dce-482a-9232-1bc35bdccd59.jpg" /> is</p><p><img src="6-2630030\9e517906-4628-4f4a-8114-a4a1e2f47873.jpg" />, for <img src="6-2630030\c2b8a4e3-0805-4503-888c-d52f6ba85605.jpg" />&#160;&#160;&#160;&#160;&#160; &#160;&#160;(11)</p><p>where <img src="6-2630030\24aa5e11-0a6f-46e0-bf57-76b775ace0d7.jpg" /> is the number of data in class <img src="6-2630030\b67e6246-9086-4992-a0af-b05ee14bf011.jpg" /> and<img src="6-2630030\ab43db78-e2f7-43dc-99c4-c77860638418.jpg" />.</p><p>The scatter matrix for class <img src="6-2630030\0e95c985-8c44-4cd8-9d9f-420fffd33c1b.jpg" /> is</p><p><img src="6-2630030\54e6cb7c-669d-44b7-b348-388f784bf697.jpg" />, for <img src="6-2630030\b63dbdaa-59ae-4584-822a-8c34d022a5f9.jpg" /> &#160;(12)</p><p>The total scatter matrix for the whole data is</p><p><img src="6-2630030\9056b9fe-3492-4240-ad87-81cbd150226f.jpg" />, for all samples&#160;&#160; (13)</p><p>where <img src="6-2630030\81177dd1-e46e-4e15-8906-176b8fd453da.jpg" /> is the mean for the entire data set.</p><p>The between-class scatter matrix is</p><disp-formula id="scirp.32770-formula121864"><label>(14)</label><graphic position="anchor" xlink:href="6-2630030\00da9baf-0c82-41ac-aa0f-07c5d99c5125.jpg"  xlink:type="simple"/></disp-formula><p>The within-class scatter matrix is</p><disp-formula id="scirp.32770-formula121865"><label>(15)</label><graphic position="anchor" xlink:href="6-2630030\7e5acce3-5cfd-4b44-809e-ad6121f44001.jpg"  xlink:type="simple"/></disp-formula><p>The Fisher Linear Discriminant is to find a <img src="6-2630030\1d9cc6b1-e35c-4557-bdf5-b70820ebc4ac.jpg" /> matrix W such that the following optimal criterion <img src="6-2630030\b2c675a3-5274-4c80-b7be-9d7e18402aae.jpg" /> is maximized.</p><disp-formula id="scirp.32770-formula121866"><label>(16)</label><graphic position="anchor" xlink:href="6-2630030\e830ba5d-ddc9-4f44-8081-841e099c67ab.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="6-2630030\6d70dd30-10ac-44b8-bcdb-cd4b40a873e9.jpg" /> is the determinant of a matrix. The term <img src="6-2630030\1c1cbbe0-e895-422f-acdf-baf2847eca41.jpg" /> is also called the Rayleigh quotient. The solution to the Fisher Linear Discriminant is the eigenvectors corresponding to the <img src="6-2630030\431b56b7-145c-448c-ba09-9ceab7600312.jpg" /> largest eigenvalues in the following eigen-problem:</p><disp-formula id="scirp.32770-formula121867"><label>(17)</label><graphic position="anchor" xlink:href="6-2630030\dfcbfe3c-35e0-44eb-9395-57579c88c1fb.jpg"  xlink:type="simple"/></disp-formula><p>Equivalently,</p><disp-formula id="scirp.32770-formula121868"><label>(18)</label><graphic position="anchor" xlink:href="6-2630030\6c5d2f8e-e94f-4140-81ab-287f4a3bf6ac.jpg"  xlink:type="simple"/></disp-formula><p>As a matter of fact, this is a generalized eigen-problem. Since <img src="6-2630030\fcaffe27-6523-4681-8b4f-53e287957cfd.jpg" /> is symmetric (<img src="6-2630030\9d3b5930-4b9a-43eb-8b1c-d5c909e61233.jpg" />is also symmetric), it can be diagonalized as<img src="6-2630030\5068ae77-8b02-4e87-9629-cdc35f3c5020.jpg" />, where U is an orthogonal matrix, consisting of<img src="6-2630030\03332d18-dbf0-4157-b2d0-9aa2103e6a8b.jpg" />’s orthonormal eigenvectors, and <img src="6-2630030\cb0b2cef-e94a-4889-aed7-02b86f6029d3.jpg" /> is a diagonal matrix with eigenvalues of <img src="6-2630030\d41ca66c-3d1a-45a9-8ecf-869dcd07ef2a.jpg" /> as diagonal elements. Define<img src="6-2630030\7a282424-5208-49a2-8352-4f1fa73fba62.jpg" />, then</p><disp-formula id="scirp.32770-formula121869"><label>(19)</label><graphic position="anchor" xlink:href="6-2630030\9740723a-9284-491d-8793-dfd99463c238.jpg"  xlink:type="simple"/></disp-formula><p>Define a new vector<img src="6-2630030\719be226-8936-4973-ab5c-09a9ffaaba3f.jpg" />, then</p><disp-formula id="scirp.32770-formula121870"><label>(20)</label><graphic position="anchor" xlink:href="6-2630030\6ed7296a-4d97-4063-9a6f-cdd3b916cf83.jpg"  xlink:type="simple"/></disp-formula><p>This becomes a regular eigenvalue problem for a symmetric, positive definite matrix<img src="6-2630030\9e992435-abcf-44fc-87a6-64d2cd6203ae.jpg" />. The original solution can be given as<img src="6-2630030\4bf7fffd-a68a-468b-b5ee-74d92dfa996a.jpg" />.</p><p>Since we only care for a projection direction for 2-dimensional data, we always compute the unit vector with the same direction as<img src="6-2630030\e5428f6d-5f15-4cd7-8f9c-8454e52706e3.jpg" />. That is,<img src="6-2630030\6e76f5c8-12a7-4e6b-8203-4074ee76a463.jpg" />.</p><p>Since</p><disp-formula id="scirp.32770-formula121871"><label>(21)</label><graphic position="anchor" xlink:href="6-2630030\fe961337-1656-4754-86b0-7aa299727b37.jpg"  xlink:type="simple"/></disp-formula><p>remember that</p><disp-formula id="scirp.32770-formula121872"><label>(22)</label><graphic position="anchor" xlink:href="6-2630030\79da4bea-1a65-4a25-b98e-51c85ae86cfc.jpg"  xlink:type="simple"/></disp-formula><p>Similarly,</p><disp-formula id="scirp.32770-formula121873"><label>(23)</label><graphic position="anchor" xlink:href="6-2630030\0ac980c3-e5cb-4bd5-9148-16977e8b0e9d.jpg"  xlink:type="simple"/></disp-formula><p>In addition,</p><disp-formula id="scirp.32770-formula121874"><label>(24)</label><graphic position="anchor" xlink:href="6-2630030\be458048-c9d0-41c8-badd-b34aa3a41ae3.jpg"  xlink:type="simple"/></disp-formula><p>We obtain</p><disp-formula id="scirp.32770-formula121875"><label>(25)</label><graphic position="anchor" xlink:href="6-2630030\7a06d269-01d8-4b3a-98b6-15c448d96b33.jpg"  xlink:type="simple"/></disp-formula><p>In our case, we want to find a projection line in 2-dimensional space. So <img src="6-2630030\c9985ed9-f1b4-4c41-a40f-093d5afb3bda.jpg" /> equals</p><disp-formula id="scirp.32770-formula121876"><label>(26)</label><graphic position="anchor" xlink:href="6-2630030\869215f8-6dbd-4494-a974-30be33d4702b.jpg"  xlink:type="simple"/></disp-formula><sec id="s3_1"><title>3.1. Special Cases for Fisher Linear Discriminant</title><p>In practice, it always happens that there are at most two classes in the 2-dimensional chromaticity space. Then Fisher linear discriminant is considered as follows.</p><p>Case 1. There are only two classes.</p><p>In this case, the total mean is</p><disp-formula id="scirp.32770-formula121877"><label>(27)</label><graphic position="anchor" xlink:href="6-2630030\78fedb0f-aaa6-4dfb-a467-73914cf9b005.jpg"  xlink:type="simple"/></disp-formula><p>Substituting this in</p><disp-formula id="scirp.32770-formula121878"><label>(28)</label><graphic position="anchor" xlink:href="6-2630030\3a3c7c79-9200-465e-91f7-f78796e2a17c.jpg"  xlink:type="simple"/></disp-formula><p>We obtain</p><disp-formula id="scirp.32770-formula121879"><label>(29)</label><graphic position="anchor" xlink:href="6-2630030\c535bdcc-36b8-407c-a1dc-5358445a69ee.jpg"  xlink:type="simple"/></disp-formula><p>Similarly,</p><disp-formula id="scirp.32770-formula121880"><label>(30)</label><graphic position="anchor" xlink:href="6-2630030\57acf0f4-9086-4c92-994a-485cbbaadfa7.jpg"  xlink:type="simple"/></disp-formula><p>Then the between-class scatter matrix becomes</p><disp-formula id="scirp.32770-formula121881"><label>(31)</label><graphic position="anchor" xlink:href="6-2630030\1aab0400-a024-43f3-a0fd-7c86df615480.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="6-2630030\9794aadf-64ab-4c41-936c-260c9a6d9e1e.jpg" /> means “equals up to scale”.</p><p>Since we only care about the direction of projection, the scale can be ignored. From Equations (17) and (18), we obtain the projection <img src="6-2630030\ea1bceb5-3d98-4f5c-874b-1ae941a8b24c.jpg" /> as</p><disp-formula id="scirp.32770-formula121882"><label>(32)</label><graphic position="anchor" xlink:href="6-2630030\5252af88-1858-4c09-abc7-aa0e15ae0daa.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="6-2630030\2e35b4a2-81d7-4601-9a79-1f947232d1d2.jpg" /> is just a scalar.</p><p>Case 2. There is only one class.</p><p>The 2-dimensional data distribute along parallel straight lines. We hope that the invariant direction is the direction with the minimum-variance for the withinsensor data. That is, the projected data from the same sensor distribute as close as possible. If there is only one class in the 2-dimensional chromaticity space, the eigenvector corresponding to the smaller eigen-value for the 2-dimensional chromaticity data matrix will be the invariant projection direction. This is different from principal component analysis for dimensional reduction, where the eigenvectors corresponding to the largest eigenvalues are chosen for projection.</p></sec><sec id="s3_2"><title>3.2. K-Means Method for Clustering</title><p>Before applying the Fisher linear discriminant, we need to classify the original data into different groups. That is, we need to solve which class each datum belongs to and assign each datum accordingly. This is accomplished through the K-means algorithm [<xref ref-type="bibr" rid="scirp.32770-ref16">16</xref>]. Given the number of clusters, the K-means method partitions the data iteratively until the sum of square distances for all data to its class center (total intra-cluster variance) is made to be minimum.</p><p>It is possible that other algorithms such as Gaussian mixture models may give a better result. However, in practice, the K-means algorithm works well here. Figures 2 and 3 illustrate the Fisher linear discriminant for one class and three classes, where clustering is implemented through the K-means method. We can see that we have obtained satisfactory invariant images through data projection on the invariant direction chosen by Fisher linear discriminant method. In practice, we found that accurate invariant images are not necessary to remove illumination. However, the accurate shadow edge detection is very important for shadow removal.</p></sec></sec><sec id="s4"><title>4. Recovery of Shadow Free Images</title><p>It is suggested by Weiss [<xref ref-type="bibr" rid="scirp.32770-ref8">8</xref>], that we can reintegrate the derivative filter outputs to generate shadow free images and further recover intrinsic images. We compute the derivative filter outputs for R, G, and B color channels respectively and then set the derivative values in shadow edge positions to zeros. Finally, we reintegrate the derivative filter outputs back to recover the shadow free images Here, we simply consider derivative filters as the horizontal derivative filter and the vertical derivative filter. The horizontal derivative filter is defined as</p><p><img src="6-2630030\272157e1-0de5-4c58-900e-5b47fc534dce.jpg" />and the vertical derivative filter is</p><p><img src="6-2630030\ffa72f6d-5413-4621-aed4-a450545f3926.jpg" />.</p><p>After we have individual reflectance derivative map, where derivative values in shadow edge positions are set to zeros, following Weiss [<xref ref-type="bibr" rid="scirp.32770-ref8">8</xref>], we can recover the reflectance image through the following deconvolution.</p><disp-formula id="scirp.32770-formula121883"><label>(33)</label><graphic position="anchor" xlink:href="6-2630030\c323733f-26e7-4d8c-8f76-882f871b578f.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="6-2630030\ffb6519c-3f2f-4385-b5a8-c299a5f0b994.jpg" /> is the filter operation and <img src="6-2630030\454f1381-91cc-4d5f-b697-bc0ccc0ca1c7.jpg" /> is the reverse filter to f. r are the derivatives and <img src="6-2630030\428904e6-9ad9-4b83-bcd3-10905d714ff7.jpg" /> are the estimated reflectance image. Further, g satisfies the following constraint.</p><disp-formula id="scirp.32770-formula121884"><label>(34)</label><graphic position="anchor" xlink:href="6-2630030\7bac692a-d9d7-419f-a5d1-80fb7433dab5.jpg"  xlink:type="simple"/></disp-formula><p>In practice, this can be realized through the Fourier transform.</p></sec><sec id="s5"><title>5. The Shadow Removal Algorithm</title><p>In summary, our algorithm to remove shadows for a single color image consists of the following steps:</p><p>1) Compute the 2-dimensional log-chromaticity maps for original color images;</p><p>2) Cluster data in 2-dimensional log-chromaticity space using K-means algorithm;</p><p>3) Compute the invariant direction (projection line) using Fisher Linear Discriminant;</p><p>4) Generate the invariant images by projecting 2-dimensional data along invariant direction;</p><p>5) Compute the edge maps for graylevel image (each channel of R, G, B) of the original images and graylevel invariant image using Canny edge detectors;</p><p>6) Extract those edges in original edge maps but not in invariant image edge map as shadow edges;</p><p>7) Compute the derivative filter outputs for R, G, and B color channels;</p><p>8) Set the derivative values in shadow edge positions to zeros;</p><p>9) Reintegrate the derivative filter outputs back to recover shadow free images.</p></sec><sec id="s6"><title>6. Experimental Results</title><p>In test, we conducted the shadow removal algorithm on four real pictures, where the data are either collected by us or collected online. In addition, the data are not taken under the same illumination. The outcomes are displayed in Figures 4-7. The invariant images are produced through FLD as shown in (b) of Figures 4-7. The Canny edge detector is applied to extract edges in invariant image and gray-level images for each channel R, G, B of the original color image. In comparison with invariant image and gray-level images for each channel R, G, B, we can see that the shadow edges are basically extracted correctly. The edge detection is shown in (c) of Figures 4-7. Then derivatives in edge positions are set to zero values and further reintegrated back. The shadows in the recovered images are either considerably attenuated or effectively removed (refer to in (d) of Figures 4-7). We also notice that some artifacts exist in the recovered images. This results from inaccurate shadow edge detection.</p></sec><sec id="s7"><title>7. Conclusion</title><p>In this paper, we give an effective approach to recover shadow free images from a single color image, which is from unknown source. This is an improvement way that used by Finlayson [13,14]. In our experiments, we feel that accurate invariant direction is not necessary. In reality, the data in 2-dimensional log-chromaticity space from different sensors are not right parallel. However, after projection through the Fisher Linear Discriminant, we can still obtain satisfactorily invariant images. In the future work, we will work on automatic selection of number of cluster components for the K-means method. This may be achieved through cross-validation on different number of cluster components. The other clustering method instead of the K-means method may be explored in our future experiments.</p></sec><sec id="s8"><title>REFERENCES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.32770-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">B. V. Funt, M. S. Drew and M. Brockington, “Recovering Shading from Color Images,” In G. Sandini, Ed., Proceedings of the Second European Conference on Computer Vision, Springer-Verlag, Berlin, 1992, pp. 124-132.</mixed-citation></ref><ref id="scirp.32770-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">A. Prati, I. Mikic, M. M. Trivedi and R. Cucchiara, “Detecting Moving Shadows: Algorithms and Evaluation,” IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 25, No. 7, 2003, pp. 918-923.</mixed-citation></ref><ref id="scirp.32770-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">H. Farid and E. H. Adelson, “Separating Reflections from Images by Use of Independent Components Analysis,” Journal of the optical society of America, Vol. 16, No. 9, 1999, pp. 2136-2145. doi:10.1364/JOSAA.16.002136</mixed-citation></ref><ref id="scirp.32770-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">E. H. Land and J. J. McCann, “Lightness and Retinex Theory,” Journal of the Optical Society of America, Vol. 61, No. 1, 1971, pp. 1-11. doi:10.1364/JOSA.61.000001</mixed-citation></ref><ref id="scirp.32770-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">R. Szeliksi, S. Avidan and P. Anandan, “Layer Extraction from Multiple Images Containing Reflections and Transparency,” Proceedings of the IEEE conference Computer Vision and Pattern Recognition, Hilton Head Island, June 2000, pp. 246-253.</mixed-citation></ref><ref id="scirp.32770-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">H. G. Barrow and J. M. Tenenbaum, “Recovering Intrinsic Scene Characteristics from Images,” In A. Hanson and E. Riseman, Eds., Computer Vision Systems, Academic Press, Waltham, 1978.</mixed-citation></ref><ref id="scirp.32770-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Y. Matsushita and K. Nishino, “Illumination Normalization with Time-Dependent Intrinsic Images for Video Surveillance,” IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 26, No. 10, 2004, pp. 1336-1347. doi:10.1109/TPAMI.2004.86</mixed-citation></ref><ref id="scirp.32770-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Y. Weiss, “Deriving Intrinsic Images from Image Sequences,” Proceedings of the IEEE International Conference on Computer Vision, Vancouver, 7-14 July 2001, pp. 68-75.</mixed-citation></ref><ref id="scirp.32770-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">M. Baba and N. Asada, “Shadow Removal from a Real Picture,” Proceedings of the SIGGRAPH 2003 Conference on Sketches &amp; Applications, San Diego, 30-31 July 2003, p. 1.</mixed-citation></ref><ref id="scirp.32770-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">M. F. Tappen, W. T. Freeman and E. H. Adelson, “Recovering Intrinsic Images from a Single Image,” IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 27, No. 9, 2005, pp. 1459-1472.</mixed-citation></ref><ref id="scirp.32770-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">B. A. Olshausen and D. J. Field, “Emergence of Simple Cell Receptive Field Properties by Learning a Sparse Code for Natural Images,” Nature, Vol. 381, 1996, pp. 607-608. doi:10.1038/381607a0</mixed-citation></ref><ref id="scirp.32770-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">E. P. Simoncelli, “Statistical Models for Images: Compression Restoration and Synthesis,” Proceedings of Asilomar Conference on Signals, Systems and Computers, Pacific Grove, 2-5 November 1997, pp. 673-678.</mixed-citation></ref><ref id="scirp.32770-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">G. D. Finlayson, M. S. Drew and C. Lu, “Intrinsic Images by Entropy Minimization,” Proceedings of the 8th European Conference on Computer Vision, Prague, 11-14 May 2004, pp. 582-595.  
http://www.cs.sfu.ca/~mark/ftp/Eccv04/</mixed-citation></ref><ref id="scirp.32770-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">G. D. Finlayson, S. D. Hordley and M. S. Drew, “Removing Shadows from Images,” ECCV 2002: European Conference on Computer Vision, Copenhagen, 27 May-2 June 2002, pp. 823-836.</mixed-citation></ref><ref id="scirp.32770-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">R. O. Duda, P. E. Hart and D. G. Stork, “Pattern Classification,” 2nd Edition, Wiley-Interscience, New York, 2000.</mixed-citation></ref><ref id="scirp.32770-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">J. B. MacQueen, “Some Methods for Classification and Analysis of Multivariate Observations,” In: Proceedings of 5th Berkeley Symposium on Mathematical Statistics and Probability, University of California Press, Berkeley, 1967, pp. 281-297.</mixed-citation></ref></ref-list></back></article>