removed test whether z is negative in gpu::solvePnpRansac (there is no need in this for tests passing)
This commit is contained in:
@@ -128,7 +128,10 @@ TEST(solvePnpRansac, accuracy)
|
||||
|
||||
Mat rvec;
|
||||
Mat tvec;
|
||||
solvePnpRansac(object, image, camera_mat, Mat(), rvec, tvec, SolvePnpRansacParams());
|
||||
SolvePnpRansacParams params;
|
||||
vector<int> inliers;
|
||||
params.inliers = &inliers;
|
||||
solvePnpRansac(object, image, camera_mat, Mat(), rvec, tvec, params);
|
||||
|
||||
ASSERT_LE(norm(rvec - rvec_gold), 1e-3f);
|
||||
ASSERT_LE(norm(tvec - tvec_gold), 1e-3f);
|
||||
|
Reference in New Issue
Block a user