/home/rays/src/opensrc/tesseract-ocr/classify/ocrfeatures.h File Reference
#include "blobs.h"
#include <stdio.h>
Go to the source code of this file.
Classes |
| struct | PARAM_DESC |
| struct | FEATURE_DESC_STRUCT |
| struct | FEATURE_STRUCT |
| struct | FEATURE_SET_STRUCT |
| struct | FEATURE_EXT_STRUCT |
Defines |
| #define | FEAT_NAME_SIZE 80 |
| #define | ILLEGAL_FEATURE_PARAM 1000 |
| #define | ILLEGAL_NUM_FEATURES 1001 |
| #define | StartParamDesc(Name) const PARAM_DESC Name[] = { |
| #define | DefineParam(Circular, NonEssential, Min, Max) |
| #define | EndParamDesc }; |
| #define | DefineFeature(Name, NL, NC, SN, PN) |
Typedefs |
| typedef FEATURE_DESC_STRUCT * | FEATURE_DESC |
| typedef FEATURE_STRUCT * | FEATURE |
| typedef FEATURE_SET_STRUCT * | FEATURE_SET |
| typedef char * | CHAR_FEATURES |
| typedef FEATURE_SET(* | FX_FUNC )(TBLOB *, const DENORM &) |
Functions |
| BOOL8 | AddFeature (FEATURE_SET FeatureSet, FEATURE Feature) |
| void | FreeFeature (FEATURE Feature) |
| void | FreeFeatureSet (FEATURE_SET FeatureSet) |
| FEATURE | NewFeature (const FEATURE_DESC_STRUCT *FeatureDesc) |
| FEATURE_SET | NewFeatureSet (int NumFeatures) |
| FEATURE | ReadFeature (FILE *File, const FEATURE_DESC_STRUCT *FeatureDesc) |
| FEATURE_SET | ReadFeatureSet (FILE *File, const FEATURE_DESC_STRUCT *FeatureDesc) |
| void | WriteFeature (FILE *File, FEATURE Feature) |
| void | WriteFeatureSet (FILE *File, FEATURE_SET FeatureSet) |
| void | WriteOldParamDesc (FILE *File, const FEATURE_DESC_STRUCT *FeatureDesc) |
Define Documentation
| #define DefineFeature |
( |
Name, |
|
|
NL, |
|
|
NC, |
|
|
SN, |
|
|
PN |
|
) |
|
| #define DefineParam |
( |
Circular, |
|
|
NonEssential, |
|
|
Min, |
|
|
Max |
|
) |
|
Value:{Circular, NonEssential, Min, Max, \
(Max) - (Min), (((Max) - (Min))/2.0), (((Max) + (Min))/2.0)},
| #define FEAT_NAME_SIZE 80 |
| #define ILLEGAL_FEATURE_PARAM 1000 |
| #define ILLEGAL_NUM_FEATURES 1001 |
| #define StartParamDesc |
( |
Name |
|
) |
const PARAM_DESC Name[] = { |
Typedef Documentation
Function Documentation
---------------------------------------------------------------------------- Include Files and Type Defines ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Public Code ----------------------------------------------------------------------------
| void FreeFeature |
( |
FEATURE |
Feature |
) |
|
| void WriteFeature |
( |
FILE * |
File, |
|
|
FEATURE |
Feature | |
|
) |
| | |
| void WriteFeatureSet |
( |
FILE * |
File, |
|
|
FEATURE_SET |
FeatureSet | |
|
) |
| | |