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

Function NewFeature

deps/tesseract/classify/ocrfeatures.cpp:94–104  ·  view source on GitHub ↗

* Allocate and return a new feature of the specified * type. * @param FeatureDesc description of feature to be created. * @return New #FEATURE. * @note History: Mon May 21 14:06:42 1990, DSJ, Created. */

Source from the content-addressed store, hash-verified

92 * @note History: Mon May 21 14:06:42 1990, DSJ, Created.
93 */
94FEATURE NewFeature(const FEATURE_DESC_STRUCT* FeatureDesc) {
95 FEATURE Feature;
96
97 Feature = (FEATURE) alloc_struct (sizeof (FEATURE_STRUCT) +
98 (FeatureDesc->NumParams - 1) *
99 sizeof (FLOAT32),
100 "sizeof(FEATURE_STRUCT)+sizeof(FLOAT32)*(NumParamsIn(Feature)-1)");
101 Feature->Type = FeatureDesc;
102 return (Feature);
103
104} /* NewFeature */
105
106/**
107 * Allocate and return a new feature set large enough to

Callers 9

iterateFunction · 0.85
ExtractCharNormFeaturesFunction · 0.85
GetCharNormFeatureMethod · 0.85
AddOutlineFeatureToSetFunction · 0.85
ReadFeatureFunction · 0.85
GetCNFeatureMethod · 0.85
ConvertSegmentToPicoFeatFunction · 0.85
ExtractIntCNFeaturesMethod · 0.85
ExtractIntGeoFeaturesMethod · 0.85

Calls 1

alloc_structFunction · 0.85

Tested by

no test coverage detected