tesseract v5.3.3.20231005
|
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 128 of file kdtree.cpp.
tesseract::KDTreeSearch::KDTreeSearch | ( | KDTREE * | tree, |
float * | query_point, | ||
int | k_closest | ||
) |
Definition at line 147 of file kdtree.cpp.
tesseract::KDTreeSearch::~KDTreeSearch | ( | ) |
Definition at line 153 of file kdtree.cpp.
void tesseract::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 160 of file kdtree.cpp.