37 : re_rotation_(1.0f, 0.0f),
38 classify_rotation_(1.0f, 0.0f),
40 right_to_left_ =
false;
43 BLOCK(
const char *name,
67 kerning = (int8_t) kern;
84 return right_to_left_;
87 right_to_left_ = value;
114 return cell_over_xheight_;
117 cell_over_xheight_ = ratio;
125 void compute_row_margins();
142 re_rotation_ = rotation;
145 return classify_rotation_;
148 classify_rotation_ = rotation;
160 median_size_.set_x(x);
161 median_size_.set_y(y);
170 TBOX restricted_bounding_box(
bool upper_dots,
bool lower_dots)
const;
174 void reflect_polygon_in_y_axis();
176 void rotate(
const FCOORD& rotation);
188 void compress(
const ICOORD vec);
191 void print(FILE *fp,
BOOL8 dump);
203 float cell_over_xheight_;
208 C_BLOB_LIST rej_blobs;
210 FCOORD classify_rotation_;
223 C_BLOB_LIST* output_blob_list);
234 C_BLOB_LIST* new_blobs,
235 C_BLOB_LIST* not_found_blobs);
bool right_to_left() const
int32_t x_height() const
return xheight
C_BLOB_LIST * blob_list()
get blobs
const ICOORD & median_size() const
void set_stats(BOOL8 prop, int16_t kern, int16_t space, int16_t ch_pitch)
void set_median_size(int x, int y)
void set_re_rotation(const FCOORD &rotation)
void set_skew(const FCOORD &skew)
int16_t kern() const
return kerning
FCOORD classify_rotation() const
void set_cell_over_xheight(float ratio)
int32_t fixed_pitch() const
return pitch
void PrintSegmentationStats(BLOCK_LIST *block_list)
int16_t font() const
return font class
void set_right_to_left(bool value)
C_BLOB_LIST * reject_blobs()
int decreasing_top_order(const void *row1, const void *row2)
ROW_LIST * row_list()
get rows
void set_xheight(int32_t height)
set char size
void RefreshWordBlobsFromNewBlobs(BLOCK_LIST *block_list, C_BLOB_LIST *new_blobs, C_BLOB_LIST *not_found_blobs)
BOOL8 prop() const
return proportional
#define ELISTIZEH(CLASSNAME)
int16_t space() const
return spacing
void ExtractBlobsFromSegmentation(BLOCK_LIST *blocks, C_BLOB_LIST *output_blob_list)
FCOORD re_rotation() const
void set_font_class(int16_t font)
set font class
float cell_over_xheight() const
const char * name() const
return filename
Pix * render_mask(TBOX *mask_box)
Pix * render_mask(const FCOORD &rerotation, TBOX *mask_box)
void set_classify_rotation(const FCOORD &rotation)