35 : re_rotation_(1.0f, 0.0f),
36 classify_rotation_(1.0f, 0.0f),
38 right_to_left_ =
false;
39 pdblk.hand_poly =
nullptr;
41 BLOCK(
const char *name,
64 kerning =
static_cast<int8_t
>(kern);
81 return right_to_left_;
84 right_to_left_ = value;
104 return filename.string ();
111 return cell_over_xheight_;
114 cell_over_xheight_ = ratio;
122 void compute_row_margins();
139 re_rotation_ = rotation;
142 return classify_rotation_;
145 classify_rotation_ = rotation;
157 median_size_.set_x(x);
158 median_size_.set_y(y);
162 return pdblk.render_mask(re_rotation_, mask_box);
167 TBOX restricted_bounding_box(
bool upper_dots,
bool lower_dots)
const;
171 void reflect_polygon_in_y_axis();
173 void rotate(
const FCOORD& rotation);
185 void compress(
const ICOORD vec);
188 void print(FILE* fp,
bool dump);
201 float cell_over_xheight_;
206 C_BLOB_LIST rej_blobs;
208 FCOORD classify_rotation_;
219 C_BLOB_LIST* output_blob_list);
230 C_BLOB_LIST* new_blobs,
231 C_BLOB_LIST* not_found_blobs);
void RefreshWordBlobsFromNewBlobs(BLOCK_LIST *block_list, C_BLOB_LIST *new_blobs, C_BLOB_LIST *not_found_blobs)
FCOORD re_rotation() const
FCOORD classify_rotation() const
bool right_to_left() const
void set_right_to_left(bool value)
bool prop() const
return proportional
void ExtractBlobsFromSegmentation(BLOCK_LIST *blocks, C_BLOB_LIST *output_blob_list)
void set_skew(const FCOORD &skew)
int16_t space() const
return spacing
Pix * render_mask(TBOX *mask_box)
void set_stats(bool prop, int16_t kern, int16_t space, int16_t ch_pitch)
void set_median_size(int x, int y)
void set_cell_over_xheight(float ratio)
C_BLOB_LIST * reject_blobs()
int32_t fixed_pitch() const
return pitch
int32_t x_height() const
return xheight
const char * name() const
return filename
void set_classify_rotation(const FCOORD &rotation)
PDBLK pdblk
Page Description Block.
int16_t font() const
return font class
#define ELISTIZEH(CLASSNAME)
void set_re_rotation(const FCOORD &rotation)
void set_font_class(int16_t font)
set font class
float cell_over_xheight() const
void PrintSegmentationStats(BLOCK_LIST *block_list)
ROW_LIST * row_list()
get rows
C_BLOB_LIST * blob_list()
get blobs
void set_xheight(int32_t height)
set char size
int16_t kern() const
return kerning
const ICOORD & median_size() const