⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gmmoriginal.h

📁 动态场景中运动目标检测提取与跟踪 对新手很有用
💻 H
字号:
#ifndef GMMORIGINAL_H
#define GMMORIGINAL_H

#include "GM.h"
#include "GMM.h"
#include "cv.h"
#include "highgui.h"
#include <fstream.h>
#include "GMOriginal.h"

/**
 *this implements the new GMM algorithm.
 */

//#define    K               5
//#define    T               0.7
//#define    ALPHA_RGB       0.3

struct GMSOriginal
{
	GMOriginal gm[K];
};
class GMMOriginal
{
public:
	int height;
	int width;
	GMSOriginal* gmm;  
    IplImage* pImage;
	IplImage* pResultImage;
	//char* originalImgMat;//3*height*width 大小
	//char* resultImgMat;//同上
	CvCapture* pCapture;
	//char xt[3];
    int xt[3];
	
public:
	GMMOriginal(CvCapture* pCapture);
	~GMMOriginal();
	/**
	*find match of pixel xt
	*@param xt the current pixel
	*@param g the mixture models correspond to xt
	*return the location of the match if find, or return a number larger than K
	*/
	int findMatch(int* xt, GMSOriginal& g);
	// reorder the GMM using the parameter of w
	void reorderGMM(GMSOriginal& g);
	GMOriginal createNewGM(int* xt);
	void processImage();
	



};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -