mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
increased number of points in optflow-estimate-rigid test, because in the presense of noise there should be enough points for robust transform estimation
This commit is contained in:
parent
55a722fc9d
commit
924497cb5f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user