gm.h
来自「动态场景中运动目标检测提取与跟踪 对新手很有用」· C头文件 代码 · 共 47 行
H
47 行
#ifndef GM_H
#define GM_H
#include "stdafx.h"
#define V0 25.0
#define MPI 15.749609945722
#define ALPHA 0.01
class GM
{
public:
double w;//=0.05;//the weight of each model
int u[3];//={0,0,0};//red green and blue
double gama[3];//={V0,V0,V0};// gama_red green and blue.
bool newGMM;//=false;
public:
GM();
GM(int xt[3]);
~GM();
void initdata();
void updateData();
void updateData(int* xt);
bool update_u(int* xt,int length);
bool update_gama(int* xt, int length);
GM& operator = (GM& g);
};
double vector_zhiji(double* x1,double* x2,int length);
double vector_zhiji(double* x1, int* x2, int length);
bool vectorSqrt(double* gm, double* gm_return,int length);
bool vectorAdd(double* xt, double* u, double* add_return, int length);
bool vectorSub(int* xt, int* u, int* sub_return, int length);
bool vectorMul(double* vec1, double* vec2, double* mul_return, int length);
bool vectorMul(int* vec1, double* vec2, double* mul_return, int length);
bool vectorMul(int* vec1, int* vec2, double* mul_return, int length);
bool vectorMulNum(double num, int* vec, int* mul_return,int length);
bool vectorMulNum(double num, double* vec, double* mul_return,int length);
bool getDoubleVector(int* vec, double* vec_return, int length);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?