Commit 924497cb authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

increased number of points in optflow-estimate-rigid test, because in the…

increased number of points in optflow-estimate-rigid test, because in the presense of noise there should be enough points for robust transform estimation
parent 55a722fc
...@@ -96,7 +96,7 @@ bool CV_RigidTransform_Test::testNPoints(int from) ...@@ -96,7 +96,7 @@ bool CV_RigidTransform_Test::testNPoints(int from)
Mat aff(2, 3, CV_64F); Mat aff(2, 3, CV_64F);
rng.fill(aff, CV_RAND_UNI, Scalar(-2), Scalar(2)); 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 fpts(1, n, CV_32FC2);
Mat tpts(1, n, CV_32FC2); Mat tpts(1, n, CV_32FC2);
...@@ -125,7 +125,7 @@ bool CV_RigidTransform_Test::testNPoints(int from) ...@@ -125,7 +125,7 @@ bool CV_RigidTransform_Test::testNPoints(int from)
if( fabs(dB) < 0.01*nB ) if( fabs(dB) < 0.01*nB )
continue; 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 ); ts->printf( CvTS::LOG, "Threshold = %f, norm of difference = %f", thres, d );
return false; return false;
} }
...@@ -150,7 +150,7 @@ bool CV_RigidTransform_Test::testImage() ...@@ -150,7 +150,7 @@ bool CV_RigidTransform_Test::testImage()
const double thres = 0.03; const double thres = 0.03;
if (norm(aff_est, aff, NORM_INF) > thres) 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, ts->printf( CvTS::LOG, "Threshold = %f, norm of difference = %f", thres,
norm(aff_est, aff, NORM_INF) ); norm(aff_est, aff, NORM_INF) );
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment