diff --git a/modules/video/src/lkpyramid.cpp b/modules/video/src/lkpyramid.cpp index 19d5aede9..5392374d1 100644 --- a/modules/video/src/lkpyramid.cpp +++ b/modules/video/src/lkpyramid.cpp @@ -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);