Commit b835c045 authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed incorrect asssertion in test

parent 44a1e796
...@@ -1070,7 +1070,7 @@ TEST(Features2d_BruteForceDescriptorMatcher_knnMatch, regression) ...@@ -1070,7 +1070,7 @@ TEST(Features2d_BruteForceDescriptorMatcher_knnMatch, regression)
for(size_t i = 0; i<matches.size(); i++) for(size_t i = 0; i<matches.size(); i++)
{ {
//cout << "\nmatches[" << i << "].size()==" << matches[i].size() << endl; //cout << "\nmatches[" << i << "].size()==" << matches[i].size() << endl;
ASSERT_GT(min(k, descT.rows), static_cast<int>(matches[i].size())); ASSERT_GE(min(k, descT.rows), static_cast<int>(matches[i].size()));
for(size_t j = 0; j<matches[i].size(); j++) for(size_t j = 0; j<matches[i].size(); j++)
{ {
//cout << "\t" << matches[i][j].queryIdx << " -> " << matches[i][j].trainIdx << endl; //cout << "\t" << matches[i][j].queryIdx << " -> " << matches[i][j].trainIdx << endl;
......
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