Go to the documentation of this file.
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 feature * features
features at this node
struct kd_node * kd_right
right 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.
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 tr...
void kdtree_release(struct kd_node *kd_root)
De-allocates memory held by a kd tree.
Structure to represent an affine invariant image feature.
int leaf
1 if node is a leaf, 0 otherwise
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.
int ki
partition key index
struct kd_node * kd_left
left child
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |