1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Warning supression fix for XCode 13.1 and newer. Backport #23203

This commit is contained in:
Alexander Smorkalov
2023-02-02 13:57:20 +03:00
parent cb2052dbfe
commit 3d635cb4a7
6 changed files with 9 additions and 16 deletions
@@ -559,12 +559,9 @@ void CV_CameraCalibrationTest::run( int start_from )
i = 0;
double dx,dy;
double rx,ry;
double meanDx,meanDy;
double maxDx = 0.0;
double maxDy = 0.0;
meanDx = 0;
meanDy = 0;
for( currImage = 0; currImage < numImages; currImage++ )
{
double imageMeanDx = 0;
@@ -576,9 +573,6 @@ void CV_CameraCalibrationTest::run( int start_from )
dx = rx - imagePoints[i].x;
dy = ry - imagePoints[i].y;
meanDx += dx;
meanDy += dy;
imageMeanDx += dx*dx;
imageMeanDy += dy*dy;
@@ -601,9 +595,6 @@ void CV_CameraCalibrationTest::run( int start_from )
perViewErrors[currImage] = goodPerViewErrors[currImage];
}
meanDx /= numImages * etalonSize.width * etalonSize.height;
meanDy /= numImages * etalonSize.width * etalonSize.height;
/* ========= Compare parameters ========= */
/* ----- Compare focal lengths ----- */