tesseract::IntFeatureSpace Class Reference
#include <intfeaturespace.h>
List of all members.
Public Member Functions |
| IntFeatureSpace () |
void | Init (uinT8 xbuckets, uinT8 ybuckets, uinT8 thetabuckets) |
bool | Serialize (FILE *fp) const |
bool | DeSerialize (bool swap, FILE *fp) |
int | Size () const |
INT_FEATURE_STRUCT | PositionFromIndex (int index) const |
int | Index (const INT_FEATURE_STRUCT &f) const |
void | IndexFeatures (const INT_FEATURE_STRUCT *features, int num_features, GenericVector< int > *mapped_features) const |
void | IndexAndSortFeatures (const INT_FEATURE_STRUCT *features, int num_features, GenericVector< int > *sorted_features) const |
int | XYToFeatureIndex (int x, int y) const |
Protected Member Functions |
int | XBucket (int x) const |
int | YBucket (int y) const |
int | ThetaBucket (int theta) const |
INT_FEATURE_STRUCT | PositionFromBuckets (int x, int y, int theta) const |
Protected Attributes |
uinT8 | x_buckets_ |
uinT8 | y_buckets_ |
uinT8 | theta_buckets_ |
Constructor & Destructor Documentation
tesseract::IntFeatureSpace::IntFeatureSpace |
( |
|
) |
|
Member Function Documentation
bool tesseract::IntFeatureSpace::DeSerialize |
( |
bool |
swap, |
|
|
FILE * |
fp | |
|
) |
| | |
void tesseract::IntFeatureSpace::IndexAndSortFeatures |
( |
const INT_FEATURE_STRUCT * |
features, |
|
|
int |
num_features, |
|
|
GenericVector< int > * |
sorted_features | |
|
) |
| | const |
void tesseract::IntFeatureSpace::Init |
( |
uinT8 |
xbuckets, |
|
|
uinT8 |
ybuckets, |
|
|
uinT8 |
thetabuckets | |
|
) |
| | |
INT_FEATURE_STRUCT tesseract::IntFeatureSpace::PositionFromBuckets |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
theta | |
|
) |
| | const [protected] |
bool tesseract::IntFeatureSpace::Serialize |
( |
FILE * |
fp |
) |
const |
int tesseract::IntFeatureSpace::Size |
( |
|
) |
const [inline] |
int tesseract::IntFeatureSpace::ThetaBucket |
( |
int |
theta |
) |
const [inline, protected] |
int tesseract::IntFeatureSpace::XBucket |
( |
int |
x |
) |
const [inline, protected] |
int tesseract::IntFeatureSpace::XYToFeatureIndex |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | const |
int tesseract::IntFeatureSpace::YBucket |
( |
int |
y |
) |
const [inline, protected] |
Member Data Documentation
The documentation for this class was generated from the following files: