fixed patch diff calculation in the end of calcopticalflowpyrlk (thanks to Vlad Vinogradov for the patch)

This commit is contained in:
Vadim Pisarevsky 2012-03-07 13:35:13 +00:00
parent 02f226a981
commit 1a25e58239

View File

@ -436,7 +436,7 @@ struct LKTrackerInvoker
if( status[ptidx] && err && level == 0 && (flags & CV_LKFLOW_GET_MIN_EIGENVALS) == 0 )
{
Point2f nextPt = nextPts[ptidx];
Point2f nextPt = nextPts[ptidx] - halfWin;
Point inextPt;
inextPt.x = cvFloor(nextPt.x);