Commit 1a809ca8 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed msvc compile warning

parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment