All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
tesseract::DocQualCallbacks Struct Reference

Public Member Functions

 DocQualCallbacks (WERD_RES *word0)
void CountMatchingBlobs (int index)
void CountAcceptedBlobs (int index)
void AcceptIfGoodQuality (int index)

Public Attributes

inT16 match_count
inT16 accepted_match_count

Detailed Description

Definition at line 35 of file docqual.cpp.

Constructor & Destructor Documentation

tesseract::DocQualCallbacks::DocQualCallbacks ( WERD_RES word0)

Definition at line 36 of file docqual.cpp.

Member Function Documentation

void tesseract::DocQualCallbacks::AcceptIfGoodQuality ( int  index)

Definition at line 49 of file docqual.cpp.

49  {
50  if (word->reject_map[index].accept_if_good_quality())
51  word->reject_map[index].setrej_quality_accept();
52  }
REJMAP reject_map
Definition: pageres.h:271
void tesseract::DocQualCallbacks::CountAcceptedBlobs ( int  index)

Definition at line 43 of file docqual.cpp.

43  {
44  if (word->reject_map[index].accepted())
46  ++match_count;
47  }
REJMAP reject_map
Definition: pageres.h:271
void tesseract::DocQualCallbacks::CountMatchingBlobs ( int  index)

Definition at line 39 of file docqual.cpp.

39  {
40  ++match_count;
41  }

Member Data Documentation

inT16 tesseract::DocQualCallbacks::accepted_match_count

Definition at line 56 of file docqual.cpp.

inT16 tesseract::DocQualCallbacks::match_count

Definition at line 55 of file docqual.cpp.

WERD_RES* tesseract::DocQualCallbacks::word

Definition at line 54 of file docqual.cpp.

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