#include "fxdefs.h"
#include "featdefs.h"
#include "mf.h"
#include "outfeat.h"
#include "picofeat.h"
#include "normfeat.h"
Go to the source code of this file.
DefaultInitFXVars DefineFeatureExt | ( | CharNormExt | , | |
ExtractCharNormFeatures | , | |||
DefaultInitFXVars | ||||
) |
DefineFeatureExt | ( | MicroFeatureExt | , | |
ExtractMicros | , | |||
InitMicroFXVars | ||||
) |
void GetLineStatsFromRow | ( | TEXTROW * | Row, | |
LINE_STATS * | LineStats | |||
) |
Copies the relavent fields from the Row struct to the LineStats struct.
Row | Text row to get line statistics from | |
LineStats | Place to put line statistics |
Definition at line 67 of file fxdefs.cpp.
References LINE_STATS::AscRise, textrowstruct::ascrise, LINE_STATS::Baseline, textrowstruct::baseline, LINE_STATS::DescDrop, textrowstruct::descdrop, textrowstruct::lineheight, LINE_STATS::TextRow, textrowstruct::xheight, LINE_STATS::xheight, and LINE_STATS::XHeightLine.
Referenced by AdaptiveClassifier(), AdaptToWord(), compare_tess_blobs(), and LearnBlob().
00067 { 00068 LineStats->Baseline = &(Row->baseline); 00069 LineStats->XHeightLine = &(Row->xheight); 00070 LineStats->xheight = Row->lineheight; 00071 LineStats->AscRise = Row->ascrise; 00072 LineStats->DescDrop = Row->descdrop; 00073 LineStats->TextRow = Row; /* kludge - only needed by fx for */ 00074 /* fast matcher - remove later */ 00075 00076 } /* GetLineStatsFromRow */
void SetupExtractors | ( | ) |
New for v1.03.
Definition at line 53 of file fxdefs.cpp.
References ExtractorDefs, ExtractorOf, and NUM_FEATURE_TYPES.
Referenced by InitFlexFXVars().
00053 { 00054 for (int i = 0; i < NUM_FEATURE_TYPES; ++i) 00055 ExtractorOf(i) = ExtractorDefs[i]; 00056 }
int ExtractMode |
flag to control learn mode vs classify mode
Definition at line 30 of file fxdefs.cpp.
DefaultInitFXVars DefaultInitFXVars FEATURE_EXT_STRUCT* ExtractorDefs[NUM_FEATURE_TYPES] |
Initial value:
{ &MicroFeatureExt, &PicoFeatExt, &OutlineFeatExt, &CharNormExt }
Definition at line 38 of file fxdefs.cpp.
Referenced by SetupExtractors().
DefaultInitFXVars NULL |
Definition at line 36 of file fxdefs.cpp.
Definition at line 34 of file fxdefs.cpp.