<p>See the following paper, which contains links to the source code for various shadow detection/removal algorithms:</p>

<p>A. Sanin, C. Sanderson, B.C. Lovell. "Shadow Detection: A Survey and Comparative Evaluation of Recent Methods", Pattern Recognition, Vol. 45, No. 4, pp. 1684-1695, 2012.</p>

<p>Official version at:
<a href="http://dx.doi.org/10.1016/j.patcog.2011.10.001" rel="nofollow">http://dx.doi.org/10.1016/j.patcog.2011.10.001</a></p>

<p>There is also a pre-print of the above paper on the Arxiv server: <a href="http://arxiv.org/abs/1304.1233" rel="nofollow">http://arxiv.org/abs/1304.1233</a></p>
Open source code for cast shadow detection and removal
<p>I have implemented foreground subtraction to detect moving cars and the results look pretty good. The only issue is in removing the shadows , which form a part of the foreground.</p>

<p>I searched online to find a way to fix this and found links to many papers :</p>

<p>1) Moving Shadow Detection with Low- and Mid-Level Reasoning</p>

<p>2)J.-F. Lalonde, A. A. Efros, and S. G. Narasimhan. Detecting Ground Shadows 
in Outdoor Consumer Photographs. in European Conference on Computer Vision, 
2010.</p>

<p><a href="http://www.yourfilelink.com/get.php?fid=744441" rel="nofollow">Please watch the video</a>
 for a better idea of what I am looking for. Though the papers make for great learning, they are beyond my level of comprehension at this point. Could someone point me to some open source code which could help me understand and implement shadow removal?</p>