tesseract
4.0.0-1-g2a2b
|
#include "normmatch.h"
#include <cstdio>
#include <cmath>
#include "classify.h"
#include "clusttool.h"
#include "emalloc.h"
#include "globals.h"
#include "helpers.h"
#include "normfeat.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 (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 | ( | double | NormAdj | ) |
Definition at line 179 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 202 of file normmatch.cpp.
NORM_PROTOS* ReadNormProtos | ( | FILE * | File | ) |
double classify_norm_adj_curl = 2.0 |
"Norm adjust curl ..."
Definition at line 61 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 60 of file normmatch.cpp.
const double kWidthErrorWeighting = 0.125 |
Weight of width variance against height and vertical position.
Definition at line 63 of file normmatch.cpp.