tesseract v5.3.3.20231005
tesseract::BLOCK_RES Class Reference

#include <pageres.h>

Inheritance diagram for tesseract::BLOCK_RES:
tesseract::ELIST_LINK

Public Member Functions

 BLOCK_RES ()=default
 
 BLOCK_RES (bool merge_similar_words, BLOCK *the_block)
 
 ~BLOCK_RES ()=default
 
- Public Member Functions inherited from tesseract::ELIST_LINK
 ELIST_LINK ()
 
 ELIST_LINK (const ELIST_LINK &)
 
void operator= (const ELIST_LINK &)
 

Public Attributes

BLOCKblock
 
int32_t char_count
 
int32_t rej_count
 
int16_t font_class
 
int16_t row_count
 
float x_height
 
bool font_assigned
 
ROW_RES_LIST row_res_list
 

Detailed Description

Definition at line 118 of file pageres.h.

Constructor & Destructor Documentation

◆ BLOCK_RES() [1/2]

tesseract::BLOCK_RES::BLOCK_RES ( )
default

◆ BLOCK_RES() [2/2]

tesseract::BLOCK_RES::BLOCK_RES ( bool  merge_similar_words,
BLOCK the_block 
)

Definition at line 95 of file pageres.cpp.

95 {
96 ROW_IT row_it(the_block->row_list());
97 ROW_RES_IT row_res_it(&row_res_list);
98
99 char_count = 0;
100 rej_count = 0;
101 font_class = -1; // not assigned
102 x_height = -1.0;
103 font_assigned = false;
104 row_count = 0;
105
106 block = the_block;
107
108 for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) {
109 row_res_it.add_to_end(new ROW_RES(merge_similar_words, row_it.data()));
110 }
111}
ROW_RES_LIST row_res_list
Definition: pageres.h:129
int16_t font_class
Definition: pageres.h:123
int32_t char_count
Definition: pageres.h:121

◆ ~BLOCK_RES()

tesseract::BLOCK_RES::~BLOCK_RES ( )
default

Member Data Documentation

◆ block

BLOCK* tesseract::BLOCK_RES::block

Definition at line 120 of file pageres.h.

◆ char_count

int32_t tesseract::BLOCK_RES::char_count

Definition at line 121 of file pageres.h.

◆ font_assigned

bool tesseract::BLOCK_RES::font_assigned

Definition at line 126 of file pageres.h.

◆ font_class

int16_t tesseract::BLOCK_RES::font_class

Definition at line 123 of file pageres.h.

◆ rej_count

int32_t tesseract::BLOCK_RES::rej_count

Definition at line 122 of file pageres.h.

◆ row_count

int16_t tesseract::BLOCK_RES::row_count

Definition at line 124 of file pageres.h.

◆ row_res_list

ROW_RES_LIST tesseract::BLOCK_RES::row_res_list

Definition at line 129 of file pageres.h.

◆ x_height

float tesseract::BLOCK_RES::x_height

Definition at line 125 of file pageres.h.


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