30 #ifndef OPENCV_FLANN_PARAMS_H_
31 #define OPENCV_FLANN_PARAMS_H_
49 (*this)[
"checks"] = checks;
53 (*this)[
"sorted"] = sorted;
61 IndexParams::const_iterator it = params.find(name);
62 if (it != params.end()) {
63 return it->second.cast<
T>();
73 IndexParams::const_iterator it = params.find(name);
74 if (it != params.end()) {
75 return it->second.cast<
T>();
78 throw FLANNException(std::string(
"Missing parameter '")+name+std::string(
"' in the parameters given"));
84 IndexParams::const_iterator it;
86 for(it=params.begin(); it!=params.end(); ++it) {
87 std::cout << it->first <<
" : " << it->second << std::endl;
T get_param(const IndexParams ¶ms, std::string name, const T &default_value)
Definition: params.h:59
void print_params(const IndexParams ¶ms)
Definition: params.h:82
const CvMat const CvMat const CvMat CvMat CvMat CvMat CvMat CvSize CvMat CvMat * T
Definition: calib3d.hpp:270
int CvMemStorage int double eps
Definition: imgproc_c.h:353
SearchParams(int checks=32, float eps=0, bool sorted=true)
Definition: params.h:46
std::map< std::string, any > IndexParams
Definition: params.h:42
GLenum const GLfloat * params
Definition: compat.hpp:688
GLuint const GLchar * name
Definition: core_c.h:1546