Commit b63b3df5 authored by Maria Dimashova's avatar Maria Dimashova

minor fixed

parent 5086c1b9
......@@ -1105,7 +1105,7 @@ void FernDescriptorMatcher::knnMatchImpl( const Mat& queryImage, vector<KeyPoint
for( int k = 0; k < knn; k++ )
{
DMatch bestMatch;
size_t best_ci = -1;
size_t best_ci = 0;
for( size_t ci = 0; ci < signature.size(); ci++ )
{
if( -signature[ci] < bestMatch.distance )
......
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