action.h
来自「Blob tracking with background subtractio」· C头文件 代码 · 共 42 行
H
42 行
// Action.h: interface for the CAction class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ACTION_H__69E41E4A_4B30_4140_9829_F1292B97DD71__INCLUDED_)
#define AFX_ACTION_H__69E41E4A_4B30_4140_9829_F1292B97DD71__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "cv.h"
#include "highgui.h"
class CAction
{
public:
CAction(int w,int h);
virtual ~CAction();
IplImage* Action(IplImage *frameRaw);
void GetEvenRows(IplImage * src, IplImage** dst);
void doAction(IplImage* cur,IplImage* prev,IplImage* res);
int ComputeVelocity(IplImage *cur,IplImage *prev);
void SubByVelocityShift(IplImage *cur, IplImage *prev, IplImage *res, int step, int thres);
public:
CvMat *matForEvenRows;
IplImage * m_imgCur;
IplImage * m_imgPrev;
};
#endif // !defined(AFX_ACTION_H__69E41E4A_4B30_4140_9829_F1292B97DD71__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?