1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Better NEON Hamming distance

This commit is contained in:
Andrey Kamaev
2011-10-26 13:04:53 +00:00
parent 509730c1cd
commit d7ff92439d
5 changed files with 42 additions and 38 deletions
+4
View File
@@ -312,7 +312,11 @@ buildIndex(void*& index, const Mat& data, const IndexParams& params, const Dista
buildIndex_<Distance, ::cvflann::Index<Distance> >(index, data, params, dist);
}
#if CV_NEON
typedef ::cvflann::Hamming<uchar> HammingDistance;
#else
typedef ::cvflann::HammingLUT HammingDistance;
#endif
typedef ::cvflann::LshIndex<HammingDistance> LshIndex;
Index::Index()
+6 -1
View File
@@ -5,6 +5,12 @@
#include <cstdarg>
#include <sstream>
#ifdef HAVE_CVCONFIG_H
# include "cvconfig.h"
#endif
#include "opencv2/core/core.hpp"
#include "opencv2/core/internal.hpp"
#include "opencv2/flann/miniflann.hpp"
#include "opencv2/flann/dist.h"
#include "opencv2/flann/index_testing.h"
@@ -15,7 +21,6 @@
// index types
#include "opencv2/flann/all_indices.h"
#include "opencv2/flann/flann_base.hpp"
#endif