Skip to content

Commit ffdec47

Browse files
committed
Merge pull request #1286 from alalek:fix_sift_test
2 parents 07fb53c + 02ea1b6 commit ffdec47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/xfeatures2d/test/test_features2d.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class CV_DescriptorExtractorTest : public cvtest::BaseTest
327327

328328
stringstream ss;
329329
ss << "Max distance between valid and computed descriptors " << curMaxDist;
330-
if( curMaxDist < maxDist )
330+
if( curMaxDist <= maxDist )
331331
ss << "." << endl;
332332
else
333333
{
@@ -1020,7 +1020,7 @@ TEST( Features2d_Detector_Harris_Laplace_Affine, regression )
10201020
*/
10211021
TEST( Features2d_DescriptorExtractor_SIFT, regression )
10221022
{
1023-
CV_DescriptorExtractorTest<L2<float> > test( "descriptor-sift", 0.03f,
1023+
CV_DescriptorExtractorTest<L1<float> > test( "descriptor-sift", 1.0f,
10241024
SIFT::create() );
10251025
test.safe_run();
10261026
}

0 commit comments

Comments
 (0)