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:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user