#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.
◆ FeatureDirection()
FCOORD FeatureDirection |
( |
uint8_t |
theta | ) |
|
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) {
60 cos_table[i] = cos(i * 2 *
PI / INT_CHAR_NORM_RANGE +
PI);
61 sin_table[i] = sin(i * 2 *
PI / INT_CHAR_NORM_RANGE +
PI);
63 atan_table_init =
true;
#define INT_CHAR_NORM_RANGE
tesseract::CCUtilMutex atan_table_mutex
◆ atan_table_mutex