36 : re_rotation_(1.0f, 0.0f),
37 classify_rotation_(1.0f, 0.0f),
39 right_to_left_ =
false;
40 pdblk.hand_poly =
nullptr;
42 BLOCK(
const char *name,
65 kerning = (int8_t) kern;
82 return right_to_left_;
85 right_to_left_ = value;
105 return filename.string ();
112 return cell_over_xheight_;
115 cell_over_xheight_ = ratio;
123 void compute_row_margins();
140 re_rotation_ = rotation;
143 return classify_rotation_;
146 classify_rotation_ = rotation;
158 median_size_.set_x(x);
159 median_size_.set_y(y);
163 return pdblk.render_mask(re_rotation_, mask_box);
168 TBOX restricted_bounding_box(
bool upper_dots,
bool lower_dots)
const;
172 void reflect_polygon_in_y_axis();
174 void rotate(
const FCOORD& rotation);
186 void compress(
const ICOORD vec);
189 void print(FILE* fp,
bool dump);
202 float cell_over_xheight_;
207 C_BLOB_LIST rej_blobs;
209 FCOORD classify_rotation_;
220 C_BLOB_LIST* output_blob_list);
231 C_BLOB_LIST* new_blobs,
232 C_BLOB_LIST* not_found_blobs);
int16_t space() const
return spacing
bool right_to_left() const
#define ELISTIZEH(CLASSNAME)
FCOORD re_rotation() const
void PrintSegmentationStats(BLOCK_LIST *block_list)
const ICOORD & median_size() const
C_BLOB_LIST * reject_blobs()
int16_t font() const
return font class
ROW_LIST * row_list()
get rows
C_BLOB_LIST * blob_list()
get blobs
void set_re_rotation(const FCOORD &rotation)
void set_stats(BOOL8 prop, int16_t kern, int16_t space, int16_t ch_pitch)
int32_t fixed_pitch() const
return pitch
Pix * render_mask(TBOX *mask_box)
void set_classify_rotation(const FCOORD &rotation)
void ExtractBlobsFromSegmentation(BLOCK_LIST *blocks, C_BLOB_LIST *output_blob_list)
FCOORD classify_rotation() const
int16_t kern() const
return kerning
void set_median_size(int x, int y)
float cell_over_xheight() const
void RefreshWordBlobsFromNewBlobs(BLOCK_LIST *block_list, C_BLOB_LIST *new_blobs, C_BLOB_LIST *not_found_blobs)
void set_cell_over_xheight(float ratio)
void set_skew(const FCOORD &skew)
BOOL8 prop() const
return proportional
void set_xheight(int32_t height)
set char size
void set_right_to_left(bool value)
void set_font_class(int16_t font)
set font class
const char * name() const
return filename
int32_t x_height() const
return xheight