diff --git a/modules/features2d/src/matchers.cpp b/modules/features2d/src/matchers.cpp index 825ce2da55..506f3d1a96 100755 --- a/modules/features2d/src/matchers.cpp +++ b/modules/features2d/src/matchers.cpp @@ -1119,7 +1119,7 @@ void FernDescriptorMatcher::knnMatchImpl( const Mat& queryImage, vector::max(); + signature[best_ci] = -std::numeric_limits::max(); matches[queryIdx].push_back( bestMatch ); } }