mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Merge pull request #26405 from kaingwade:rename_features2d
Rename features2d #26405 This PR renames the module _features2d_ to _features_ as one of the Big OpenCV Cleanup #25007. Related PR: opencv/opencv_contrib: [#3820](https://github.com/opencv/opencv_contrib/pull/3820) opencv/ci-gha-workflow: [#192](https://github.com/opencv/ci-gha-workflow/pull/192)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user