If we have perfect matches (min_dist == 0.0), then strict comparison
fails. Making it non-strict results in treating perfect matches as
good.
This commit is contained in:
Sergei Nosov
2013-06-13 11:51:45 +04:00
parent 98f6a4a615
commit 982ef83f80
2 changed files with 2 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ int main( int argc, char** argv )
std::vector< DMatch > good_matches;
for( int i = 0; i < descriptors_1.rows; i++ )
{ if( matches[i].distance < 2*min_dist )
{ if( matches[i].distance <= 2*min_dist )
{ good_matches.push_back( matches[i]); }
}