GMM_运动检测_目标跟踪_背景建模


GMM_运动检测_目标跟踪_背景建模 基于高斯混合模型的运动物体检测。 有源代码和可执行程序,效果较好。
资源截图
代码片段和文件信息
// base.cpp : implementation file
//

#include “stdafx.h“
#include “objectExtraction.h“
#include “base.h“
//#include 

//using namespace std;

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Cbase dialog


Cbase::Cbase(CWnd* pParent /*=NULL*/)
: CDialog(Cbase::IDD pParent)
{
pCapture=NULL;
//{{AFX_DATA_INIT(Cbase)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
Cbase::~Cbase()
{
if(pCapture!=NULL)
{
cvReleaseCapture(&pCapture);
}
}


void Cbase::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Cbase)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Cbase CDialog)
//{{AFX_MSG_MAP(Cbase)
ON_BN_CLICKED(IDC_OPENFILE OnOpenfile)
ON_BN_CLICKED(IDC_PROCESS OnProcess)
ON_BN_CLICKED(IDC_OPENCAM OnOpencam)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cbase message handlers



void Cbase::OnOpenfile() 
{
// TODO: Add your control notification handler code here
CFileDialog dlg(TRUE00OFN_HIDEREADONLY“*.avi|所有文件|*.*||“this);
if (dlg.DoModal()==IDOK)
{
CString lpszPathName=dlg.GetPathName();
char* path=(LPTSTR)(LPCTSTR)(lpszPathName);
if(pCapture!=NULL)
{
cvReleaseCapture(&pCapture);
}
if((pCapture=cvCreateFileCapture(path))==NULL)
{
AfxMessageBox(“in Cbase.OnOpenfile(),the pCapture is null“);
}
ASSERT(pCapture);
}

}

void Cbase::OnOpencam() 
{
// TODO: Add your control notification handler code here
if(pCapture!=NULL)
{
cvReleaseCapture(&pCapture);
}
if((pCapture=cvCreateCameraCapture(-1))==NULL)
{
AfxMessageBox(“in Cbase.OnOpencam(),the pCapture is null“);
}
ASSERT(pCapture);

}

void Cbase::OnProcess() 
{
// TODO: Add your control notification handler code here


}

UINT Cbase::processImage(LPVOID lpParam)
{
return 0;
}



 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2156  2007-09-05 16:33  GMM_目标检测_运动跟踪_背景建模ase.cpp

     文件       1374  2007-08-31 11:33  GMM_目标检测_运动跟踪_背景建模ase.h

     文件       4183  2007-10-22 10:01  GMM_目标检测_运动跟踪_背景建模aseClass.cpp

     文件        536  2007-10-21 20:47  GMM_目标检测_运动跟踪_背景建模aseClass.h

     文件       7466  2006-11-07 18:56  GMM_目标检测_运动跟踪_背景建模lock.h

     文件      66616  1999-08-25 17:30  GMM_目标检测_运动跟踪_背景建模Boy.bmp

     文件      51958  2007-10-20 15:33  GMM_目标检测_运动跟踪_背景建模Boy11.bmp

     文件        160  2007-10-21 19:37  GMM_目标检测_运动跟踪_背景建模callbackfunc.h

     文件       1166  2006-11-07 21:01  GMM_目标检测_运动跟踪_背景建模CHANGES.TXT

     文件    1256648  2007-10-20 18:56  GMM_目标检测_运动跟踪_背景建模complex.txt

     文件      28601  2008-10-26 15:15  GMM_目标检测_运动跟踪_背景建模Debugase.obj

     文件          0  2008-04-17 17:09  GMM_目标检测_运动跟踪_背景建模Debugase.sbr

     文件      19252  2008-10-26 15:15  GMM_目标检测_运动跟踪_背景建模DebugaseClass.obj

     文件          0  2008-04-17 17:09  GMM_目标检测_运动跟踪_背景建模DebugaseClass.sbr

     文件     230454  2008-06-02 21:15  GMM_目标检测_运动跟踪_背景建模DebuggImage.bmp

     文件     843824  2006-10-18 21:49  GMM_目标检测_运动跟踪_背景建模Debugcv100.dll

     文件     598067  2006-10-18 21:50  GMM_目标检测_运动跟踪_背景建模Debugcvaux100.dll

     文件    1011764  2006-10-18 21:49  GMM_目标检测_运动跟踪_背景建模Debugcxcore100.dll

     文件      49615  2008-10-26 15:15  GMM_目标检测_运动跟踪_背景建模DebugDlgImageProcess.obj

     文件          0  2008-04-17 17:09  GMM_目标检测_运动跟踪_背景建模DebugDlgImageProcess.sbr

     文件      33536  2008-10-26 15:15  GMM_目标检测_运动跟踪_背景建模DebugDlgOnSaveAs.obj

     文件          0  2008-04-17 17:09  GMM_目标检测_运动跟踪_背景建模DebugDlgOnSaveAs.sbr

     文件      21102  2008-10-26 15:15  GMM_目标检测_运动跟踪_背景建模DebugDlgParameters.obj

     文件          0  2008-04-17 17:09  GMM_目标检测_运动跟踪_背景建模DebugDlgParameters.sbr

     文件      32245  2008-10-26 15:15  GMM_目标检测_运动跟踪_背景建模DebugGM.obj

     文件          0  2008-04-17 17:09  GMM_目标检测_运动跟踪_背景建模DebugGM.sbr

     文件      32058  2008-10-26 15:15  GMM_目标检测_运动跟踪_背景建模DebugGMM.obj

     文件          0  2008-04-17 17:09  GMM_目标检测_运动跟踪_背景建模DebugGMM.sbr

     文件      32076  2008-10-26 15:15  GMM_目标检测_运动跟踪_背景建模DebugGMMOriginal.obj

     文件          0  2008-04-17 17:09  GMM_目标检测_运动跟踪_背景建模DebugGMMOriginal.sbr

............此处省略120个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)