tesseract  5.0.0-alpha-619-ge9db
docqual.cpp File Reference
#include <cctype>
#include "docqual.h"
#include "reject.h"
#include "tessvars.h"
#include "tesseractclass.h"

Go to the source code of this file.

Namespaces

 tesseract
 

Functions

void reject_whole_page (PAGE_RES_IT &page_res_it)
 

Function Documentation

◆ reject_whole_page()

void reject_whole_page ( PAGE_RES_IT page_res_it)

Definition at line 385 of file docqual.cpp.

387  {
388  page_res_it.restart_page ();
389  while (page_res_it.word () != nullptr) {
390  page_res_it.word ()->reject_map.rej_word_doc_rej ();
391  page_res_it.forward ();
392  }
393  //whole page is rejected
PAGE_RES_IT::forward
WERD_RES * forward()
Definition: pageres.h:728
PAGE_RES_IT::restart_page
WERD_RES * restart_page()
Definition: pageres.h:695
WERD_RES::reject_map
REJMAP reject_map
Definition: pageres.h:288
PAGE_RES_IT::word
WERD_RES * word() const
Definition: pageres.h:748
REJMAP::rej_word_doc_rej
void rej_word_doc_rej()
Definition: rejctmap.cpp:423