Merge pull request #2845 from shaibagon:patch-1

This commit is contained in:
Vadim Pisarevsky 2014-06-12 21:38:55 +04:00 committed by OpenCV Buildbot
commit 052c8516a8

View File

@ -430,7 +430,7 @@ Mat estimateGlobalMotionRansac(
{
subset0.resize(ninliersMax);
subset1.resize(ninliersMax);
for (int i = 0, j = 0; i < npoints; ++i)
for (int i = 0, j = 0; i < npoints && j < ninliersMax ; ++i)
{
p0 = points0_[i];
p1 = points1_[i];