From 45d36ee0c8707dbb0e5ad544c5f35d3aaf180232 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 23 Nov 2011 15:25:05 +0000 Subject: [PATCH] Reenabled Tegra optimization of calcOpticalFlowPyrLK --- modules/video/src/lkpyramid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/video/src/lkpyramid.cpp b/modules/video/src/lkpyramid.cpp index 4afadde853..19d5aede9a 100644 --- a/modules/video/src/lkpyramid.cpp +++ b/modules/video/src/lkpyramid.cpp @@ -501,8 +501,8 @@ void cv::calcOpticalFlowPyrLK( InputArray _prevImg, InputArray _nextImg, double derivLambda, int flags, double minEigThreshold ) { -#ifdef HAVE_TEGRA_OPTIMIZATION__DISABLED - if (tegra::calcOpticalFlowPyrLK(_prevImg, _nextImg, _prevPts, _nextPts, _status, _err, winSize, maxLevel, criteria, derivLambda, flags)) +#ifdef HAVE_TEGRA_OPTIMIZATION + if (tegra::calcOpticalFlowPyrLK(_prevImg, _nextImg, _prevPts, _nextPts, _status, _err, winSize, maxLevel, criteria, derivLambda, flags, minEigThreshold)) return; #endif Mat prevImg = _prevImg.getMat(), nextImg = _nextImg.getMat(), prevPtsMat = _prevPts.getMat();