|
|
|
@ -575,7 +575,7 @@ void cv::calcOpticalFlowPyrLK( InputArray _prevImg, InputArray _nextImg, |
|
|
|
|
else |
|
|
|
|
pyrDown(pyr[level-1], pyr[level], pyr[level].size()); |
|
|
|
|
copyMakeBorder(pyr[level], temp, winSize.height, winSize.height, |
|
|
|
|
winSize.width, winSize.width, BORDER_REFLECT_101); |
|
|
|
|
winSize.width, winSize.width, BORDER_REFLECT_101|BORDER_ISOLATED); |
|
|
|
|
sz = Size((sz.width+1)/2, (sz.height+1)/2); |
|
|
|
|
if( sz.width <= winSize.width || sz.height <= winSize.height ) |
|
|
|
|
{ |
|
|
|
@ -608,8 +608,6 @@ void cv::calcOpticalFlowPyrLK( InputArray _prevImg, InputArray _nextImg, |
|
|
|
|
calcSharrDeriv(prevPyr[level], derivI); |
|
|
|
|
copyMakeBorder(derivI, _derivI, winSize.height, winSize.height, winSize.width, winSize.width, BORDER_CONSTANT); |
|
|
|
|
|
|
|
|
|
Mat I = prevPyr[level], J = nextPyr[level]; |
|
|
|
|
|
|
|
|
|
parallel_for(BlockedRange(0, npoints), LKTrackerInvoker(prevPyr[level], derivI, |
|
|
|
|
nextPyr[level], prevPts, nextPts, |
|
|
|
|
status, err, |
|
|
|
|