|
tesseract
4.00.00dev
|
#include "normmatch.h"#include <stdio.h>#include <math.h>#include "classify.h"#include "clusttool.h"#include "const.h"#include "efio.h"#include "emalloc.h"#include "globals.h"#include "helpers.h"#include "normfeat.h"#include "scanutils.h"#include "unicharset.h"#include "params.h"Go to the source code of this file.
Classes | |
| struct | NORM_PROTOS |
Namespaces | |
| tesseract | |
Functions | |
| NORM_PROTOS * | ReadNormProtos (FILE *File) |
NormEvidenceOf | |
Return the new type of evidence number corresponding to this normalization adjustment. The equation that represents the transform is: 1 / (1 + (NormAdj / midpoint) ^ curl) | |
| double | NormEvidenceOf (register double NormAdj) |
| void | PrintNormMatch (FILE *File, int NumParams, PROTOTYPE *Proto, FEATURE Feature) |
Variables | |
| double | classify_norm_adj_midpoint = 32.0 |
| double | classify_norm_adj_curl = 2.0 |
| const double | kWidthErrorWeighting = 0.125 |
| double NormEvidenceOf | ( | register double | NormAdj | ) |
Definition at line 184 of file normmatch.cpp.
This routine dumps out detailed normalization match info.
| File | open text file to dump match debug info to |
| NumParams | # of parameters in proto and feature |
| Proto[] | array of prototype parameters |
| Feature[] | array of feature parameters Globals: none |
Definition at line 209 of file normmatch.cpp.
| NORM_PROTOS* ReadNormProtos | ( | FILE * | File | ) |
| double classify_norm_adj_curl = 2.0 |
"Norm adjust curl ..."
Definition at line 64 of file normmatch.cpp.
| double classify_norm_adj_midpoint = 32.0 |
control knobs used to control the normalization adjustment process "Norm adjust midpoint ..."
Definition at line 63 of file normmatch.cpp.
| const double kWidthErrorWeighting = 0.125 |
Weight of width variance against height and vertical position.
Definition at line 66 of file normmatch.cpp.