tesseract  4.00.00dev
tesseract::SegSearchPending Class Reference

#include <wordrec.h>

Public Member Functions

 SegSearchPending ()
 
void SetColumnClassified ()
 
void SetBlobClassified (int row)
 
void RevisitWholeColumn ()
 
void Clear ()
 
bool WorkToDo () const
 
bool IsRowJustClassified (int row) const
 
int SingleRow () const
 

Detailed Description

Definition at line 43 of file wordrec.h.

Constructor & Destructor Documentation

◆ SegSearchPending()

tesseract::SegSearchPending::SegSearchPending ( )
inline

Definition at line 45 of file wordrec.h.

46  : classified_row_(-1),
47  revisit_whole_column_(false),
48  column_classified_(false) {}

Member Function Documentation

◆ Clear()

void tesseract::SegSearchPending::Clear ( )
inline

Definition at line 69 of file wordrec.h.

69  {
70  classified_row_ = -1;
71  revisit_whole_column_ = false;
72  column_classified_ = false;
73  }

◆ IsRowJustClassified()

bool tesseract::SegSearchPending::IsRowJustClassified ( int  row) const
inline

Definition at line 81 of file wordrec.h.

81  {
82  return row == classified_row_ || column_classified_;
83  }

◆ RevisitWholeColumn()

void tesseract::SegSearchPending::RevisitWholeColumn ( )
inline

Definition at line 64 of file wordrec.h.

64  {
65  revisit_whole_column_ = true;
66  }

◆ SetBlobClassified()

void tesseract::SegSearchPending::SetBlobClassified ( int  row)
inline

Definition at line 58 of file wordrec.h.

58  {
59  classified_row_ = row;
60  }

◆ SetColumnClassified()

void tesseract::SegSearchPending::SetColumnClassified ( )
inline

Definition at line 52 of file wordrec.h.

52  {
53  column_classified_ = true;
54  }

◆ SingleRow()

int tesseract::SegSearchPending::SingleRow ( ) const
inline

Definition at line 85 of file wordrec.h.

85  {
86  return revisit_whole_column_ || column_classified_ ? -1 : classified_row_;
87  }

◆ WorkToDo()

bool tesseract::SegSearchPending::WorkToDo ( ) const
inline

Definition at line 77 of file wordrec.h.

77  {
78  return revisit_whole_column_ || column_classified_ || classified_row_ >= 0;
79  }

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