#include "blobs.h"
#include "intproto.h"
#include "normalis.h"
#include <math.h>
Go to the source code of this file.
◆ 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 Function Prototypes
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
◆ kStandardFeatureLength
const double kStandardFeatureLength = 64.0 / 5 |