OpenCV  4.1.0
Open Source Computer Vision
Classes | Namespaces | Macros | Functions
flann.hpp File Reference
#include "opencv2/core.hpp"
#include "opencv2/flann/miniflann.hpp"
#include "opencv2/flann/flann_base.hpp"

Classes

struct  cv::flann::CvType< T >
 
struct  cv::flann::CvType< char >
 
struct  cv::flann::CvType< double >
 
struct  cv::flann::CvType< float >
 
struct  cv::flann::CvType< short >
 
struct  cv::flann::CvType< unsigned char >
 
struct  cv::flann::CvType< unsigned short >
 
class  cv::flann::GenericIndex< Distance >
 The FLANN nearest neighbor index class. This class is templated with the type of elements for which the index is built. More...
 
class  cv::flann::Index_< T >
 

Namespaces

namespace  cv
 "black box" representation of the file storage associated with a file on disk.
 
namespace  cv::flann
 
namespace  cvflann
 

Macros

#define FLANN_DISTANCE_CHECK
 

Functions

flann_distance_t cvflann::flann_distance_type ()
 
template<typename Distance >
int cv::flann::hierarchicalClustering (const Mat &features, Mat &centers, const ::cvflann::KMeansIndexParams &params, Distance d=Distance())
 Clusters features using hierarchical k-means algorithm.
 
template<typename ELEM_TYPE , typename DIST_TYPE >
int cv::flann::hierarchicalClustering (const Mat &features, Mat &centers, const ::cvflann::KMeansIndexParams &params)
 
void cvflann::set_distance_type (flann_distance_t distance_type, int order)
 

Macro Definition Documentation

#define FLANN_DISTANCE_CHECK
Value:
printf("[WARNING] You are using cv::flann::Index (or cv::flann::GenericIndex) and have also changed "\
"the distance using cvflann::set_distance_type. This is no longer working as expected "\
"(cv::flann::Index always uses L2). You should create the index templated on the distance, "\
"for example for L1 distance use: GenericIndex< L1<float> > \n"); \
}