#include "blobs.h"
#include "intproto.h"
#include "normalis.h"
#include <math.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 Function Prototypes
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
◆ kStandardFeatureLength
const double kStandardFeatureLength = 64.0 / 5 |