test: fix SIFT descriptor test

descriptor values are integers, so threshold 0.03f doesn't have any sense
pull/1286/head
Alexander Alekhin 8 years ago committed by Alexander Alekhin
parent 07fb53c37f
commit 02ea1b6680
  1. 4
      modules/xfeatures2d/test/test_features2d.cpp

@ -327,7 +327,7 @@ protected:
stringstream ss;
ss << "Max distance between valid and computed descriptors " << curMaxDist;
if( curMaxDist < maxDist )
if( curMaxDist <= maxDist )
ss << "." << endl;
else
{
@ -1020,7 +1020,7 @@ TEST( Features2d_Detector_Harris_Laplace_Affine, regression )
*/
TEST( Features2d_DescriptorExtractor_SIFT, regression )
{
CV_DescriptorExtractorTest<L2<float> > test( "descriptor-sift", 0.03f,
CV_DescriptorExtractorTest<L1<float> > test( "descriptor-sift", 1.0f,
SIFT::create() );
test.safe_run();
}

Loading…
Cancel
Save