tesseract
4.0.0-1-g2a2b
|
Public Member Functions | |
KDTreeSearch (KDTREE *tree, float *query_point, int k_closest) | |
~KDTreeSearch () | |
void | Search (int *result_count, float *distances, void **results) |
Helper class for searching for the k closest points to query_point in tree.
Definition at line 121 of file kdtree.cpp.
KDTreeSearch::KDTreeSearch | ( | KDTREE * | tree, |
float * | query_point, | ||
int | k_closest | ||
) |
Definition at line 140 of file kdtree.cpp.
KDTreeSearch::~KDTreeSearch | ( | ) |
Definition at line 146 of file kdtree.cpp.
void KDTreeSearch::Search | ( | int * | result_count, |
float * | distances, | ||
void ** | results | ||
) |
Return the k nearest points' data.
Locate the k_closest points to query_point_, and return their distances and data into the given buffers.
Definition at line 153 of file kdtree.cpp.