mirror of
https://github.com/opencv/opencv.git
synced 2024-12-18 11:28:02 +08:00
Reenabled Tegra optimization of calcOpticalFlowPyrLK
This commit is contained in:
parent
42e656542c
commit
45d36ee0c8
@ -501,8 +501,8 @@ void cv::calcOpticalFlowPyrLK( InputArray _prevImg, InputArray _nextImg,
|
|||||||
double derivLambda,
|
double derivLambda,
|
||||||
int flags, double minEigThreshold )
|
int flags, double minEigThreshold )
|
||||||
{
|
{
|
||||||
#ifdef HAVE_TEGRA_OPTIMIZATION__DISABLED
|
#ifdef HAVE_TEGRA_OPTIMIZATION
|
||||||
if (tegra::calcOpticalFlowPyrLK(_prevImg, _nextImg, _prevPts, _nextPts, _status, _err, winSize, maxLevel, criteria, derivLambda, flags))
|
if (tegra::calcOpticalFlowPyrLK(_prevImg, _nextImg, _prevPts, _nextPts, _status, _err, winSize, maxLevel, criteria, derivLambda, flags, minEigThreshold))
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
Mat prevImg = _prevImg.getMat(), nextImg = _nextImg.getMat(), prevPtsMat = _prevPts.getMat();
|
Mat prevImg = _prevImg.getMat(), nextImg = _nextImg.getMat(), prevPtsMat = _prevPts.getMat();
|
||||||
|
Loading…
Reference in New Issue
Block a user