tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
82 (FeatureDesc->
NumParams - 1) *
sizeof(
float)));
83 Feature->
Type = FeatureDesc;
98 (NumFeatures - 1) *
sizeof (
FEATURE)));
124 assert (!std::isnan(Feature->
Params[i]));
146 for (
int i = 0; i < NumFeatures; i++)
147 AddFeature(FeatureSet, ReadFeature(File, FeatureDesc));
165 assert(!std::isnan(Feature->
Params[i]));
184 for (
int i = 0; i < FeatureSet->
NumFeatures; i++) {
185 WriteFeature(FeatureSet->
Features[i], str);
bool AddFeature(FEATURE_SET FeatureSet, FEATURE Feature)
void add_str_int(const char *str, int number)
int tfscanf(FILE *stream, const char *format,...)
FEATURE_SET ReadFeatureSet(FILE *File, const FEATURE_DESC_STRUCT *FeatureDesc)
void FreeFeature(FEATURE Feature)
void WriteFeatureSet(FEATURE_SET FeatureSet, STRING *str)
const FEATURE_DESC_STRUCT * Type
FEATURE NewFeature(const FEATURE_DESC_STRUCT *FeatureDesc)
FEATURE_SET NewFeatureSet(int NumFeatures)
void add_str_double(const char *str, double number)
void FreeFeatureSet(FEATURE_SET FeatureSet)