|
tesseract 3.04.01
|
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< UnicharRating > | match |
| GenericVector< CP_RESULT_STRUCT > | CPResults |
Definition at line 82 of file adaptmatch.cpp.
| 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.
{
BlobLength = MAX_INT32;
HasNonfragment = false;
ComputeBest();
}
Definition at line 86 of file adaptmatch.cpp.
Definition at line 87 of file adaptmatch.cpp.
Definition at line 85 of file adaptmatch.cpp.
Definition at line 83 of file adaptmatch.cpp.
Definition at line 89 of file adaptmatch.cpp.
Definition at line 84 of file adaptmatch.cpp.
Definition at line 88 of file adaptmatch.cpp.