提交 1a809ca8 编写于 作者: V Vadim Pisarevsky

fixed msvc compile warning

上级 cc11a8d1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册