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) 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);
void RefreshWordBlobsFromNewBlobs(BLOCK_LIST *block_list, C_BLOB_LIST *new_blobs, C_BLOB_LIST *not_found_blobs)
inT32 fixed_pitch() const
return pitch
void set_xheight(inT32 height)
set char size
void ExtractBlobsFromSegmentation(BLOCK_LIST *blocks, C_BLOB_LIST *output_blob_list)
const ICOORD & median_size() const
#define ELISTIZEH(CLASSNAME)
ROW_LIST * row_list()
get rows
void set_skew(const FCOORD &skew)
C_BLOB_LIST * reject_blobs()
void set_right_to_left(bool value)
inT16 font() const
return font class
Pix * render_mask(TBOX *mask_box)
FCOORD re_rotation() const
void set_font_class(inT16 font)
set font class
inT16 kern() const
return kerning
Pix * render_mask(const FCOORD &rerotation, TBOX *mask_box)
void set_re_rotation(const FCOORD &rotation)
float cell_over_xheight() const
const char * name() const
return filename
void set_cell_over_xheight(float ratio)
void set_classify_rotation(const FCOORD &rotation)
BOOL8 prop() const
return proportional
bool right_to_left() const
FCOORD classify_rotation() const
void PrintSegmentationStats(BLOCK_LIST *block_list)
inT32 x_height() const
return xheight
void set_stats(BOOL8 prop, inT16 kern, inT16 space, inT16 ch_pitch)
C_BLOB_LIST * blob_list()
get blobs
inT16 space() const
return spacing
void set_median_size(int x, int y)
int decreasing_top_order(const void *row1, const void *row2)