Commit fffe2464 authored by orestis's avatar orestis

Change DescriptorExtractor_ORB regression test

to compensate for neon ieee754 non-compliancy.
Also changed the comparison between max valid and calculated distance to
make the error message more accurate (in case curMaxDist == maxDist)
parent 9811a739
...@@ -132,7 +132,7 @@ protected: ...@@ -132,7 +132,7 @@ protected:
stringstream ss; stringstream ss;
ss << "Max distance between valid and computed descriptors " << curMaxDist; ss << "Max distance between valid and computed descriptors " << curMaxDist;
if( curMaxDist < maxDist ) if( curMaxDist <= maxDist )
ss << "." << endl; ss << "." << endl;
else else
{ {
...@@ -322,7 +322,11 @@ TEST( Features2d_DescriptorExtractor_ORB, regression ) ...@@ -322,7 +322,11 @@ TEST( Features2d_DescriptorExtractor_ORB, regression )
{ {
// TODO adjust the parameters below // TODO adjust the parameters below
CV_DescriptorExtractorTest<Hamming> test( "descriptor-orb", CV_DescriptorExtractorTest<Hamming> test( "descriptor-orb",
#if CV_NEON
(CV_DescriptorExtractorTest<Hamming>::DistanceType)25.f,
#else
(CV_DescriptorExtractorTest<Hamming>::DistanceType)12.f, (CV_DescriptorExtractorTest<Hamming>::DistanceType)12.f,
#endif
ORB::create() ); ORB::create() );
test.safe_run(); 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