removed test whether z is negative in gpu::solvePnpRansac (there is no need in this for tests passing)

This commit is contained in:
Alexey Spizhevoy
2011-03-02 09:40:14 +00:00
parent 74c398e6b7
commit 4e6572acd9
3 changed files with 13 additions and 16 deletions

View File

@@ -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);