35 : re_rotation_(1.0f, 0.0f),
36 classify_rotation_(1.0f, 0.0f),
38 pdblk.hand_poly =
nullptr;
40 BLOCK(
const char *name,
63 kerning =
static_cast<int8_t
>(kern);
80 return right_to_left_;
83 right_to_left_ = value;
103 return filename.string ();
110 return cell_over_xheight_;
113 cell_over_xheight_ = ratio;
121 void compute_row_margins();
138 re_rotation_ = rotation;
141 return classify_rotation_;
144 classify_rotation_ = rotation;
156 median_size_.set_x(x);
157 median_size_.set_y(y);
161 return pdblk.render_mask(re_rotation_, mask_box);
166 TBOX restricted_bounding_box(
bool upper_dots,
bool lower_dots)
const;
170 void reflect_polygon_in_y_axis();
172 void rotate(
const FCOORD& rotation);
184 void compress(
const ICOORD vec);
187 void print(FILE* fp,
bool dump);
193 bool proportional =
false;
194 bool right_to_left_ =
false;
198 int16_t font_class = 0;
200 float cell_over_xheight_ = 0.0f;
205 C_BLOB_LIST rej_blobs;
207 FCOORD classify_rotation_;
218 C_BLOB_LIST* output_blob_list);
229 C_BLOB_LIST* new_blobs,
230 C_BLOB_LIST* not_found_blobs);
void ExtractBlobsFromSegmentation(BLOCK_LIST *blocks, C_BLOB_LIST *output_blob_list)
void PrintSegmentationStats(BLOCK_LIST *block_list)
void RefreshWordBlobsFromNewBlobs(BLOCK_LIST *block_list, C_BLOB_LIST *new_blobs, C_BLOB_LIST *not_found_blobs)
#define ELISTIZEH(CLASSNAME)
void set_re_rotation(const FCOORD &rotation)
int16_t kern() const
return kerning
int16_t font() const
return font class
const char * name() const
return filename
FCOORD re_rotation() const
void set_classify_rotation(const FCOORD &rotation)
void set_xheight(int32_t height)
set char size
const ICOORD & median_size() const
ROW_LIST * row_list()
get rows
C_BLOB_LIST * blob_list()
get blobs
int16_t space() const
return spacing
bool prop() const
return proportional
PDBLK pdblk
Page Description Block.
void set_median_size(int x, int y)
void set_cell_over_xheight(float ratio)
FCOORD classify_rotation() const
int32_t x_height() const
return xheight
Pix * render_mask(TBOX *mask_box)
float cell_over_xheight() const
void set_right_to_left(bool value)
bool right_to_left() const
void set_stats(bool prop, int16_t kern, int16_t space, int16_t ch_pitch)
int32_t fixed_pitch() const
return pitch
C_BLOB_LIST * reject_blobs()
void set_skew(const FCOORD &skew)
void set_font_class(int16_t font)
set font class