Home
last modified time | relevance | path

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

/external/opencv3/modules/flann/include/opencv2/flann/
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 …]
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 …]
Dkdtree_single_index.h74 typedef typename Distance::ResultType DistanceType; typedef
212 …void knnSearch(const Matrix<ElementType>& queries, Matrix<int>& indices, Matrix<DistanceType>& dis… in knnSearch()
220 KNNSimpleResultSet<DistanceType> resultSet(knn); in knnSearch()
241 …void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchParams& se… in findNeighbors()
245 std::vector<DistanceType> dists(dim_,0); in findNeighbors()
246 DistanceType distsq = computeInitialDistances(vec, dists); in findNeighbors()
267 DistanceType divlow, divhigh;
278 DistanceType low, high;
283 typedef BranchStruct<NodePtr, DistanceType> BranchSt;
318 bbox[i].low = (DistanceType)dataset_[0][i]; in computeBoundingBox()
[all …]
Dkdtree_index.h74 typedef typename Distance::ResultType DistanceType; typedef
100 mean_ = new DistanceType[veclen_]; in dataset_()
101 var_ = new DistanceType[veclen_]; in dataset_()
199 …void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchParams& se… in findNeighbors()
230 DistanceType divval;
237 typedef BranchStruct<NodePtr, DistanceType> BranchSt;
288 DistanceType cutval; in divideTree()
306 void meanSplit(int* ind, int count, int& index, int& cutfeat, DistanceType& cutval) in meanSplit()
308 memset(mean_,0,veclen_*sizeof(DistanceType)); in meanSplit()
309 memset(var_,0,veclen_*sizeof(DistanceType)); in meanSplit()
[all …]
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…
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 …]
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 …]
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()
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()
Dflann_base.hpp104 typedef typename Distance::ResultType DistanceType; typedef in cvflann::Index
214 …void knnSearch(const Matrix<ElementType>& queries, Matrix<int>& indices, Matrix<DistanceType>& dis… in knnSearch()
228 …int radiusSearch(const Matrix<ElementType>& query, Matrix<int>& indices, Matrix<DistanceType>& dis… in radiusSearch()
236 …void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchParams& se… in findNeighbors()
Dground_truth.h45 typedef typename Distance::ResultType DistanceType; typedef
49 std::vector<DistanceType> dists(n);
56 DistanceType tmp = distance(dataset[i], query, dataset.cols);
Dcomposite_index.h75 typedef typename Distance::ResultType DistanceType; typedef
175 …void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchParams& se… in findNeighbors()
Dautotuned_index.h74 typedef typename Distance::ResultType DistanceType; typedef
151 …virtual void findNeighbors(ResultSet<DistanceType>& result, const ElementType* vec, const SearchPa… in findNeighbors()
/external/opencv3/modules/flann/include/opencv2/
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 …]
/external/opencv3/modules/imgproc/perf/
Dperf_distanceTransform.cpp33 CV_ENUM(DistanceType, DIST_L1, DIST_L2 , DIST_C)
38 typedef std::tr1::tuple<Size, DistanceType, MaskSize, DstType> SrcSize_DistType_MaskSize_DstType;
39 typedef std::tr1::tuple<Size, DistanceType, MaskSize, LabelType> SrcSize_DistType_MaskSize_LabelTyp…
46 DistanceType::all(),
75 DistanceType::all(),
/external/opencv3/modules/features2d/test/
Dtest_descriptors_regression.cpp101 typedef typename Distance::ResultType DistanceType; typedef in CV_DescriptorExtractorTest
103 …CV_DescriptorExtractorTest( const string _name, DistanceType _maxDist, const Ptr<DescriptorExtract… in CV_DescriptorExtractorTest()
125 DistanceType curMaxDist = std::numeric_limits<DistanceType>::min(); in compareDescriptors()
128DistanceType dist = distance( validDescriptors.ptr<ValueType>(y), calcDescriptors.ptr<ValueType>(y… in compareDescriptors()
300 const DistanceType maxDist;
316 (CV_DescriptorExtractorTest<Hamming>::DistanceType)2.f, in TEST()
326 … (CV_DescriptorExtractorTest<Hamming>::DistanceType)25.f, in TEST()
328 … (CV_DescriptorExtractorTest<Hamming>::DistanceType)12.f, in TEST()
345 … (CV_DescriptorExtractorTest<Hamming>::DistanceType)12.f, in TEST()
/external/opencv3/modules/flann/src/
Dminiflann.cpp466 typedef typename Distance::ResultType DistanceType; in runKnnSearch_() typedef
468 int dtype = DataType<DistanceType>::type; in runKnnSearch_()
474 ::cvflann::Matrix<DistanceType> _dists(dists.ptr<DistanceType>(), dists.rows, dists.cols); in runKnnSearch_()
492 typedef typename Distance::ResultType DistanceType; in runRadiusSearch_() typedef
494 int dtype = DataType<DistanceType>::type; in runRadiusSearch_()
500 ::cvflann::Matrix<DistanceType> _dists(dists.ptr<DistanceType>(), dists.rows, dists.cols); in runRadiusSearch_()