tesseract
5.0.0-alpha-619-ge9db
|
Go to the source code of this file.
Functions | |
uint16_t | ReadSampleSize (tesseract::TFile *fp) |
PARAM_DESC * | ReadParamDesc (tesseract::TFile *fp, uint16_t N) |
PROTOTYPE * | ReadPrototype (tesseract::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) |
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.