1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Fixed warning on Windows, clarified refineDetectedMarkers method

This commit is contained in:
Benjamin Knecht
2025-02-20 15:12:56 +01:00
parent f212c163e3
commit 1f9d6aa6cf
2 changed files with 2 additions and 2 deletions
@@ -837,7 +837,7 @@ struct ArucoDetector::ArucoDetectorImpl {
}
// Clean up rejectedImgPoints by comparing to itself and all candidates
const float epsilon = 0.000001;
const float epsilon = 0.000001f;
auto compareCandidates = [epsilon](std::vector<Point2f> a, std::vector<Point2f> b) {
for (int i = 0; i < 4; i++) {
if (std::abs(a[i].x - b[i].x) > epsilon || std::abs(a[i].y - b[i].y) > epsilon) {