MCPcopy Create free account
hub / github.com/creatale/node-dv / FreeKDTree

Function FreeKDTree

deps/tesseract/classify/kdtree.cpp:350–353  ·  view source on GitHub ↗

---------------------------------------------------------------------------*/ * This routine frees all memory which is allocated to the * specified KD-tree. This includes the data structure for * the kd-tree itself plus the data structures for each node * in the tree. It does not include the Key and Data items * which are pointed to by the nodes. This memory is left * untouched. * @param

Source from the content-addressed store, hash-verified

348 * @note History: 5/26/89, DSJ, Created.
349 */
350void FreeKDTree(KDTREE *Tree) {
351 FreeSubTree(Tree->Root.Left);
352 memfree(Tree);
353} /* FreeKDTree */
354
355
356/*-----------------------------------------------------------------------------

Callers 2

FreeClustererFunction · 0.85
CreateClusterTreeFunction · 0.85

Calls 2

FreeSubTreeFunction · 0.85
memfreeFunction · 0.85

Tested by

no test coverage detected