Commit 6fa93647 authored by Alexander Shishkov's avatar Alexander Shishkov

fixed compilation errors in epnp with gcc

parent c5d8ec4a
......@@ -30,8 +30,12 @@ double ePnP( InputArray _opoints, InputArray _ipoints,
_tvec.create(3,1,CV_64F);
_rvec.create(3,1,CV_64F);
Mat(3, 1, CV_64FC1, t_est).copyTo(_tvec.getMat());
Rodrigues(Mat(3, 3, CV_64FC1, R_est), _rvec.getMat());
Mat t = Mat(3, 1, CV_64FC1, t_est);
Mat tvec = _tvec.getMat();
t.copyTo(tvec);
Mat R = Mat(3, 3, CV_64FC1, R_est);
Mat rvec = _rvec.getMat();
Rodrigues(R, rvec);
return error;
}
}
......
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