针对目前运动目标检测算法中常将阴影误检为前景目标的问题,提出一种基于Phong物体光照模型的阴影检测算法。基于Phong物体光照模型,我们对场景中象素的亮度值进行分析,通过定义一个亮度相对变化量,推导出他在整个阴影区域是比较稳定的,所以在一个(5×5)的模板上用协方差来衡量这种稳定性,从而得到第一个阴影判决式。又推导出阴影区域亮度相对变化量随时间的变化保持相对稳定,设计一个滤波模板来增大目标区域的不稳定性,从而得到第二个阴影判决式。最后结合以上二个阴影判决式进行阴影检测,并对实验结果进行定性和定量的评估。与前人提出算法比较,本文提出的算法在阴影检测率和区分率等方面都得到了提高,具有较强的鲁棒性。
Focusing on the problem that shadows cast by moving objects are detected incorrectly as foreground targets by most of the current moving objects detection algorithm,a method of shadow detection based on the Phong lighting and radiosity model is proposed. Based on the Phong model, we analyze the brightness of pixels in image sequences, the Relative Change of Brightness (RCB) in shadowed regions is proved to be more stable than moving objects regions,it is measured by the covariance of RCB of pixels on a template (5 * 5) so as to acquire the first discriminant. As the RCB in shadowed regions is stable in image sequences,a filter template is designed to make the RCB more unstable in regions of moving objects,so the second dis- criminant is presented. Shadow detection is carried out by fusing the two discriminant formulas described above, experimental results are evaluated quantitatively and qualitatively,and show that our method is robust and offers more advantage over other algorithms presented previously on detection rate and discrirrination rate.