15 #include <mrpt/otherlibs/do_opencv_includes.h> 61 struct feature*** nbrs,
int max_nn_chks);
83 struct feature*** nbrs,
int max_nn_chks, CvRect rect,
int model);
struct kd_node * kd_left
left child
int kdtree_bbf_knn(struct kd_node *kd_root, struct feature *feat, int k, struct feature ***nbrs, int max_nn_chks)
Finds an image feature's approximate k nearest neighbors in a kd tree using Best Bin First search...
void kdtree_release(struct kd_node *kd_root)
De-allocates memory held by a kd tree
int leaf
1 if node is a leaf, 0 otherwise
struct kd_node * kd_right
right child
double kv
partition key value
struct kd_node * kdtree_build(struct feature *features, int n)
A function to build a k-d tree database from keypoints in an array.
struct feature * features
features at this node
int kdtree_bbf_spatial_knn(struct kd_node *kd_root, struct feature *feat, int k, struct feature ***nbrs, int max_nn_chks, CvRect rect, int model)
Finds an image feature's approximate k nearest neighbors within a specified spatial region in a kd t...
Structure to represent an affine invariant image feature.
int ki
partition key index