Tesseract  3.02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ADAPT_RESULTS Struct Reference

Public Member Functions

void Initialize ()
 

Public Attributes

inT32 BlobLength
 
int NumMatches
 
bool HasNonfragment
 
ScoredClass match [MAX_NUM_CLASSES]
 
ScoredClass best_match
 
CLASS_PRUNER_RESULTS CPResults
 

Detailed Description

Definition at line 91 of file adaptmatch.cpp.

Member Function Documentation

void ADAPT_RESULTS::Initialize ( )
inline

Initializes data members to the default values. Sets the initial rating of each class to be the worst possible rating (1.0).

Definition at line 101 of file adaptmatch.cpp.

101  {
103  NumMatches = 0;
104  HasNonfragment = false;
106  best_match.shape_id = -1;
108  best_match.adapted = false;
109  best_match.config = 0;
110  best_match.fontinfo_id = kBlankFontinfoId;
111  best_match.fontinfo_id2 = kBlankFontinfoId;
112  }
#define WORST_POSSIBLE_RATING
Definition: adaptmatch.cpp:79
#define NO_CLASS
Definition: matchdefs.h:36
ScoredClass best_match
Definition: adaptmatch.cpp:96
bool HasNonfragment
Definition: adaptmatch.cpp:94
CLASS_ID unichar_id
Definition: adaptmatch.cpp:82
inT16 config
Definition: adaptmatch.cpp:86
#define MAX_INT32
Definition: host.h:120
FLOAT32 rating
Definition: adaptmatch.cpp:84
inT16 fontinfo_id2
Definition: adaptmatch.cpp:88
inT32 BlobLength
Definition: adaptmatch.cpp:92
inT16 fontinfo_id
Definition: adaptmatch.cpp:87

Member Data Documentation

ScoredClass ADAPT_RESULTS::best_match

Definition at line 96 of file adaptmatch.cpp.

inT32 ADAPT_RESULTS::BlobLength

Definition at line 92 of file adaptmatch.cpp.

CLASS_PRUNER_RESULTS ADAPT_RESULTS::CPResults

Definition at line 97 of file adaptmatch.cpp.

bool ADAPT_RESULTS::HasNonfragment

Definition at line 94 of file adaptmatch.cpp.

ScoredClass ADAPT_RESULTS::match[MAX_NUM_CLASSES]

Definition at line 95 of file adaptmatch.cpp.

int ADAPT_RESULTS::NumMatches

Definition at line 93 of file adaptmatch.cpp.


The documentation for this struct was generated from the following file: