#include "intfx.h"
#include "allheaders.h"
#include "ccutil.h"
#include "classify.h"
#include "const.h"
#include "helpers.h"
#include "intmatcher.h"
#include "linlsq.h"
#include "ndminx.h"
#include "normalis.h"
#include "statistc.h"
#include "trainingsample.h"
Go to the source code of this file.
|
void | InitIntegerFX () |
|
FCOORD | FeatureDirection (uinT8 theta) |
|
TrainingSample * | tesseract::BlobToTrainingSample (const TBLOB &blob, bool nonlinear_norm, INT_FX_RESULT_STRUCT *fx_info, GenericVector< INT_FEATURE_STRUCT > *bl_features) |
|
uinT8 | tesseract::NormalizeDirection (uinT8 dir, const FCOORD &unnormed_pos, const DENORM &denorm, const DENORM *root_denorm) |
|
bool | ExtractIntFeat (const TBLOB &blob, bool nonlinear_norm, INT_FEATURE_ARRAY baseline_features, INT_FEATURE_ARRAY charnorm_features, INT_FX_RESULT_STRUCT *results) |
|
◆ ExtractIntFeat()
Definition at line 513 of file intfx.cpp.
521 &bl_features, &cn_features, results,
523 if (bl_features.
empty() || cn_features.
empty() ||
528 memcpy(baseline_features, &bl_features[0],
529 bl_features.
size() *
sizeof(bl_features[0]));
530 memcpy(charnorm_features, &cn_features[0],
531 cn_features.
size() *
sizeof(cn_features[0]));
#define MAX_NUM_INT_FEATURES
static void ExtractFeatures(const TBLOB &blob, bool nonlinear_norm, GenericVector< INT_FEATURE_STRUCT > *bl_features, GenericVector< INT_FEATURE_STRUCT > *cn_features, INT_FX_RESULT_STRUCT *results, GenericVector< int > *outline_cn_counts)
◆ FeatureDirection()
Definition at line 70 of file intfx.cpp.
71 return FCOORD(cos_table[theta], sin_table[theta]);
◆ InitIntegerFX()
Public Code
Definition at line 55 of file intfx.cpp.
56 static bool atan_table_init =
false;
58 if (!atan_table_init) {
63 atan_table_init =
true;
tesseract::CCUtilMutex atan_table_mutex
#define INT_CHAR_NORM_RANGE
◆ atan_table_mutex