minor fixed

This commit is contained in:
Maria Dimashova 2011-01-21 16:07:28 +00:00
parent 5086c1b94a
commit b63b3df522

View File

@ -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 )