tesseract  4.0.0-1-g2a2b
intfx.cpp File Reference
#include "intfx.h"
#include "allheaders.h"
#include "ccutil.h"
#include "classify.h"
#include "helpers.h"
#include "intmatcher.h"
#include "linlsq.h"
#include "normalis.h"
#include "statistc.h"
#include "trainingsample.h"

Go to the source code of this file.

Namespaces

 tesseract
 

Functions

void InitIntegerFX ()
 
FCOORD FeatureDirection (uint8_t theta)
 
TrainingSampletesseract::BlobToTrainingSample (const TBLOB &blob, bool nonlinear_norm, INT_FX_RESULT_STRUCT *fx_info, GenericVector< INT_FEATURE_STRUCT > *bl_features)
 

Variables

tesseract::CCUtilMutex atan_table_mutex
 

Function Documentation

◆ FeatureDirection()

FCOORD FeatureDirection ( uint8_t  theta)

Definition at line 68 of file intfx.cpp.

68  {
69  return FCOORD(cos_table[theta], sin_table[theta]);
70 }
Definition: points.h:189

◆ InitIntegerFX()

void InitIntegerFX ( )

Public Code

Definition at line 53 of file intfx.cpp.

53  {
54  static bool atan_table_init = false;
56  if (!atan_table_init) {
57  for (int i = 0; i < INT_CHAR_NORM_RANGE; ++i) {
58  cos_table[i] = cos(i * 2 * M_PI / INT_CHAR_NORM_RANGE + M_PI);
59  sin_table[i] = sin(i * 2 * M_PI / INT_CHAR_NORM_RANGE + M_PI);
60  }
61  atan_table_init = true;
62  }
64 }
tesseract::CCUtilMutex atan_table_mutex
Definition: intfx.cpp:46
#define INT_CHAR_NORM_RANGE
Definition: intproto.h:130

Variable Documentation

◆ atan_table_mutex

tesseract::CCUtilMutex atan_table_mutex

Definition at line 46 of file intfx.cpp.