fixed patch diff calculation in the end of calcopticalflowpyrlk (thanks to Vlad Vinogradov for the patch)
This commit is contained in:
parent
02f226a981
commit
1a25e58239
@ -436,7 +436,7 @@ struct LKTrackerInvoker
|
|||||||
|
|
||||||
if( status[ptidx] && err && level == 0 && (flags & CV_LKFLOW_GET_MIN_EIGENVALS) == 0 )
|
if( status[ptidx] && err && level == 0 && (flags & CV_LKFLOW_GET_MIN_EIGENVALS) == 0 )
|
||||||
{
|
{
|
||||||
Point2f nextPt = nextPts[ptidx];
|
Point2f nextPt = nextPts[ptidx] - halfWin;
|
||||||
Point inextPt;
|
Point inextPt;
|
||||||
|
|
||||||
inextPt.x = cvFloor(nextPt.x);
|
inextPt.x = cvFloor(nextPt.x);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user