Home
last modified time | relevance | path

Searched refs:dists (Results 1 – 25 of 45) sorted by relevance

12

/external/opencv3/modules/flann/include/opencv2/
Dflann.hpp217 … std::vector<DistanceType>& dists, int knn, const ::cvflann::SearchParams& params);
218 …void knnSearch(const Mat& queries, Mat& indices, Mat& dists, int knn, const ::cvflann::SearchParam…
221 … std::vector<DistanceType>& dists, DistanceType radius, const ::cvflann::SearchParams& params);
222 int radiusSearch(const Mat& query, Mat& indices, Mat& dists,
271 …lementType>& query, std::vector<int>& indices, std::vector<DistanceType>& dists, int knn, const ::… in knnSearch() argument
275 ::cvflann::Matrix<DistanceType> m_dists(&dists[0], 1, dists.size()); in knnSearch()
284 void GenericIndex<Distance>::knnSearch(const Mat& queries, Mat& indices, Mat& dists, int knn, const… in knnSearch() argument
294 CV_Assert(dists.type() == CvType<DistanceType>::type()); in knnSearch()
295 CV_Assert(dists.isContinuous()); in knnSearch()
296 …:cvflann::Matrix<DistanceType> m_dists((DistanceType*)dists.ptr<DistanceType>(0), dists.rows, dist… in knnSearch()
[all …]
/external/opencv3/modules/flann/include/opencv2/flann/
Dresult_set.h88 DistanceType* dists; variable
101 dists = dists_; in init()
104 dists[capacity-1] = worst_distance_; in init()
124 if ( (dists[i-1]>dist) || ((dist==dists[i-1])&&(indices[i-1]>index)) ) in addPoint()
126 if (dists[i-1]>dist) in addPoint()
130 dists[i] = dists[i-1]; in addPoint()
137 dists[i] = dist; in addPoint()
139 worst_distance_ = dists[capacity-1]; in addPoint()
155 DistanceType* dists; variable
168 dists = dists_; in init()
[all …]
Dground_truth.h49 std::vector<DistanceType> dists(n);
51 dists[0] = distance(dataset[0], query, dataset.cols);
60 dists[dcnt++] = tmp;
62 else if (tmp < dists[dcnt-1]) {
63 dists[dcnt-1] = tmp;
69 while (j>=1 && dists[j]<dists[j-1]) {
70 std::swap(dists[j],dists[j-1]);
Dnn_index.h68 …Matrix<ElementType>& queries, Matrix<int>& indices, Matrix<DistanceType>& dists, int knn, const Se… in knnSearch() argument
72 assert(dists.rows >= queries.rows); in knnSearch()
74 assert(int(dists.cols) >= knn); in knnSearch()
79 resultSet.init(indices[i], dists[i]); in knnSearch()
87 if (get_param(params,"sorted",true)) resultSet.sortAndCopy(indices[i], dists[i], knn); in knnSearch()
88 else resultSet.copy(indices[i], dists[i], knn); in knnSearch()
102 …t Matrix<ElementType>& query, Matrix<int>& indices, Matrix<DistanceType>& dists, float radius, con… in radiusSearch() argument
109 assert(indices.cols == dists.cols); in radiusSearch()
117 dists_ptr = dists[0]; in radiusSearch()
Dkdtree_single_index.h212 …Matrix<ElementType>& queries, Matrix<int>& indices, Matrix<DistanceType>& dists, int knn, const Se… in knnSearch() argument
216 assert(dists.rows >= queries.rows); in knnSearch()
218 assert(int(dists.cols) >= knn); in knnSearch()
222 resultSet.init(indices[i], dists[i]); in knnSearch()
245 std::vector<DistanceType> dists(dim_,0); in findNeighbors()
246 DistanceType distsq = computeInitialDistances(vec, dists); in findNeighbors()
247 searchLevel(result, vec, root_node_, distsq, dists, epsError); in findNeighbors()
521 DistanceType computeInitialDistances(const ElementType* vec, std::vector<DistanceType>& dists) in computeInitialDistances() argument
527 dists[i] = distance_.accum_dist(vec[i], root_bbox_[i].low, (int)i); in computeInitialDistances()
528 distsq += dists[i]; in computeInitialDistances()
[all …]
Dflann_base.hpp214 …Matrix<ElementType>& queries, Matrix<int>& indices, Matrix<DistanceType>& dists, int knn, const Se… in knnSearch() argument
216 nnIndex_->knnSearch(queries, indices, dists, knn, params); in knnSearch()
228 …t Matrix<ElementType>& query, Matrix<int>& indices, Matrix<DistanceType>& dists, float radius, con… in radiusSearch() argument
230 return nnIndex_->radiusSearch(query, indices, dists, radius, params); in radiusSearch()
Dlsh_index.h190 …Matrix<ElementType>& queries, Matrix<int>& indices, Matrix<DistanceType>& dists, int knn, const Se… in knnSearch() argument
194 assert(dists.rows >= queries.rows); in knnSearch()
196 assert(int(dists.cols) >= knn); in knnSearch()
203 std::fill_n(dists[i], knn, std::numeric_limits<DistanceType>::max()); in knnSearch()
205 if (get_param(params,"sorted",true)) resultSet.sortAndCopy(indices[i], dists[i], knn); in knnSearch()
206 else resultSet.copy(indices[i], dists[i], knn); in knnSearch()
/external/opencv3/modules/flann/src/
Dminiflann.cpp462 void runKnnSearch_(void* index, const Mat& query, Mat& indices, Mat& dists, in runKnnSearch_() argument
469 CV_Assert(query.type() == type && indices.type() == CV_32S && dists.type() == dtype); in runKnnSearch_()
470 CV_Assert(query.isContinuous() && indices.isContinuous() && dists.isContinuous()); in runKnnSearch_()
474 ::cvflann::Matrix<DistanceType> _dists(dists.ptr<DistanceType>(), dists.rows, dists.cols); in runKnnSearch_()
481 void runKnnSearch(void* index, const Mat& query, Mat& indices, Mat& dists, in runKnnSearch() argument
484 runKnnSearch_<Distance, ::cvflann::Index<Distance> >(index, query, indices, dists, knn, params); in runKnnSearch()
488 int runRadiusSearch_(void* index, const Mat& query, Mat& indices, Mat& dists, in runRadiusSearch_() argument
495 CV_Assert(query.type() == type && indices.type() == CV_32S && dists.type() == dtype); in runRadiusSearch_()
496 CV_Assert(query.isContinuous() && indices.isContinuous() && dists.isContinuous()); in runRadiusSearch_()
500 ::cvflann::Matrix<DistanceType> _dists(dists.ptr<DistanceType>(), dists.rows, dists.cols); in runRadiusSearch_()
[all …]
/external/zopfli/src/zopfli/
Dblocksplitter.c107 const unsigned short* dists, in EstimateCost() argument
109 return ZopfliCalculateBlockSize(litlens, dists, lstart, lend, 2); in EstimateCost()
114 const unsigned short* dists; member
128 return EstimateCost(c->litlens, c->dists, c->start, i) + in SplitCost()
129 EstimateCost(c->litlens, c->dists, i, c->end); in SplitCost()
151 const unsigned short* dists, in PrintBlockSplitPoints() argument
162 size_t length = dists[i] == 0 ? 1 : litlens[i]; in PrintBlockSplitPoints()
220 const unsigned short* dists, in ZopfliBlockSplitLZ77() argument
246 c.dists = dists; in ZopfliBlockSplitLZ77()
256 splitcost = EstimateCost(litlens, dists, lstart, llpos) + in ZopfliBlockSplitLZ77()
[all …]
Dsqueeze.c35 size_t dists[32]; member
44 memset(stats->dists, 0, 32 * sizeof(stats->dists[0])); in InitStats()
52 memcpy(dest->dists, source->dists, 32 * sizeof(dest->dists[0])); in CopyStats()
69 result->dists[i] = in AddWeighedStatFreqs()
70 (size_t) (stats1->dists[i] * w1 + stats2->dists[i] * w2); in AddWeighedStatFreqs()
100 RandomizeFreqs(state, stats->dists, 32); in RandomizeStatFreqs()
107 for (i = 0; i < 32; i++) stats->dists[i] = 0; in ClearStatFreqs()
395 ZopfliCalculateEntropy(stats->dists, 32, stats->d_symbols); in CalculateStatistics()
402 if (store->dists[i] == 0) { in GetStatistics()
406 stats->dists[ZopfliGetDistSymbol(store->dists[i])]++; in GetStatistics()
[all …]
Ddeflate.c298 const unsigned short* dists, in AddLZ77Data() argument
309 unsigned dist = dists[i]; in AddLZ77Data()
351 const unsigned short* dists, in CalculateBlockSymbolSize() argument
356 if (dists[i] == 0) { in CalculateBlockSymbolSize()
360 result += d_lengths[ZopfliGetDistSymbol(dists[i])]; in CalculateBlockSymbolSize()
362 result += ZopfliGetDistExtraBits(dists[i]); in CalculateBlockSymbolSize()
474 const unsigned short* dists, in GetDynamicLengths() argument
480 ZopfliLZ77Counts(litlens, dists, lstart, lend, ll_counts, d_counts); in GetDynamicLengths()
489 const unsigned short* dists, in ZopfliCalculateBlockSize() argument
501 GetDynamicLengths(litlens, dists, lstart, lend, ll_lengths, d_lengths); in ZopfliCalculateBlockSize()
[all …]
Dlz77.c30 store->dists = 0; in ZopfliInitLZ77Store()
35 free(store->dists); in ZopfliCleanLZ77Store()
44 dest->dists = (unsigned short*)malloc(sizeof(*dest->dists) * source->size); in ZopfliCopyLZ77Store()
46 if (!dest->litlens || !dest->dists) exit(-1); /* Allocation failed. */ in ZopfliCopyLZ77Store()
51 dest->dists[i] = source->dists[i]; in ZopfliCopyLZ77Store()
63 ZOPFLI_APPEND_DATA(dist, &store->dists, &size2); in ZopfliStoreLitLenDist()
460 const unsigned short* dists, in ZopfliLZ77Counts() argument
473 if (dists[i] == 0) { in ZopfliLZ77Counts()
477 d_count[ZopfliGetDistSymbol(dists[i])]++; in ZopfliLZ77Counts()
Dlz77.h46 unsigned short* dists; /* If 0: indicates literal in corresponding litlens, member
114 const unsigned short* dists,
/external/opencv3/modules/photo/src/opencl/
Dnlmeans.cl100 __local int * dists, int y, int x, int id,
139 dists[i] = dist;
145 __local int * dists, int y, int x0, int x, int id, int first,
170 dists[i] += col_dist - col_dists_current[first];
177 __local int * dists, int y, int x0, int x, int id, int first,
203 dists[i] += col_dist - col_dists_current[0];
210 __local int * dists, __global const wlut_t * almostDist2Weight,
224 int almostAvgDist = dists[i] >> almostTemplateWindowSizeSqBinShift;
266 __local int dists[SEARCH_SIZE_SQ];
284 … calcFirstElementInRow(src, src_step, src_offset, dists, y, x, id, col_dists, up_col_dists);
[all …]
/external/opencv3/modules/features2d/src/
Dblobdetector.cpp281 std::vector<double> dists; in findBlobs() local
285 dists.push_back(norm(center.location - pt)); in findBlobs()
287 std::sort(dists.begin(), dists.end()); in findBlobs()
288 center.radius = (dists[(dists.size() - 1) / 2] + dists[dists.size() / 2]) / 2.; in findBlobs()
/external/vulkan-validation-layers/demos/smoke/android/gradle/wrapper/
Dgradle-wrapper.properties3 distributionPath=wrapper/dists
5 zipStorePath=wrapper/dists
/external/testng/gradle/wrapper/
Dgradle-wrapper.properties3 distributionPath=wrapper/dists
5 zipStorePath=wrapper/dists
/external/smali/gradle/wrapper/
Dgradle-wrapper.properties3 distributionPath=wrapper/dists
5 zipStorePath=wrapper/dists
/external/skia/platform_tools/android/apps/gradle/wrapper/
Dgradle-wrapper.properties3 distributionPath=wrapper/dists
5 zipStorePath=wrapper/dists
/external/vulkan-validation-layers/build-android/gradle-templates/gradle/wrapper/
Dgradle-wrapper.properties3 distributionPath=wrapper/dists
5 zipStorePath=wrapper/dists
/external/e2fsprogs/intl/
DMakefile.in346 for file in $$dists; do \
352 for file in $$dists; do \
358 for file in $$dists; do \
/external/e2fsprogs/po/
DMakefile.in.in300 dists="$(DISTFILES)"; \
302 dists="$$dists Makevars.template"; \
305 dists="$$dists ChangeLog"; \
309 dists="$$dists ChangeLog.$$i"; \
312 if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
313 for file in $$dists; do \
/external/libexif/po/
DMakefile.in.in293 dists="$(DISTFILES)"; \
295 dists="$$dists Makevars.template"; \
298 dists="$$dists ChangeLog"; \
302 dists="$$dists ChangeLog.$$i"; \
305 if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
306 for file in $$dists; do \
/external/bison/po/
DMakefile.in.in361 dists="$(DISTFILES)"; \
363 dists="$$dists Makevars.template"; \
366 dists="$$dists $(DOMAIN).pot stamp-po"; \
369 dists="$$dists ChangeLog"; \
373 dists="$$dists ChangeLog.$$i"; \
376 if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
377 for file in $$dists; do \
/external/elfutils/po/
DMakefile.in.in368 dists="$(DISTFILES)"; \
370 dists="$$dists Makevars.template"; \
373 dists="$$dists $(DOMAIN).pot stamp-po"; \
376 dists="$$dists ChangeLog"; \
380 dists="$$dists ChangeLog.$$i"; \
383 if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
384 for file in $$dists; do \

12