25 #include "ocrfeatures.h" 56 #define RootOf(T) ((T)->Root.Left->Data) 67 void KDNearestNeighborSearch(
68 KDTREE *Tree,
float Query[],
int QuerySize,
float MaxDistance,
69 int *NumberOfResults,
void **NBuffer,
float DBuffer[]);
71 void KDWalk(
KDTREE *Tree, void_proc Action,
void *context);
73 void FreeKDTree(
KDTREE *Tree);
80 void FreeKDNode(
KDNODE *Node);
82 float DistanceSquared(
int k,
PARAM_DESC *dim,
float p1[],
float p2[]);
84 float ComputeDistance(
int k,
PARAM_DESC *dim,
float p1[],
float p2[]);
86 int QueryInSearch(
KDTREE *tree);
88 void Walk(
KDTREE *tree, void_proc action,
void *context,
89 KDNODE *SubTree, int32_t Level);
93 void FreeSubTree(
KDNODE *SubTree);
float * Key
Definition: kdtree.h:38
float RightBranch
Definition: kdtree.h:42
struct KDNODE * Left
Definition: kdtree.h:43
struct KDNODE * Right
Definition: kdtree.h:44
float LeftBranch
Definition: kdtree.h:41
void * Data
Definition: kdtree.h:39
float BranchPoint
Definition: kdtree.h:40
KDNODE Root
Definition: kdtree.h:49
Definition: ocrfeatures.h:43
int16_t KeySize
Definition: kdtree.h:48