From dbb5a324530ac88863fb1023f0c340b3df6581bd Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Fri, 2 Nov 2012 13:16:16 +0400 Subject: [PATCH] Use Tegra version of cv::FAST --- modules/features2d/src/fast.cpp | 4 ++++ modules/features2d/src/precomp.hpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/modules/features2d/src/fast.cpp b/modules/features2d/src/fast.cpp index 40442ef182..f0f636a72f 100644 --- a/modules/features2d/src/fast.cpp +++ b/modules/features2d/src/fast.cpp @@ -259,6 +259,10 @@ void FASTX(InputArray _img, std::vector& keypoints, int threshold, boo FAST_t<12>(_img, keypoints, threshold, nonmax_suppression); break; case FastFeatureDetector::TYPE_9_16: +#ifdef HAVE_TEGRA_OPTIMIZATION + if(tegra::FAST(_img, keypoints, threshold, nonmax_suppression)) + break; +#endif FAST_t<16>(_img, keypoints, threshold, nonmax_suppression); break; } diff --git a/modules/features2d/src/precomp.hpp b/modules/features2d/src/precomp.hpp index 5b1babe699..c1e3ace7a5 100644 --- a/modules/features2d/src/precomp.hpp +++ b/modules/features2d/src/precomp.hpp @@ -52,4 +52,8 @@ #include "opencv2/imgproc/imgproc_c.h" #include "opencv2/core/internal.hpp" +#ifdef HAVE_TEGRA_OPTIMIZATION +#include "opencv2/features2d/features2d_tegra.hpp" +#endif + #endif