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

Function FreeCluster

deps/tesseract/classify/cluster.cpp:2189–2195  ·  view source on GitHub ↗

* This routine frees the memory consumed by the specified * cluster and all of its subclusters. This is done by * recursive calls to FreeCluster(). * * @param Cluster pointer to cluster to be freed * * @return None * * @note Exceptions: None * @note History: 6/6/89, DSJ, Created. */

Source from the content-addressed store, hash-verified

2187 * @note History: 6/6/89, DSJ, Created.
2188 */
2189void FreeCluster(CLUSTER *Cluster) {
2190 if (Cluster != NULL) {
2191 FreeCluster (Cluster->Left);
2192 FreeCluster (Cluster->Right);
2193 memfree(Cluster);
2194 }
2195} // FreeCluster
2196
2197/**
2198 * This routine computes the degrees of freedom that should

Callers 1

FreeClustererFunction · 0.85

Calls 1

memfreeFunction · 0.85

Tested by

no test coverage detected