Merge pull request #5942 from akarsakov:fix_memcpy_empty_vector
This commit is contained in:
commit
8a803865cf
@ -197,7 +197,7 @@ namespace cv
|
||||
}
|
||||
|
||||
resultsMutex.lock();
|
||||
if ( (localInliers.size() > inliers.size()) || (localInliers.size() == inliers.size() && curIndex > bestIndex))
|
||||
if ( (localInliers.size() > inliers.size()) || (localInliers.size() == inliers.size() && inliers.size() > 0 && curIndex > bestIndex))
|
||||
{
|
||||
inliers.clear();
|
||||
inliers.resize(localInliers.size());
|
||||
|
Loading…
Reference in New Issue
Block a user