Commit 1a25e582 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed patch diff calculation in the end of calcopticalflowpyrlk (thanks to Vlad…

fixed patch diff calculation in the end of calcopticalflowpyrlk (thanks to Vlad Vinogradov for the patch)
parent 02f226a9
......@@ -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);
......
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