tesseract 3.04.01

ADAPT_RESULTS Struct Reference

List of all members.

Public Member Functions

void Initialize ()
void ComputeBest ()

Public Attributes

inT32 BlobLength
bool HasNonfragment
UNICHAR_ID best_unichar_id
int best_match_index
FLOAT32 best_rating
GenericVector< UnicharRatingmatch
GenericVector< CP_RESULT_STRUCTCPResults

Detailed Description

Definition at line 82 of file adaptmatch.cpp.


Member Function Documentation

void ADAPT_RESULTS::ComputeBest ( ) [inline]

Definition at line 99 of file adaptmatch.cpp.

                     {
    best_unichar_id = INVALID_UNICHAR_ID;
    best_match_index = -1;
    best_rating = WORST_POSSIBLE_RATING;
    for (int i = 0; i < match.size(); ++i) {
      if (match[i].rating > best_rating) {
        best_rating = match[i].rating;
        best_unichar_id = match[i].unichar_id;
        best_match_index = i;
      }
    }
  }
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 93 of file adaptmatch.cpp.


Member Data Documentation

Definition at line 86 of file adaptmatch.cpp.

Definition at line 87 of file adaptmatch.cpp.

Definition at line 83 of file adaptmatch.cpp.

Definition at line 84 of file adaptmatch.cpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines