针对传统背景提取方法在前景运动对象密度较高,亦或前景出现过于频繁时,提取到的背景图像会掺杂很多前景成分的问题,提出了一种基于形态学和像素灰度归类的背景重建算法。该算法通过三帧差分法和形态学把每帧图像分为前景对象和背景区域;然后再用像素灰度归类法只对背景区域进行背景重建,以期在前景对象密度较高时正确重建背景。实验结果证明,新方法能够在车辆密度较高的情况下正确生成背景。
Aiming at the problem that the tradition background extraction method could not precise extraction background when moving objects have high density or appear too frequently,an algorithm of background reconstruction based on morphological and pixel intensity classification(PIC) was presented.The pixels in each frame was classified into background area and moving objection area,using three frame difference and morphological analysis.Then background modeling was extracted with PIC except the moving objection area.The experiment results show that the method proposed can extract accurate background in high vehicle density.