calib3d: fix warning from gcc7

This commit is contained in:
Vladislav Sovrasov 2017-08-25 13:51:43 +03:00 committed by sovrasov
parent ef7833a271
commit e0ff5106d3

View File

@ -137,7 +137,7 @@ bool solvePnP( InputArray _opoints, InputArray _ipoints,
CvMat c_cameraMatrix = cameraMatrix, c_distCoeffs = distCoeffs;
CvMat c_rvec = rvec, c_tvec = tvec;
cvFindExtrinsicCameraParams2(&c_objectPoints, &c_imagePoints, &c_cameraMatrix,
c_distCoeffs.rows*c_distCoeffs.cols ? &c_distCoeffs : 0,
(c_distCoeffs.rows && c_distCoeffs.cols) ? &c_distCoeffs : 0,
&c_rvec, &c_tvec, useExtrinsicGuess );
result = true;
}