Tegra optimization for CirclesGridClusterFinder::hierarchicalClustering
This commit is contained in:
parent
f262f58297
commit
f45a886adc
@ -52,6 +52,10 @@ using namespace std;
|
|||||||
|
|
||||||
void CirclesGridClusterFinder::hierarchicalClustering(const vector<Point2f> points, const Size &patternSize, vector<Point2f> &patternPoints)
|
void CirclesGridClusterFinder::hierarchicalClustering(const vector<Point2f> points, const Size &patternSize, vector<Point2f> &patternPoints)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_TEGRA_OPTIMIZATION
|
||||||
|
if(tegra::hierarchicalClustering(points, patternSize, patternPoints))
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
int i, j, n = (int)points.size();
|
int i, j, n = (int)points.size();
|
||||||
size_t pn = static_cast<size_t>(patternSize.area());
|
size_t pn = static_cast<size_t>(patternSize.area());
|
||||||
|
|
||||||
|
@ -57,4 +57,8 @@
|
|||||||
#include "opencv2/features2d/features2d.hpp"
|
#include "opencv2/features2d/features2d.hpp"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#ifdef HAVE_TEGRA_OPTIMIZATION
|
||||||
|
#include "opencv2/calib3d/calib3d_tegra.hpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user