Commit 4250a6f7 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #2451 from catree:fix_GMSMatcher_crash

parents f3982616 70664ccf
......@@ -370,7 +370,7 @@ int GMSMatcher::run(const int rotationType)
// Mark inliers
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;
}
}
......
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