利用背景建模检测运动物体
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
int main(int argc, char** argv) {
IplImage* pFrame = NULL;
IplImage* pFrImg = NULL;
IplImage* pBkImg = NULL;
CvMat* pFrameMat = NULL;
CvMat* pFrMat = NULL;
CvMat* pBkMat = NULL;
CvCapture* pCapture