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

build: fix/eliminate MSVC warnings

This commit is contained in:
Alexander Alekhin
2022-12-10 02:08:48 +00:00
parent 281b790618
commit be326ff752
8 changed files with 35 additions and 18 deletions
+5 -5
View File
@@ -2294,8 +2294,8 @@ static inline std::pair<int, int> matchPatternPoints(const vector<Point> &finder
const float tmp = normL2Sqr<float>(Point2f(finderPattern[i]) - cornerPointsQR[j]);
if (tmp < distanceToOrig) {
distanceToOrig = tmp;
closestFinderPatternV = i;
closetOriginalV = j;
closestFinderPatternV = (int)i;
closetOriginalV = (int)j;
}
}
}
@@ -2550,15 +2550,15 @@ bool QRDecode::versionDefinition()
if (useCode) {
CV_LOG_INFO(NULL, "Version type: useCode");
version = versionByCode;
version = (uint8_t)versionByCode;
}
else if (useFinderPattern ) {
CV_LOG_INFO(NULL, "Version type: useFinderPattern");
version = cvRound(versionByFinderPattern);
version = (uint8_t)cvRound(versionByFinderPattern);
}
else {
CV_LOG_INFO(NULL, "Version type: useTransition");
version = versionByTransition;
version = (uint8_t)versionByTransition;
}
version_size = 21 + (version - 1) * 4;
if ( !(0 < version && version <= 40) ) { return false; }