www.pudn.com > 人体步态跟踪识别bate版.rar > BackGround.h
// BackGround.h: interface for the CBackGround class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BACKGROUND_H__7ACDC165_B84E_4EB2_A89A_076E2B82EE43__INCLUDED_)
#define AFX_BACKGROUND_H__7ACDC165_B84E_4EB2_A89A_076E2B82EE43__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "dibapi.h"
class CBackGround
{
public:
int m_nEndFrame;
int m_nBeginFrame;
int m_nCurrentFrame;
int m_ImageWidth;
int m_ImageHeight;
CString m_FileName;
public:
int m_nFrameTotalNum; //总帧数
void SetEndFrame(int nEndFrame); //设置终止帧
void SetCurrentFrame(int nCurrentFrame); //设置当前帧
void SetFileName(CString StrFilePathName); //设置文件路径
CString GetFileName(CString strFilePathName, int nCurFrameNum); //获得文件的名字
BOOL LoadDibSeq(); //装载图像序列
void BinaFrameDiff(unsigned char *pUnchImg1, unsigned char *pUnchImg2, unsigned char * pUnchResult,int nThreshold);
void ErodeFrameDiff(unsigned char *pUnchImg, int nErodeHalfWin, int nErodeThreshold, unsigned char *pUnchResult);
BOOL GetBackground(int nTotalFrameNum,unsigned char * pUnchBackGround); //获得构造的背景图像
void ReplaceHDIB(HDIB hDIB);
void InitDIBData();
HDIB m_hDIB;
CPalette* m_palDIB;
HDIB GetHDIB() const //取得DIB句柄
{ return m_hDIB; }
CPalette* GetDocPalette() const //取得调色板句柄
{ return m_palDIB; }
CBackGround();
virtual ~CBackGround();
};
#endif // !defined(AFX_BACKGROUND_H__7ACDC165_B84E_4EB2_A89A_076E2B82EE43__INCLUDED_)