From 924497cb5fc3c2fb7de75a3e4664454a41e40c41 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Wed, 10 Nov 2010 19:49:36 +0000 Subject: [PATCH] increased number of points in optflow-estimate-rigid test, because in the presense of noise there should be enough points for robust transform estimation --- tests/cv/src/aestimaterigid.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cv/src/aestimaterigid.cpp b/tests/cv/src/aestimaterigid.cpp index 02a16a6123..b69833939d 100644 --- a/tests/cv/src/aestimaterigid.cpp +++ b/tests/cv/src/aestimaterigid.cpp @@ -96,7 +96,7 @@ bool CV_RigidTransform_Test::testNPoints(int from) Mat aff(2, 3, CV_64F); rng.fill(aff, CV_RAND_UNI, Scalar(-2), Scalar(2)); - int n = (unsigned)rng % 100 + 3; + int n = (unsigned)rng % 100 + 10; Mat fpts(1, n, CV_32FC2); Mat tpts(1, n, CV_32FC2); @@ -125,7 +125,7 @@ bool CV_RigidTransform_Test::testNPoints(int from) if( fabs(dB) < 0.01*nB ) continue; } - ts->set_failed_test_info(CvTS::FAIL_MISMATCH); + ts->set_failed_test_info(CvTS::FAIL_BAD_ACCURACY); ts->printf( CvTS::LOG, "Threshold = %f, norm of difference = %f", thres, d ); return false; } @@ -150,7 +150,7 @@ bool CV_RigidTransform_Test::testImage() const double thres = 0.03; if (norm(aff_est, aff, NORM_INF) > thres) { - ts->set_failed_test_info(CvTS::FAIL_MISMATCH); + ts->set_failed_test_info(CvTS::FAIL_BAD_ACCURACY); ts->printf( CvTS::LOG, "Threshold = %f, norm of difference = %f", thres, norm(aff_est, aff, NORM_INF) ); return false;