#include "kdtree.h"
#include <algorithm>
#include <cfloat>
#include <cmath>
#include <cstdio>
Go to the source code of this file.
|
KDTREE * | tesseract::MakeKDTree (int16_t KeySize, const PARAM_DESC KeyDesc[]) |
|
void | tesseract::KDStore (KDTREE *Tree, float *Key, CLUSTER *Data) |
|
void | tesseract::KDDelete (KDTREE *Tree, float Key[], void *Data) |
|
void | tesseract::KDNearestNeighborSearch (KDTREE *Tree, float Query[], int QuerySize, float MaxDistance, int *NumberOfResults, void **NBuffer, float DBuffer[]) |
|
void | tesseract::KDWalk (KDTREE *Tree, kdwalk_proc action, ClusteringContext *context) |
|
float | tesseract::DistanceSquared (int k, PARAM_DESC *dim, float p1[], float p2[]) |
|
float | tesseract::ComputeDistance (int k, PARAM_DESC *dim, float p1[], float p2[]) |
|
void | tesseract::Walk (KDTREE *tree, kdwalk_proc action, ClusteringContext *context, KDNODE *sub_tree, int32_t level) |
|
void | tesseract::InsertNodes (KDTREE *tree, KDNODE *nodes) |
|
◆ Magnitude
#define Magnitude |
( |
|
X | ) |
((X) < 0 ? -(X) : (X)) |
◆ MAXSEARCH
#define MAXSEARCH FLT_MAX |
◆ MINSEARCH
#define MINSEARCH (-FLT_MAX) |
◆ NodeFound
#define NodeFound |
( |
|
N, |
|
|
|
K, |
|
|
|
D |
|
) |
| (((N)->Key == (K)) && ((N)->Data == (D))) |