init - 初始化项目

This commit is contained in:
Lee Nony
2022-05-06 01:58:53 +08:00
commit 90a5cc7cb6
6772 changed files with 2837787 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
#ifndef STATS_H
#define STATS_H
struct Stats
{
int matches;
int inliers;
double ratio;
int keypoints;
double fps;
Stats() : matches(0),
inliers(0),
ratio(0),
keypoints(0),
fps(0.)
{}
Stats& operator+=(const Stats& op) {
matches += op.matches;
inliers += op.inliers;
ratio += op.ratio;
keypoints += op.keypoints;
fps += op.fps;
return *this;
}
Stats& operator/=(int num)
{
matches /= num;
inliers /= num;
ratio /= num;
keypoints /= num;
fps /= num;
return *this;
}
};
#endif // STATS_H