Commit 4ab7f82e authored by Alexander Alekhin's avatar Alexander Alekhin

Merge remote-tracking branch 'upstream/3.4' into merge-3.4

parents 93a79a6f 4250a6f7
...@@ -370,7 +370,7 @@ int GMSMatcher::run(const int rotationType) ...@@ -370,7 +370,7 @@ int GMSMatcher::run(const int rotationType)
// Mark inliers // Mark inliers
for (size_t i = 0; i < mNumberMatches; i++) for (size_t i = 0; i < mNumberMatches; i++)
{ {
if (mCellPairs[mvMatchPairs[i].first] == mvMatchPairs[i].second) if (mvMatchPairs[i].first >= 0 && mCellPairs[mvMatchPairs[i].first] == mvMatchPairs[i].second)
mvbInlierMask[i] = true; mvbInlierMask[i] = true;
} }
} }
......
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