Commit 02ea1b66 authored by Alexander Alekhin's avatar Alexander Alekhin Committed by Alexander Alekhin

test: fix SIFT descriptor test

descriptor values are integers, so threshold 0.03f doesn't have any sense
parent 07fb53c3
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment