Home
last modified time | relevance | path

Searched refs:DistanceType (Results 1 – 20 of 20) sorted by relevance

/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/flann/
H A Dresult_set.h49 template <typename T, typename DistanceType>
53 DistanceType mindist; /* Minimum distance to query for all nodes below. */
56 BranchStruct(const T& aNode, DistanceType dist) : node(aNode), mindist(dist) {} in BranchStruct()
58 bool operator<(const BranchStruct<T, DistanceType>& rhs) const
65 template <typename DistanceType>
73 virtual void addPoint(DistanceType dist, int index) = 0;
75 virtual DistanceType worstDist() const = 0;
84 template <typename DistanceType>
85 class KNNSimpleResultSet : public ResultSet<DistanceType>
88 DistanceType* dists;
[all …]
H A Dkmeans_index.h84 typedef typename Distance::ResultType DistanceType; typedef
126DistanceType sq = distance_(dataset_[centers[index]], dataset_[centers[j]], dataset_.cols); in chooseCentersRandom()
161 DistanceType best_val = 0; in chooseCentersGonzales()
163DistanceType dist = distance_(dataset_[centers[0]],dataset_[indices[j]],dataset_.cols); in chooseCentersGonzales()
165DistanceType tmp_dist = distance_(dataset_[centers[i]],dataset_[indices[j]],dataset_.cols); in chooseCentersGonzales()
204 DistanceType* closestDistSq = new DistanceType[n]; in chooseCentersKMeanspp()
240DistanceType dist = distance_(dataset_[indices[i]], dataset_[indices[index]], dataset_.cols); in chooseCentersKMeanspp()
255DistanceType dist = distance_(dataset_[indices[i]], dataset_[indices[bestNewIndex]], dataset_.cols… in chooseCentersKMeanspp()
279 …int* _count, int* _belongs_to, std::vector<DistanceType>& _radiuses, bool& _converged, cv::Mutex& … in KMeansDistanceComputer()
301 DistanceType sq_dist = distance(dataset[indices[i]], dcenters[0], veclen); in operator()
[all …]
H A Dkdtree_single_index.h74 typedef typename Distance::ResultType DistanceType; typedef
213 …void knnSearch(const Matrix<ElementType>& queries, Matrix<int>& indices, Matrix<DistanceType>& dis… in knnSearch()
221 KNNSimpleResultSet<DistanceType> resultSet(knn); in knnSearch()
242 …void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchParams& se… in findNeighbors()
246 std::vector<DistanceType> dists(dim_,0); in findNeighbors()
247 DistanceType distsq = computeInitialDistances(vec, dists); in findNeighbors()
268 DistanceType divlow, divhigh;
279 DistanceType low, high;
284 typedef BranchStruct<NodePtr, DistanceType> BranchSt;
319 bbox[i].low = (DistanceType)dataset_[0][i]; in computeBoundingBox()
[all …]
H A Dkdtree_index.h74 typedef typename Distance::ResultType DistanceType; typedef
100 mean_ = new DistanceType[veclen_]; in dataset_()
101 var_ = new DistanceType[veclen_]; in dataset_()
204 …void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchParams& se… in findNeighbors()
235 DistanceType divval;
242 typedef BranchStruct<NodePtr, DistanceType> BranchSt;
293 DistanceType cutval; in divideTree()
311 void meanSplit(int* ind, int count, int& index, int& cutfeat, DistanceType& cutval) in meanSplit()
313 memset(mean_,0,veclen_*sizeof(DistanceType)); in meanSplit()
314 memset(var_,0,veclen_*sizeof(DistanceType)); in meanSplit()
[all …]
H A Dnn_index.h49 typedef typename Distance::ResultType DistanceType; typedef
68 …arch(const Matrix<ElementType>& queries, Matrix<int>& indices, Matrix<DistanceType>& dists, int kn… in knnSearch()
77 KNNResultSet<DistanceType> resultSet(knn); in knnSearch()
83 KNNUniqueResultSet<DistanceType> resultSet(knn); in knnSearch()
102 …Search(const Matrix<ElementType>& query, Matrix<int>& indices, Matrix<DistanceType>& dists, float … in radiusSearch()
113 DistanceType* dists_ptr = NULL; in radiusSearch()
120 RadiusUniqueResultSet<DistanceType> resultSet((DistanceType)radius); in radiusSearch()
172 …virtual void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchPa…
H A Dindex_testing.h67 typedef typename Distance::ResultType DistanceType; in computeDistanceRaport() typedef
69 DistanceType ret = 0; in computeDistanceRaport()
71 DistanceType den = distance(inputData[groundTruth[i]], target, veclen); in computeDistanceRaport()
72 DistanceType num = distance(inputData[neighbors[i]], target, veclen); in computeDistanceRaport()
90 typedef typename Distance::ResultType DistanceType; in search_with_ground_truth() typedef
98 KNNResultSet<DistanceType> resultSet(nn+skipMatches); in search_with_ground_truth()
102 std::vector<DistanceType> dists(nn+skipMatches); in search_with_ground_truth()
106 DistanceType distR = 0; in search_with_ground_truth()
141 typedef typename Distance::ResultType DistanceType; typedef
147 DistanceType dist = 0;
[all …]
H A Dhierarchical_clustering_index.h84 typedef typename Distance::ResultType DistanceType; typedef
127DistanceType sq = distance(dataset[centers[index]], dataset[centers[j]], dataset.cols); in chooseCentersRandom()
162 DistanceType best_val = 0; in chooseCentersGonzales()
164DistanceType dist = distance(dataset[centers[0]],dataset[dsindices[j]],dataset.cols); in chooseCentersGonzales()
166DistanceType tmp_dist = distance(dataset[centers[i]],dataset[dsindices[j]],dataset.cols); in chooseCentersGonzales()
205 DistanceType* closestDistSq = new DistanceType[n]; in chooseCentersKMeanspp()
243DistanceType dist = distance(dataset[dsindices[i]], dataset[dsindices[index]], dataset.cols); in chooseCentersKMeanspp()
258DistanceType dist = distance(dataset[dsindices[i]], dataset[dsindices[bestNewIndex]], dataset.cols… in chooseCentersKMeanspp()
292 DistanceType* closestDistSq = new DistanceType[n]; in GroupWiseCenterChooser()
311 DistanceType furthest = 0; in GroupWiseCenterChooser()
[all …]
H A Dlsh_index.h82 typedef typename Distance::ResultType DistanceType; typedef
190 …arch(const Matrix<ElementType>& queries, Matrix<int>& indices, Matrix<DistanceType>& dists, int kn… in knnSearch()
199 KNNUniqueResultSet<DistanceType> resultSet(knn); in knnSearch()
203 std::fill_n(dists[i], knn, std::numeric_limits<DistanceType>::max()); in knnSearch()
220 …void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchParams& /*… in findNeighbors()
284 DistanceType hamming_distance; in getNeighbors()
322 DistanceType hamming_distance; in getNeighbors()
339 void getNeighbors(const ElementType* vec, ResultSet<DistanceType>& result) in getNeighbors()
355 DistanceType hamming_distance; in getNeighbors()
H A Dlinear_index.h54 typedef typename Distance::ResultType DistanceType; typedef
106 …void findNeighbors(ResultSet<DistanceType>& resultSet, const ElementType* vec, const SearchParams&… in findNeighbors()
110 DistanceType dist = distance_(data, vec, dataset_.cols); in findNeighbors()
H A Dflann_base.hpp106 typedef typename Distance::ResultType DistanceType; typedef in cvflann::Index
216 …void knnSearch(const Matrix<ElementType>& queries, Matrix<int>& indices, Matrix<DistanceType>& dis… in knnSearch()
230 …int radiusSearch(const Matrix<ElementType>& query, Matrix<int>& indices, Matrix<DistanceType>& dis… in radiusSearch()
238 …void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchParams& se… in findNeighbors()
H A Dground_truth.h45 typedef typename Distance::ResultType DistanceType; typedef
49 std::vector<DistanceType> dists(n);
56 DistanceType tmp = distance(dataset[i], query, dataset.cols);
H A Dcomposite_index.h75 typedef typename Distance::ResultType DistanceType; typedef
175 …void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchParams& se… in findNeighbors()
H A Dautotuned_index.h76 typedef typename Distance::ResultType DistanceType; typedef
154 …virtual void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchPa… in findNeighbors()
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/
H A Dflann.hpp112 typedef typename Distance::ResultType DistanceType; typedef in cv::flann::GenericIndex
217 … std::vector<DistanceType>& dists, int knn, const ::cvflann::SearchParams& params);
221 … std::vector<DistanceType>& dists, DistanceType radius, const ::cvflann::SearchParams& params);
223 DistanceType radius, const ::cvflann::SearchParams& params);
271 …d::vector<ElementType>& query, std::vector<int>& indices, std::vector<DistanceType>& dists, int kn… in knnSearch()
275 ::cvflann::Matrix<DistanceType> m_dists(&dists[0], 1, dists.size()); in knnSearch()
294 CV_Assert(dists.type() == CvType<DistanceType>::type()); in knnSearch()
296 …::cvflann::Matrix<DistanceType> m_dists((DistanceType*)dists.ptr<DistanceType>(0), dists.rows, dis… in knnSearch()
304 …lementType>& query, std::vector<int>& indices, std::vector<DistanceType>& dists, DistanceType radi… in radiusSearch()
308 ::cvflann::Matrix<DistanceType> m_dists(&dists[0], 1, dists.size()); in radiusSearch()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/strategies/cartesian/
H A Dbuffer_point_square.hpp49 typename DistanceType,
53 DistanceType const& distance, in add_point()
54 DistanceType const& x, in add_point()
55 DistanceType const& y, in add_point()
67 typename DistanceType,
71 DistanceType const& distance, in add_points()
H A Dbuffer_join_round.hpp71 typename DistanceType,
76 DistanceType const& buffer_distance, in generate_points()
124 template <typename Point, typename DistanceType, typename RangeOut>
127 DistanceType const& buffer_distance, in apply()
157 DistanceType const bd = geometry::math::abs(buffer_distance); in apply()
H A Dbuffer_join_round_by_divide.hpp42 typename DistanceType,
47 DistanceType const& buffer_distance, in mid_points()
84 template <typename Point, typename DistanceType, typename RangeOut>
87 DistanceType const& buffer_distance, in apply()
H A Dbuffer_join_miter.hpp64 template <typename Point, typename DistanceType, typename RangeOut>
67 DistanceType const& buffer_distance, in apply()
H A Dbuffer_end_round.hpp62 typename DistanceType,
67 DistanceType const& buffer_distance, in generate_points()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/index/detail/rtree/visitors/
H A Ddistance_query.hpp18 template <typename Value, typename Translator, typename DistanceType, typename OutIt>
22 typedef DistanceType distance_type;