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

Function FreeFeature

deps/tesseract/classify/ocrfeatures.cpp:60–67  ·  view source on GitHub ↗

* Release the memory consumed by the specified feature. * @param Feature feature to be deallocated. * @return none * @note History: Mon May 21 13:33:27 1990, DSJ, Created. */

Source from the content-addressed store, hash-verified

58 * @note History: Mon May 21 13:33:27 1990, DSJ, Created.
59 */
60void FreeFeature(FEATURE Feature) {
61 if (Feature) {
62 free_struct (Feature, sizeof (FEATURE_STRUCT)
63 + sizeof (FLOAT32) * (Feature->Type->NumParams - 1),
64 "sizeof(FEATURE_STRUCT)+sizeof(FLOAT32)*(NumParamsIn(Feature)-1)");
65 }
66
67} /* FreeFeature */
68
69/**
70 * Release the memory consumed by the specified feature

Callers 3

ComputeCharNormArraysMethod · 0.85
AddFeatureFunction · 0.85
FreeFeatureSetFunction · 0.85

Calls 1

free_structFunction · 0.85

Tested by

no test coverage detected