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

pull/13383/head
Vadim Pisarevsky 13 years ago
parent 02f226a981
commit 1a25e58239
  1. 2
      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);

Loading…
Cancel
Save