From 3780de9d98c7203cf68813f529f92ee06fb2fa7a Mon Sep 17 00:00:00 2001 From: edgarriba Date: Sat, 9 Aug 2014 21:26:38 +0200 Subject: [PATCH] test for DLS --- modules/calib3d/test/test_solvepnp_ransac.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/calib3d/test/test_solvepnp_ransac.cpp b/modules/calib3d/test/test_solvepnp_ransac.cpp index 6d315a3..8e55554 100644 --- a/modules/calib3d/test/test_solvepnp_ransac.cpp +++ b/modules/calib3d/test/test_solvepnp_ransac.cpp @@ -154,11 +154,12 @@ protected: { ts->set_failed_test_info(cvtest::TS::OK); - vector points; - const int pointsCount = 400; + vector points, points_dls; + const int pointsCount = 500, pointsCount2 = 300; points.resize(pointsCount); + points_dls.resize(pointsCount2); generate3DPointCloud(points); - + generate3DPointCloud(points_dls); const int methodsCount = 4; RNG rng = ts->get_rng(); @@ -172,7 +173,8 @@ protected: int successfulTestsCount = 0; for (int testIndex = 0; testIndex < totalTestsCount; testIndex++) { - if (runTest(rng, mode, method, points, eps, maxError)) + vector points_ = method != 3 ? points : points_dls; + if (runTest(rng, mode, method, points_, eps, maxError)) successfulTestsCount++; } //cout << maxError << " " << successfulTestsCount << endl; -- 2.7.4