tesseract  5.0.0-alpha-619-ge9db
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 112 of file wordrec.h.

Constructor & Destructor Documentation

◆ SegSearchPending()

tesseract::SegSearchPending::SegSearchPending ( )
inline

Definition at line 114 of file wordrec.h.

115  : classified_row_(-1),
116  revisit_whole_column_(false),
117  column_classified_(false) {}

Member Function Documentation

◆ Clear()

void tesseract::SegSearchPending::Clear ( )
inline

Definition at line 138 of file wordrec.h.

138  {
139  classified_row_ = -1;
140  revisit_whole_column_ = false;
141  column_classified_ = false;
142  }

◆ IsRowJustClassified()

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

Definition at line 150 of file wordrec.h.

150  {
151  return row == classified_row_ || column_classified_;
152  }

◆ RevisitWholeColumn()

void tesseract::SegSearchPending::RevisitWholeColumn ( )
inline

Definition at line 133 of file wordrec.h.

133  {
134  revisit_whole_column_ = true;
135  }

◆ SetBlobClassified()

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

Definition at line 127 of file wordrec.h.

127  {
128  classified_row_ = row;
129  }

◆ SetColumnClassified()

void tesseract::SegSearchPending::SetColumnClassified ( )
inline

Definition at line 121 of file wordrec.h.

121  {
122  column_classified_ = true;
123  }

◆ SingleRow()

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

Definition at line 154 of file wordrec.h.

154  {
155  return revisit_whole_column_ || column_classified_ ? -1 : classified_row_;
156  }

◆ WorkToDo()

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

Definition at line 146 of file wordrec.h.

146  {
147  return revisit_whole_column_ || column_classified_ || classified_row_ >= 0;
148  }

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