Lines Matching full:distance
305 // only for radius search, require neighbours sorted by distance (default: true)
310 template<typename Distance, typename IndexType> void
311 buildIndex_(void*& index, const Mat& data, const IndexParams& params, const Distance& dist = Distance())
313 typedef typename Distance::ElementType ElementType;
325 template<typename Distance> void
326 buildIndex(void*& index, const Mat& data, const IndexParams& params, const Distance& dist = Distance())
328 buildIndex_<Distance, ::cvflann::Index<Distance> >(index, data, params, dist);
403 CV_Error(Error::StsBadArg, "Unknown/unsupported distance type");
412 template<typename Distance> void deleteIndex(void* index)
414 deleteIndex_< ::cvflann::Index<Distance> >(index);
456 CV_Error(Error::StsBadArg, "Unknown/unsupported distance type");
461 template<typename Distance, typename IndexType>
465 typedef typename Distance::ElementType ElementType;
466 typedef typename Distance::ResultType DistanceType;
480 template<typename Distance>
484 runKnnSearch_<Distance, ::cvflann::Index<Distance> >(index, query, indices, dists, knn, params);
487 template<typename Distance, typename IndexType>
491 typedef typename Distance::ElementType ElementType;
492 typedef typename Distance::ResultType DistanceType;
507 template<typename Distance>
511 return runRadiusSearch_<Distance, ::cvflann::Index<Distance> >(index, query, indices, dists, radius, params);
588 CV_Error(Error::StsBadArg, "Unknown/unsupported distance type");
626 CV_Error(Error::StsBadArg, "Unknown/unsupported distance type");
652 template<typename Distance> void saveIndex(const Index* index0, const void* index, FILE* fout)
654 saveIndex_< ::cvflann::Index<Distance> >(index0, index, fout);
694 CV_Error(Error::StsBadArg, "Unknown/unsupported distance type");
701 template<typename Distance, typename IndexType>
702 bool loadIndex_(Index* index0, void*& index, const Mat& data, FILE* fin, const Distance& dist=Distance())
704 typedef typename Distance::ElementType ElementType;
717 template<typename Distance>
718 bool loadIndex(Index* index0, void*& index, const Mat& data, FILE* fin, const Distance& dist=Distance())
720 return loadIndex_<Distance, ::cvflann::Index<Distance> >(index0, index, data, fin, dist);
792 fprintf(stderr, "Reading FLANN index error: unsupported distance type %d\n", distType);