38 : re_rotation_(1.0
f, 0.0
f),
39 classify_rotation_(1.0
f, 0.0
f),
41 right_to_left_ =
false;
44 BLOCK(
const char *name,
68 kerning = (
inT8) kern;
85 return right_to_left_;
88 right_to_left_ = value;
115 return cell_over_xheight_;
118 cell_over_xheight_ = ratio;
126 void compute_row_margins();
143 re_rotation_ = rotation;
146 return classify_rotation_;
149 classify_rotation_ = rotation;
161 median_size_.set_x(x);
162 median_size_.set_y(y);
171 void reflect_polygon_in_y_axis();
173 void rotate(
const FCOORD& rotation);
185 void compress(
const ICOORD vec);
188 void print(FILE *fp,
BOOL8 dump);
200 float cell_over_xheight_;
205 C_BLOB_LIST rej_blobs;
207 FCOORD classify_rotation_;
220 C_BLOB_LIST* output_blob_list);
231 C_BLOB_LIST* new_blobs,
232 C_BLOB_LIST* not_found_blobs);
ROW_LIST * row_list()
get rows
inT32 x_height() const
return xheight
void ExtractBlobsFromSegmentation(BLOCK_LIST *blocks, C_BLOB_LIST *output_blob_list)
const ICOORD & median_size() const
void set_skew(const FCOORD &skew)
void set_classify_rotation(const FCOORD &rotation)
int decreasing_top_order(const void *row1, const void *row2)
C_BLOB_LIST * reject_blobs()
void set_right_to_left(bool value)
void RefreshWordBlobsFromNewBlobs(BLOCK_LIST *block_list, C_BLOB_LIST *new_blobs, C_BLOB_LIST *not_found_blobs)
void set_median_size(int x, int y)
void set_xheight(inT32 height)
set char size
C_BLOB_LIST * blob_list()
get blobs
const char * name() const
return filename
inT16 font() const
return font class
inT16 kern() const
return kerning
void set_stats(BOOL8 prop, inT16 kern, inT16 space, inT16 ch_pitch)
void set_re_rotation(const FCOORD &rotation)
bool right_to_left() const
FCOORD classify_rotation() const
inT16 space() const
return spacing
void set_font_class(inT16 font)
set font class
inT32 fixed_pitch() const
return pitch
float cell_over_xheight() const
Pix * render_mask(const FCOORD &rerotation)
FCOORD re_rotation() const
void PrintSegmentationStats(BLOCK_LIST *block_list)
BOOL8 prop() const
return proportional
void set_cell_over_xheight(float ratio)
#define ELISTIZEH(CLASSNAME)