提交 60bd284b 编写于 作者: T Tomoaki Teshima

[moved from opencv] fix wrong index

original commit: https://github.com/opencv/opencv/commit/3cfe7b9af99aaeb4ca7d387f78134896c7b3456d
上级 0b8aecd9
......@@ -283,7 +283,7 @@ void cv::cuda::solvePnPRansac(const Mat& object, const Mat& image, const Mat& ca
p_transf.z = rot[6] * p.x + rot[7] * p.y + rot[8] * p.z + transl[2];
p_proj.x = p_transf.x / p_transf.z;
p_proj.y = p_transf.y / p_transf.z;
if (norm(p_proj - image_normalized.at<Point2f>(0, i)) < max_dist)
if (norm(p_proj - image_normalized.at<Point2f>(i)) < max_dist)
inliers->push_back(i);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册