tesseract
5.0.0-alpha-619-ge9db
|
Go to the source code of this file.
Macros | |
#define | _USE_MATH_DEFINES |
#define | TOKENSIZE 80 |
max size of tokens read from an input file More... | |
#define | QUOTED_TOKENSIZE "79" |
#define | MAXSAMPLESIZE 65535 |
max num of dimensions in feature space More... | |
Functions | |
uint16_t | ReadSampleSize (TFile *fp) |
PARAM_DESC * | ReadParamDesc (TFile *fp, uint16_t N) |
PROTOTYPE * | ReadPrototype (TFile *fp, uint16_t N) |
void | WriteParamDesc (FILE *File, uint16_t N, const PARAM_DESC ParamDesc[]) |
void | WritePrototype (FILE *File, uint16_t N, PROTOTYPE *Proto) |
#define _USE_MATH_DEFINES |
Definition at line 18 of file clusttool.cpp.
#define MAXSAMPLESIZE 65535 |
max num of dimensions in feature space
Definition at line 31 of file clusttool.cpp.
#define QUOTED_TOKENSIZE "79" |
Definition at line 30 of file clusttool.cpp.
#define TOKENSIZE 80 |
max size of tokens read from an input file
Definition at line 29 of file clusttool.cpp.
PARAM_DESC* ReadParamDesc | ( | TFile * | fp, |
uint16_t | N | ||
) |
This routine reads textual descriptions of sets of parameters which describe the characteristics of feature dimensions.
fp | open text file to read N parameter descriptions from |
N | number of parameter descriptions to read |
Definition at line 140 of file clusttool.cpp.
This routine reads a textual description of a prototype from the specified file.
fp | open text file to read prototype from |
N | number of dimensions used in prototype |
Definition at line 176 of file clusttool.cpp.
uint16_t ReadSampleSize | ( | TFile * | fp | ) |
This routine reads a single integer from the specified file and checks to ensure that it is between 0 and MAXSAMPLESIZE.
fp | open text file to read sample size from |
Definition at line 120 of file clusttool.cpp.
void WriteParamDesc | ( | FILE * | File, |
uint16_t | N, | ||
const PARAM_DESC | ParamDesc[] | ||
) |
This routine writes an array of dimension descriptors to the specified text file.
File | open text file to write param descriptors to |
N | number of param descriptors to write |
ParamDesc | array of param descriptors to write |
Definition at line 255 of file clusttool.cpp.
void WritePrototype | ( | FILE * | File, |
uint16_t | N, | ||
PROTOTYPE * | Proto | ||
) |
This routine writes a textual description of a prototype to the specified text file.
File | open text file to write prototype to |
N | number of dimensions in feature space |
Proto | prototype to write out |
Definition at line 280 of file clusttool.cpp.