Tesseract  3.02
tesseract::DocQualCallbacks Struct Reference

List of all members.

Public Member Functions

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

Public Attributes

WERD_RESword
inT16 match_count
inT16 accepted_match_count

Detailed Description

Definition at line 38 of file docqual.cpp.


Constructor & Destructor Documentation

tesseract::DocQualCallbacks::DocQualCallbacks ( WERD_RES word0) [inline, explicit]

Definition at line 39 of file docqual.cpp.

    : word(word0), match_count(0), accepted_match_count(0) {}

Member Function Documentation

void tesseract::DocQualCallbacks::AcceptIfGoodQuality ( int  index) [inline]

Definition at line 52 of file docqual.cpp.

                                      {
    if (word->reject_map[index].accept_if_good_quality())
      word->reject_map[index].setrej_quality_accept();
  }
void tesseract::DocQualCallbacks::CountAcceptedBlobs ( int  index) [inline]

Definition at line 46 of file docqual.cpp.

                                     {
    if (word->reject_map[index].accepted())
      ++accepted_match_count;
    ++match_count;
  }
void tesseract::DocQualCallbacks::CountMatchingBlobs ( int  index) [inline]

Definition at line 42 of file docqual.cpp.

                                     {
    ++match_count;
  }

Member Data Documentation


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