From f45a886adc17a405a9a81cd5576aca84281f84fe Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Mon, 19 Sep 2011 15:14:14 +0000 Subject: [PATCH] Tegra optimization for CirclesGridClusterFinder::hierarchicalClustering --- modules/calib3d/src/circlesgrid.cpp | 4 ++++ modules/calib3d/src/precomp.hpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/modules/calib3d/src/circlesgrid.cpp b/modules/calib3d/src/circlesgrid.cpp index 88294687c2..952b8f56db 100644 --- a/modules/calib3d/src/circlesgrid.cpp +++ b/modules/calib3d/src/circlesgrid.cpp @@ -52,6 +52,10 @@ using namespace std; void CirclesGridClusterFinder::hierarchicalClustering(const vector points, const Size &patternSize, vector &patternPoints) { +#ifdef HAVE_TEGRA_OPTIMIZATION + if(tegra::hierarchicalClustering(points, patternSize, patternPoints)) + return; +#endif int i, j, n = (int)points.size(); size_t pn = static_cast(patternSize.area()); diff --git a/modules/calib3d/src/precomp.hpp b/modules/calib3d/src/precomp.hpp index 2de1e3a701..e002910b80 100644 --- a/modules/calib3d/src/precomp.hpp +++ b/modules/calib3d/src/precomp.hpp @@ -57,4 +57,8 @@ #include "opencv2/features2d/features2d.hpp" #include +#ifdef HAVE_TEGRA_OPTIMIZATION +#include "opencv2/calib3d/calib3d_tegra.hpp" +#endif + #endif