视频目标分割是视频目标跟踪、统计以及识别的基础.阴影是影响目标分割准确性的重要因素,有效对阴影进行检测与消除可提高视频目标分割的质量.本文提出一种采用状态机对阴影进行建模的方法,通过阴影模型来消除阴影.算法定义背景、阴影以及前景的势函数,利用马尔可夫随机场融合视频序列的时空邻域信息,采用Gibbs采样算法求解最大后验概率,提高视频目标分割的质量.在不同环境下对本文算法的有效性进行测试,并与其他算法进行比较,结果证明本文算法的有效性.
Video segmentation is important for video object tracking, counting and recognition. Shadows are the factors that affect the accuracy of object segmentation. Efficiently detecting and removing the shadows can improve the quality of object segmentation. An algorithm for ,video-foreground and shadow segmentation is proposed in this paper. It models shadows with state machine and the shadows are removed according to the shadow models. The potential functions for the background, shadow and foreground are defined. The spatiotemporal neighboring relationships in the video sequence are constructed by using Markov random fields. Gibbs sampling algorithm is adopted to solve the MAP problem and thus the segmentation qualityis improved . The correctness of the proposed algorithm is tested under different environments and the results demonstrate the validity of the algorithm compared with other algorithms.