From f7c98c86b3b5c5b90674f31dcbcea88ccd87374c Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Wed, 28 Jul 2010 12:19:41 +0000 Subject: [PATCH] updated threshold in test --- tests/cv/src/acalonder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cv/src/acalonder.cpp b/tests/cv/src/acalonder.cpp index 32ed468793..228df9d379 100644 --- a/tests/cv/src/acalonder.cpp +++ b/tests/cv/src/acalonder.cpp @@ -152,7 +152,7 @@ void CV_CalonderTest::run(int) Mat ros_cdescriptors = readMatFromBin( dir + "/ros_uchar_desc" ); double cnorm = norm(cdescriptors, ros_cdescriptors, NORM_INF ); ts->printf(CvTS::LOG, "nofm (inf) BTW valid and calculated uchar descriptors = %f\n", cnorm ); - if( cnorm > FLT_EPSILON ) + if( cnorm > FLT_EPSILON + 1 ) // + 1 because of quantization float to uchar ts->set_failed_test_info( CvTS::FAIL_BAD_ACCURACY ); #endif // GET_RES }