#include "intfx.h"
#include <cmath>
#include <mutex>
#include "allheaders.h"
#include "classify.h"
#include <tesseract/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.
◆ _USE_MATH_DEFINES
#define _USE_MATH_DEFINES |
Include Files and Type Defines
Definition at line 20 of file intfx.cpp.
◆ FeatureDirection()
FCOORD FeatureDirection |
( |
uint8_t |
theta | ) |
|
Definition at line 64 of file intfx.cpp.
66 return FCOORD(cos_table[theta], sin_table[theta]);
◆ InitIntegerFX()
Public Code
Definition at line 48 of file intfx.cpp.
51 static std::mutex atan_table_mutex;
52 static bool atan_table_init =
false;
53 std::lock_guard<std::mutex> guard(atan_table_mutex);
54 if (!atan_table_init) {
59 atan_table_init =
true;