tesseract  4.0.0-1-g2a2b
BLOCK_RES Class Reference

#include <pageres.h>

Inheritance diagram for BLOCK_RES:
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 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
 
bool bold
 
bool italic
 
ROW_RES_LIST row_res_list
 

Detailed Description

Definition at line 115 of file pageres.h.

Constructor & Destructor Documentation

◆ BLOCK_RES() [1/2]

BLOCK_RES::BLOCK_RES ( )
default

◆ BLOCK_RES() [2/2]

BLOCK_RES::BLOCK_RES ( bool  merge_similar_words,
BLOCK the_block 
)

Definition at line 98 of file pageres.cpp.

98  {
99  ROW_IT row_it (the_block->row_list ());
100  ROW_RES_IT row_res_it(&row_res_list);
101 
102  char_count = 0;
103  rej_count = 0;
104  font_class = -1; //not assigned
105  x_height = -1.0;
106  font_assigned = false;
107  bold = false;
108  italic = false;
109  row_count = 0;
110 
111  block = the_block;
112 
113  for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) {
114  row_res_it.add_to_end(new ROW_RES(merge_similar_words, row_it.data()));
115  }
116 }
float x_height
Definition: pageres.h:122
bool font_assigned
Definition: pageres.h:123
int32_t char_count
Definition: pageres.h:118
ROW_LIST * row_list()
get rows
Definition: ocrblock.h:118
ROW_RES_LIST row_res_list
Definition: pageres.h:128
bool bold
Definition: pageres.h:125
BLOCK * block
Definition: pageres.h:117
int32_t rej_count
Definition: pageres.h:119
bool italic
Definition: pageres.h:126
int16_t font_class
Definition: pageres.h:120
int16_t row_count
Definition: pageres.h:121

◆ ~BLOCK_RES()

BLOCK_RES::~BLOCK_RES ( )
default

Member Data Documentation

◆ block

BLOCK* BLOCK_RES::block

Definition at line 117 of file pageres.h.

◆ bold

bool BLOCK_RES::bold

Definition at line 125 of file pageres.h.

◆ char_count

int32_t BLOCK_RES::char_count

Definition at line 118 of file pageres.h.

◆ font_assigned

bool BLOCK_RES::font_assigned

Definition at line 123 of file pageres.h.

◆ font_class

int16_t BLOCK_RES::font_class

Definition at line 120 of file pageres.h.

◆ italic

bool BLOCK_RES::italic

Definition at line 126 of file pageres.h.

◆ rej_count

int32_t BLOCK_RES::rej_count

Definition at line 119 of file pageres.h.

◆ row_count

int16_t BLOCK_RES::row_count

Definition at line 121 of file pageres.h.

◆ row_res_list

ROW_RES_LIST BLOCK_RES::row_res_list

Definition at line 128 of file pageres.h.

◆ x_height

float BLOCK_RES::x_height

Definition at line 122 of file pageres.h.


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