Home
last modified time | relevance | path

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

123456

/external/opencv3/modules/flann/include/opencv2/flann/
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 …]
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()
91 NNIndex<Distance>* nnIndex = create_index_by_type<Distance>(dataset, params, distance); in load_saved_index()
99 template<typename Distance>
100 class Index : public NNIndex<Distance>
103 typedef typename Distance::ElementType ElementType;
104 typedef typename Distance::ResultType DistanceType;
106 …ex(const Matrix<ElementType>& features, const IndexParams& params, Distance distance = Distance() ) in Index()
113 …nnIndex_ = load_saved_index<Distance>(features, get_param<cv::String>(params,"filename"), distance… in Index()
[all …]
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 …]
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);
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_;
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_;
Dautotuned_index.h48 template<typename Distance>
49 NNIndex<Distance>* create_index_by_type(const Matrix<typename Distance::ElementType>& dataset, cons…
69 template <typename Distance>
70 class AutotunedIndex : public NNIndex<Distance>
73 typedef typename Distance::ElementType ElementType;
74 typedef typename Distance::ResultType DistanceType;
76 …entType>& inputData, const IndexParams& params = AutotunedIndexParams(), Distance d = Distance()) :
141 bestIndex_ = create_index_by_type<Distance>(dataset_, params, distance_); in loadIndex()
231 KMeansIndex<Distance> kmeans(sampledDataset_, cost.params, distance_); in evaluate_kmeans()
256 KDTreeIndex<Distance> kdtree(sampledDataset_, cost.params, distance_); in evaluate_kdtree()
[all …]
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 …]
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_;
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;
Dnn_index.h45 template <typename Distance>
48 typedef typename Distance::ElementType ElementType;
49 typedef typename Distance::ResultType DistanceType;
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() ) :
614 Distance distance_;
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 …]
/external/vulkan-validation-layers/libs/glm/gtx/
Dextend.inl17 genType const & Distance argument
20 return Origin + (Source - Origin) * Distance;
28 T const & Distance argument
31 return Origin + (Source - Origin) * Distance;
39 T const & Distance argument
42 return Origin + (Source - Origin) * Distance;
50 T const & Distance argument
53 return Origin + (Source - Origin) * Distance;
Dclosest_point.inl28 T Distance = dot(Vector, LineDirection); local
30 if(Distance <= T(0)) return a;
31 if(Distance >= LineLength) return b;
32 return a + LineDirection * Distance;
/external/opencv3/modules/flann/include/opencv2/
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 …]
/external/opencv3/modules/flann/src/
Dminiflann.cpp310 template<typename Distance, typename IndexType> void
311 …Index_(void*& index, const Mat& data, const IndexParams& params, const Distance& dist = Distance()) in buildIndex_()
313 typedef typename Distance::ElementType ElementType; in buildIndex_()
325 template<typename Distance> void
326 …dIndex(void*& index, const Mat& data, const IndexParams& params, const Distance& dist = Distance()) in buildIndex()
328 buildIndex_<Distance, ::cvflann::Index<Distance> >(index, data, params, dist); in buildIndex()
412 template<typename Distance> void deleteIndex(void* index) in deleteIndex()
414 deleteIndex_< ::cvflann::Index<Distance> >(index); in deleteIndex()
461 template<typename Distance, typename IndexType>
465 typedef typename Distance::ElementType ElementType; in runKnnSearch_()
[all …]
/external/v8/src/x64/
Dmacro-assembler-x64.h152 Label::Distance if_equal_distance = Label::kFar) {
158 Label::Distance if_equal_distance = Label::kFar) {
166 Label::Distance if_not_equal_distance = Label::kFar) {
172 Label::Distance if_not_equal_distance = Label::kFar) {
212 Label::Distance condition_met_distance = Label::kFar);
219 Label::Distance distance = Label::kFar) {
228 Label::Distance distance = Label::kFar) {
235 Label::Distance on_black_distance);
240 Label* value_is_white, Label::Distance distance);
453 Label::Distance near_jump = Label::kFar);
[all …]
/external/clang/unittests/AST/
DASTTypeTraitsTest.cpp44 unsigned Distance = 1; in TEST() local
45 EXPECT_TRUE(DNT<Expr>().isBaseOf(DNT<Expr>(), &Distance)); in TEST()
46 EXPECT_EQ(0u, Distance); in TEST()
48 EXPECT_TRUE(DNT<Stmt>().isBaseOf(DNT<IfStmt>(), &Distance)); in TEST()
49 EXPECT_EQ(1u, Distance); in TEST()
51 Distance = 3; in TEST()
52 EXPECT_TRUE(DNT<DeclaratorDecl>().isBaseOf(DNT<ParmVarDecl>(), &Distance)); in TEST()
53 EXPECT_EQ(2u, Distance); in TEST()
/external/v8/src/x87/
Dmacro-assembler-x87.h84 Label::Distance if_equal_distance = Label::kFar) {
90 Label::Distance if_equal_distance = Label::kFar) {
98 Label::Distance if_not_equal_distance = Label::kFar) {
104 Label::Distance if_not_equal_distance = Label::kFar) {
123 Label::Distance condition_met_distance = Label::kFar);
127 Label::Distance condition_met_distance = Label::kFar);
132 Label::Distance distance = Label::kFar) {
139 Label::Distance distance = Label::kFar) {
145 Label* has_color, Label::Distance has_color_distance,
150 Label::Distance on_black_distance = Label::kFar);
[all …]
/external/v8/src/ia32/
Dmacro-assembler-ia32.h84 Label::Distance if_equal_distance = Label::kFar) {
90 Label::Distance if_equal_distance = Label::kFar) {
98 Label::Distance if_not_equal_distance = Label::kFar) {
104 Label::Distance if_not_equal_distance = Label::kFar) {
123 Label::Distance condition_met_distance = Label::kFar);
127 Label::Distance condition_met_distance = Label::kFar);
132 Label::Distance distance = Label::kFar) {
139 Label::Distance distance = Label::kFar) {
145 Label* has_color, Label::Distance has_color_distance,
150 Label::Distance on_black_distance = Label::kFar);
[all …]
/external/pdfium/xfa/src/fxbarcode/datamatrix/
DBC_DataMatrixDetector.cpp211 FX_FLOAT corr = Distance(bottomLeft, bottomRight) / (FX_FLOAT)dimensionTop; in CorrectTopRightRectangular()
212 int32_t norm = Distance(topLeft, topRight); in CorrectTopRightRectangular()
217 corr = Distance(bottomLeft, topLeft) / (FX_FLOAT)dimensionRight; in CorrectTopRightRectangular()
218 norm = Distance(bottomRight, topRight); in CorrectTopRightRectangular()
258 FX_FLOAT corr = Distance(bottomLeft, bottomRight) / (FX_FLOAT)dimension; in CorrectTopRight()
259 int32_t norm = Distance(topLeft, topRight); in CorrectTopRight()
264 corr = Distance(bottomLeft, bottomRight) / (FX_FLOAT)dimension; in CorrectTopRight()
265 norm = Distance(bottomRight, topRight); in CorrectTopRight()
299 int32_t CBC_DataMatrixDetector::Distance(CBC_ResultPoint* a, in Distance() function in CBC_DataMatrixDetector
375 FX_FLOAT abDistance = (FX_FLOAT)Distance((CBC_ResultPoint*)(*patterns)[0], in OrderBestPatterns()
[all …]
/external/clang/lib/AST/
DASTTypeTraits.cpp42 bool ASTNodeKind::isBaseOf(ASTNodeKind Other, unsigned *Distance) const { in isBaseOf()
43 return isBaseOf(KindId, Other.KindId, Distance); in isBaseOf()
51 unsigned *Distance) { in isBaseOf() argument
58 if (Distance) in isBaseOf()
59 *Distance = Dist; in isBaseOf()
/external/jhead/
Dmakernote.c138 if (Components > 19 && ImageInfo.Distance <= 0) { in ProcessCanonMakerNoteDir()
144 ImageInfo.Distance = (float)temp_dist/100; in ProcessCanonMakerNoteDir()
146 ImageInfo.Distance = -1 /* infinity */; in ProcessCanonMakerNoteDir()
/external/vulkan-validation-layers/libs/glm/gtc/
Dulp.hpp69 GLM_FUNC_DECL genType next_float(genType const & x, uint const & Distance);
74 GLM_FUNC_DECL genType prev_float(genType const & x, uint const & Distance);

123456