projects
/
profile
/
ivi
/
opencv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #3099 from f-morozov:akaze_tutorial
[profile/ivi/opencv.git]
/
samples
/
cpp
/
tutorial_code
/
features2D
/
AKAZE_tracking
/
stats.h
1
#ifndef STATS_H
2
#define STATS_H
3
4
struct Stats
5
{
6
int matches;
7
int inliers;
8
double ratio;
9
int keypoints;
10
11
Stats() : matches(0),
12
inliers(0),
13
ratio(0),
14
keypoints(0)
15
{}
16
17
Stats& operator+=(const Stats& op) {
18
matches += op.matches;
19
inliers += op.inliers;
20
ratio += op.ratio;
21
keypoints += op.keypoints;
22
return *this;
23
}
24
Stats& operator/=(int num)
25
{
26
matches /= num;
27
inliers /= num;
28
ratio /= num;
29
keypoints /= num;
30
return *this;
31
}
32
};
33
34
#endif // STATS_H