tesseract
3.03
|
#include "ocrfeatures.h"
Go to the source code of this file.
Defines | |
#define | LENGTH_COMPRESSION (10.0) |
Enumerations | |
enum | NORM_PARAM_NAME { CharNormY, CharNormLength, CharNormRx, CharNormRy } |
Functions | |
FLOAT32 | ActualOutlineLength (FEATURE Feature) |
FEATURE_SET | ExtractCharNormFeatures (TBLOB *Blob, const DENORM &bl_denorm, const DENORM &cn_denorm, const INT_FX_RESULT_STRUCT &fx_info) |
#define LENGTH_COMPRESSION (10.0) |
---------------------------------------------------------------------------- Include Files and Type Defines ----------------------------------------------------------------------------
Definition at line 26 of file normfeat.h.
enum NORM_PARAM_NAME |
Definition at line 28 of file normfeat.h.
FLOAT32 ActualOutlineLength | ( | FEATURE | Feature | ) |
---------------------------------------------------------------------------- Public Function Prototypes ----------------------------------------------------------------------------
---------------------------------------------------------------------------- Include Files and Type Defines ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Public Code ----------------------------------------------------------------------------
Definition at line 32 of file normfeat.cpp.
{ return (Feature->Params[CharNormLength] * LENGTH_COMPRESSION); }
FEATURE_SET ExtractCharNormFeatures | ( | TBLOB * | Blob, |
const DENORM & | bl_denorm, | ||
const DENORM & | cn_denorm, | ||
const INT_FX_RESULT_STRUCT & | fx_info | ||
) |
Definition at line 62 of file normfeat.cpp.
{ FEATURE_SET feature_set = NewFeatureSet(1); FEATURE feature = NewFeature(&CharNormDesc); feature->Params[CharNormY] = MF_SCALE_FACTOR * (fx_info.Ymean - kBlnBaselineOffset); feature->Params[CharNormLength] = MF_SCALE_FACTOR * fx_info.Length / LENGTH_COMPRESSION; feature->Params[CharNormRx] = MF_SCALE_FACTOR * fx_info.Rx; feature->Params[CharNormRy] = MF_SCALE_FACTOR * fx_info.Ry; AddFeature(feature_set, feature); return feature_set; } /* ExtractCharNormFeatures */