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

Function NewFeatureSet

deps/tesseract/classify/ocrfeatures.cpp:113–122  ·  view source on GitHub ↗

* Allocate and return a new feature set large enough to * hold the specified number of features. * @param NumFeatures maximum # of features to be put in feature set * @return New #FEATURE_SET. * @note History: Mon May 21 14:22:40 1990, DSJ, Created. */

Source from the content-addressed store, hash-verified

111 * @note History: Mon May 21 14:22:40 1990, DSJ, Created.
112 */
113FEATURE_SET NewFeatureSet(int NumFeatures) {
114 FEATURE_SET FeatureSet;
115
116 FeatureSet = (FEATURE_SET) Emalloc (sizeof (FEATURE_SET_STRUCT) +
117 (NumFeatures - 1) * sizeof (FEATURE));
118 FeatureSet->MaxNumFeatures = NumFeatures;
119 FeatureSet->NumFeatures = 0;
120 return (FeatureSet);
121
122} /* NewFeatureSet */
123
124/**
125 * Create a new feature of the specified type and read in

Callers 7

ExtractMicrosFunction · 0.85
ExtractCharNormFeaturesFunction · 0.85
ReadFeatureSetFunction · 0.85
ExtractPicoFeaturesMethod · 0.85
ExtractIntCNFeaturesMethod · 0.85
ExtractIntGeoFeaturesMethod · 0.85

Calls 1

EmallocFunction · 0.85

Tested by

no test coverage detected