meanprofile.h

来自「VC视频对象的跟踪提取原代码(vc视频监控源码)」· C头文件 代码 · 共 47 行

H
47
字号
/* * MeanProfile.h *  * class for calculating an updated mean profile * */#include <limits.h>#include "NagMatrix.h"#include "ProfileSet.h"namespace ReadingPeopleTracker{class MeanProfile : public Profile{public:        int no_processed;    int max_n;        NagMatrix mean_squares;    NagMatrix mean_distances;        void reset_mean();        MeanProfile(int max = INT_MAX) : Profile(),				     mean_squares(Profile::NO_CONTROL_POINTS,						  Profile::NO_CONTROL_POINTS),				     mean_distances(Profile::NO_CONTROL_POINTS,						    Profile::NO_CONTROL_POINTS)	{	    max_n = max;	    reset_mean();	}        //MeanProfile(istream &data_in);        void calculate_mean(istream &data_in);    void update(const Profile *NewProfile);    void update(Profile &NewProfile) { update(&NewProfile); }    void update(ProfileSet &NewProfileSet);};} // namespace ReadingPeopleTracker

⌨️ 快捷键说明

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