fixed most of test_core failures (except for SVD)

This commit is contained in:
Vadim Pisarevsky
2011-12-05 22:58:27 +00:00
parent 77dda061a7
commit 72c23e7bbb
5 changed files with 14 additions and 13 deletions

View File

@@ -2153,7 +2153,7 @@ void Core_SVBkSbTest::prepare_to_validation( int )
CvMat _w = w, _wdb = wdb;
// use exactly the same threshold as in icvSVD... ,
// so the changes in the library and here should be synchronized.
double threshold = cv::sum(w)[0]*(is_float ? FLT_EPSILON*10 : DBL_EPSILON*2);
double threshold = cv::sum(w)[0]*(DBL_EPSILON*2);//(is_float ? FLT_EPSILON*10 : DBL_EPSILON*2);
wdb = Scalar::all(0);
for( i = 0; i < min_size; i++ )