Download samples/cpp/tutorial_code/features2D/AKAZE_tracking/stats.h from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/samples/cpp/tutorial_code/features2D/AKAZE_tracking/stats.h
- Command line
-
hf download hf://tgollogly/test/samples/cpp/tutorial_code/features2D/AKAZE_tracking/stats.h
-
curl -L -o stats.h https://huggingface.co/tgollogly/test/resolve/main/samples/cpp/tutorial_code/features2D/AKAZE_tracking/stats.h
665 Bytes
| 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; | |
| } | |
| }; | |