#include "blobs.h"
#include "intproto.h"
#include "normalis.h"
#include <cmath>
Go to the source code of this file.
| FCOORD FeatureDirection |
( |
uint8_t |
theta | ) |
|
Definition at line 66 of file intfx.cpp.
67 return FCOORD(cos_table[theta], sin_table[theta]);
Public Function Prototypes
Public Code
Definition at line 49 of file intfx.cpp.
52 static bool atan_table_init =
false;
53 atan_table_mutex.
Lock();
54 if (!atan_table_init) {
56 cos_table[i] = cos(i * 2 * M_PI / INT_CHAR_NORM_RANGE + M_PI);
57 sin_table[i] = sin(i * 2 * M_PI / INT_CHAR_NORM_RANGE + M_PI);
59 atan_table_init =
true;
#define INT_CHAR_NORM_RANGE
| const double kStandardFeatureLength = 64.0 / 5 |