?? staticdetect.h
字號:
#define BACK_ALL_NUM 100 //計算背景所需幀數(shù)
#define BACK_SEQ_NUM 3 //計算背景循環(huán)數(shù)目
#define THRESHOLD 20 //設(shè)置差分閾值
class CStaticDetect
{
public:
CStaticDetect(int nwidth, int nheight);
virtual ~CStaticDetect();
void ReceiveFrame(int index, BYTE* sBuf); //主調(diào)用函數(shù)
public:
BYTE *m_pCurImage; //當(dāng)前圖像
BYTE *m_pDetectImage; //檢測結(jié)果圖像
int m_nFrame, count;
int WIDTH, HEIGHT,IMAGESIZE;
short int *m_pBackHistgram; //背景顏色統(tǒng)計
BYTE *m_pGrayImage; //當(dāng)前灰度圖像
BYTE *m_pBackground; //背景
BYTE *m_pDiffImage; //差分圖像
UINT *m_pTemplate; //存取多幀數(shù)據(jù)
private:
void RGBToGray(BYTE *sRGB,BYTE *sGray,int nWidth, int nHeight);
void DiffImage(BYTE *sGray,BYTE *pGray,int nWidth, int nHeight,int nThreshold);
void GetMultiData(BYTE *sGray,int nWidth, int nHeight);
void GetBgImage();
};
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -