fixed msvc compile warning
This commit is contained in:
parent
cc11a8d183
commit
1a809ca89b
@ -116,7 +116,7 @@ bool cv::solvePnP( InputArray _opoints, InputArray _ipoints,
|
||||
double f = PnP.compute_pose(R, tvec);
|
||||
cv::Rodrigues(R, rvec);
|
||||
if(cameraMatrix.type() == CV_32F)
|
||||
cameraMatrix.at<float>(0,0) = cameraMatrix.at<float>(1,1) = f;
|
||||
cameraMatrix.at<float>(0,0) = cameraMatrix.at<float>(1,1) = (float)f;
|
||||
else
|
||||
cameraMatrix.at<double>(0,0) = cameraMatrix.at<double>(1,1) = f;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user