Home
last modified time | relevance | path

Searched refs:Distance (Results 1 – 25 of 52) sorted by relevance

123

/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/
H A Dnext_prior.hpp67 template< typename T, typename Distance, bool HasPlus = has_plus< T, Distance >::value >
70 template< typename T, typename Distance >
71 struct next_plus_impl< T, Distance, true >
73 static T call(T x, Distance n) in call()
79 template< typename T, typename Distance, bool HasPlusAssign = has_plus_assign< T, Distance >::value…
81 public next_plus_impl< T, Distance >
85 template< typename T, typename Distance >
86 struct next_plus_assign_impl< T, Distance, true >
88 static T call(T x, Distance n) in call()
95 template< typename T, typename Distance, bool IsIterator = is_iterator< T >::value >
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/flann/
H A Dall_indices.h49 template<typename KDTreeCapability, typename VectorSpace, typename Distance>
52 …static NNIndex<Distance>* create(const Matrix<typename Distance::ElementType>& dataset, const Inde… in create()
56 NNIndex<Distance>* nnIndex; in create()
59 nnIndex = new LinearIndex<Distance>(dataset, params, distance); in create()
62 nnIndex = new KDTreeSingleIndex<Distance>(dataset, params, distance); in create()
65 nnIndex = new KDTreeIndex<Distance>(dataset, params, distance); in create()
68 nnIndex = new KMeansIndex<Distance>(dataset, params, distance); in create()
71 nnIndex = new CompositeIndex<Distance>(dataset, params, distance); in create()
74 nnIndex = new AutotunedIndex<Distance>(dataset, params, distance); in create()
77 nnIndex = new HierarchicalClusteringIndex<Distance>(dataset, params, distance); in create()
[all …]
H A Dflann_base.hpp72 template<typename Distance>
73 NNIndex<Distance>* load_saved_index(const Matrix<typename Distance::ElementType>& dataset, const cv… in load_saved_index()
75 typedef typename Distance::ElementType ElementType; in load_saved_index()
93 NNIndex<Distance>* nnIndex = create_index_by_type<Distance>(dataset, params, distance); in load_saved_index()
101 template<typename Distance>
102 class Index : public NNIndex<Distance>
105 typedef typename Distance::ElementType ElementType;
106 typedef typename Distance::ResultType DistanceType;
108 …ex(const Matrix<ElementType>& features, const IndexParams& params, Distance distance = Distance() ) in Index()
115 …nnIndex_ = load_saved_index<Distance>(features, get_param<cv::String>(params,"filename"), distance… in Index()
[all …]
H A Dindex_testing.h63 template <typename Distance>
64 typename Distance::ResultType computeDistanceRaport(const Matrix<typename Distance::ElementType>& i… in computeDistanceRaport()
65 … int* neighbors, int* groundTruth, int veclen, int n, const Distance& distance) in computeDistanceRaport()
67 typedef typename Distance::ResultType DistanceType; in computeDistanceRaport()
85 template <typename Distance>
86 float search_with_ground_truth(NNIndex<Distance>& index, const Matrix<typename Distance::ElementTyp… in search_with_ground_truth()
87 …const Matrix<typename Distance::ElementType>& testData, const Matrix<int>& matches, int nn, int ch… in search_with_ground_truth()
88 … float& time, typename Distance::ResultType& dist, const Distance& distance, int skipMatches) in search_with_ground_truth()
90 typedef typename Distance::ResultType DistanceType; in search_with_ground_truth()
119 …distR += computeDistanceRaport<Distance>(inputData, testData[i], neighbors, matches[i], (int)testD… in search_with_ground_truth()
[all …]
H A Dground_truth.h41 template <typename Distance>
42 void find_nearest(const Matrix<typename Distance::ElementType>& dataset, typename Distance::Element…
43 int skip = 0, Distance distance = Distance())
45 typedef typename Distance::ResultType DistanceType;
82 template <typename Distance>
83 …d compute_ground_truth(const Matrix<typename Distance::ElementType>& dataset, const Matrix<typenam…
84 int skip=0, Distance d = Distance())
87 find_nearest<Distance>(dataset, testset[i], matches[i], (int)matches.cols, skip, d);
H A Dcomposite_index.h70 template <typename Distance>
71 class CompositeIndex : public NNIndex<Distance>
74 typedef typename Distance::ElementType ElementType;
75 typedef typename Distance::ResultType DistanceType;
85 Distance d = Distance()) : index_params_(params) in index_params_()
87 kdtree_index_ = new KDTreeIndex<Distance>(inputData, params, d); in index_params_()
88 kmeans_index_ = new KMeansIndex<Distance>(inputData, params, d); in index_params_()
183 KMeansIndex<Distance>* kmeans_index_;
186 KDTreeIndex<Distance>* kdtree_index_;
H A Dautotuned_index.h50 template<typename Distance>
51 NNIndex<Distance>* create_index_by_type(const Matrix<typename Distance::ElementType>& dataset, cons…
71 template <typename Distance>
72 class AutotunedIndex : public NNIndex<Distance>
75 typedef typename Distance::ElementType ElementType;
76 typedef typename Distance::ResultType DistanceType;
78 …entType>& inputData, const IndexParams& params = AutotunedIndexParams(), Distance d = Distance()) :
144 bestIndex_ = create_index_by_type<Distance>(dataset_, params, distance_); in loadIndex()
234 KMeansIndex<Distance> kmeans(sampledDataset_, cost.params, distance_); in evaluate_kmeans()
259 KDTreeIndex<Distance> kdtree(sampledDataset_, cost.params, distance_); in evaluate_kdtree()
[all …]
H A Dlinear_index.h48 template <typename Distance>
49 class LinearIndex : public NNIndex<Distance>
53 typedef typename Distance::ElementType ElementType;
54 typedef typename Distance::ResultType DistanceType;
58 Distance d = Distance()) :
126 Distance distance_;
H A Ddist.h789 template <typename Distance, typename ElementType>
792 typedef typename Distance::ResultType ResultType;
834 template <typename Distance>
835 typename Distance::ResultType ensureSquareDistance( typename Distance::ResultType dist )
837 typedef typename Distance::ElementType ElementType;
839 squareDistance<Distance, ElementType> dummy;
849 template <typename Distance, typename ElementType>
852 typedef typename Distance::ResultType ResultType;
894 template <typename Distance>
895 typename Distance::ResultType ensureSimpleDistance( typename Distance::ResultType dist )
[all …]
H A Dlsh_index.h77 template<typename Distance>
78 class LshIndex : public NNIndex<Distance>
81 typedef typename Distance::ElementType ElementType;
82 typedef typename Distance::ResultType DistanceType;
90 Distance d = Distance()) :
388 Distance distance_;
H A Dhierarchical_clustering_index.h79 template <typename Distance>
80 class HierarchicalClusteringIndex : public NNIndex<Distance>
83 typedef typename Distance::ElementType ElementType;
84 typedef typename Distance::ResultType DistanceType;
216 closestDistSq[i] = ensureSquareDistance<Distance>( closestDistSq[i] ); in chooseCentersKMeanspp()
244 newPot += std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); in chooseCentersKMeanspp()
259 … closestDistSq[i] = std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); in chooseCentersKMeanspp()
358 Distance d = Distance())
821 Distance distance;
H A Dkdtree_index.h69 template <typename Distance>
70 class KDTreeIndex : public NNIndex<Distance>
73 typedef typename Distance::ElementType ElementType;
74 typedef typename Distance::ResultType DistanceType;
85 Distance d = Distance() ) :
619 Distance distance_;
H A Dkmeans_index.h79 template <typename Distance>
80 class KMeansIndex : public NNIndex<Distance>
83 typedef typename Distance::ElementType ElementType;
84 typedef typename Distance::ResultType DistanceType;
213 closestDistSq[i] = ensureSquareDistance<Distance>( closestDistSq[i] ); in chooseCentersKMeanspp()
241 newPot += std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); in chooseCentersKMeanspp()
256 … closestDistSq[i] = std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); in chooseCentersKMeanspp()
277 KMeansDistanceComputer(Distance _distance, const Matrix<ElementType>& _dataset, in KMeansDistanceComputer()
325 Distance distance;
347 Distance d = Distance())
[all …]
H A Dnn_index.h45 template <typename Distance>
48 typedef typename Distance::ElementType ElementType;
49 typedef typename Distance::ResultType DistanceType;
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/algorithms/
H A Dsimplify.hpp54 template<typename Range, typename Strategy, typename OutputIterator, typename Distance>
56 Distance const& max_distance, Strategy const& strategy) in apply()
74 template <typename Range, typename Strategy, typename Distance>
76 Distance const& , Strategy const& ) in apply()
89 template <typename Range, typename Strategy, typename Distance>
91 Distance const& max_distance, Strategy const& strategy) in apply()
131 typename Distance,
136 Distance const& max_distance, Strategy const& strategy) in iterate()
149 typename Distance,
155 Distance const& max_distance, Strategy const& strategy) in apply_interior_rings()
[all …]
H A Dbuffer.hpp104 template <typename Distance>
105 static inline void apply(BoxIn const& box_in, Distance const& distance, in apply()
106 Distance const& , BoxOut& box_out) in apply()
121 template <typename Distance, typename GeometryOut>
123 Distance const& distance, in apply()
124 Distance const& chord_length, in apply()
134 template <typename Distance, typename GeometryOut>
137 Distance const& m_distance;
138 Distance const& m_chord_length;
141 visitor(Distance const& distance, in visitor()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/intrusive/detail/
H A Diterator.hpp145 template<class InputIt, class Distance>
147 iterator_advance(InputIt& it, Distance n) in iterator_advance()
153 template<class InputIt, class Distance>
155 iterator_advance(InputIt& it, Distance n) in iterator_advance()
161 template<class InputIt, class Distance>
163 iterator_advance(InputIt& it, Distance n) in iterator_advance()
171 template<class InputIt, class Distance>
173 iterator_advance(InputIt& it, Distance n) in iterator_advance()
178 template<class InputIt, class Distance>
181 iterator_advance(InputIt& it, Distance n) in iterator_advance()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/algorithms/detail/closest_feature/
H A Dpoint_to_range.hpp45 template <typename Distance>
52 Distance& dist_min) in apply()
56 Distance const zero = Distance(0); in apply()
74 Distance dist = strategy.apply(point, *prev, *it); in apply()
96 template <typename Distance>
101 Distance& dist_min) in apply()
124 template <typename Distance>
128 Distance& dist_min) in apply()
156 template <typename Distance>
163 Distance& dist_min) in apply()
[all …]
H A Dgeometry_to_range.hpp42 typename Distance
49 Distance& dist_min) in apply()
53 Distance const zero = Distance(0); in apply()
67 Distance dist = dispatch::distance in apply()
94 typename Distance
100 Distance& dist_min) in apply()
H A Drange_to_range.hpp45 typename Distance
54 Distance& dist_min) in apply()
61 Distance const zero = Distance(0); in apply()
84 Distance dist = dispatch::distance in apply()
124 typename Distance
134 Distance& dist_min) in apply()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/iterator/
H A Dadvance.hpp17 template <typename InputIterator, typename Distance>
21 , Distance n in advance_impl()
31 template <typename BidirectionalIterator, typename Distance>
35 , Distance n in advance_impl()
53 template <typename RandomAccessIterator, typename Distance>
57 , Distance n in advance_impl()
66 template <typename InputIterator, typename Distance>
68 advance(InputIterator& it, Distance n) in advance()
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/
H A Dflann.hpp107 template <typename Distance>
111 typedef typename Distance::ElementType ElementType;
112 typedef typename Distance::ResultType DistanceType;
202 …icIndex(const Mat& features, const ::cvflann::IndexParams& params, Distance distance = Distance());
236 ::cvflann::Index<Distance>* nnIndex;
250 template <typename Distance>
251 GenericIndex<Distance>::GenericIndex(const Mat& dataset, const ::cvflann::IndexParams& params, Dist… in GenericIndex()
257 nnIndex = new ::cvflann::Index<Distance>(m_dataset, params, distance); in GenericIndex()
264 template <typename Distance>
265 GenericIndex<Distance>::~GenericIndex() in ~GenericIndex()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/proto/functional/std/
H A Diterator.hpp27 template<typename InputIterator, typename Distance>
28 void operator()(InputIterator &x, Distance n) const in operator ()()
80 template<typename This, typename ForwardIterator, typename Distance>
81 struct result<This(ForwardIterator, Distance)>
127 template<typename This, typename BidirectionalIterator, typename Distance>
128 struct result<This(BidirectionalIterator, Distance)>
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/strategies/cartesian/
H A Ddistance_projected_point_ax.hpp85 template <typename Distance>
89 projected_point_ax_less(Distance const& max_distance) in projected_point_ax_less()
93 inline bool operator()(Distance const& left, Distance const& right) const in operator ()()
97 typedef typename Distance::value_type value_type; in operator ()()
110 Distance const& m_max_distance;
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/mpl/vector/aux_/
H A Diterator.hpp82 , typename Distance
84 struct advance< v_iter<Vector,n_>,Distance>
88 , (n_ + BOOST_MPL_AUX_NESTED_VALUE_WKND(long, Distance))

123