813 if (norm_box != NULL) word_box = *norm_box;
814 float word_middle = (word_box.
left() + word_box.
right()) / 2.0f;
815 float input_y_offset = 0.0f;
819 word_middle = word_box.
left();
820 input_y_offset = word_box.
bottom();
821 final_y_offset = 0.0f;
825 input_y_offset = row->
base_line(word_middle) + baseline_shift;
830 float mid_x = (blob_box.
left() + blob_box.
right()) / 2.0f;
832 float blob_scale = scale;
836 scale, scale * 1.5f);
847 blob_scale, 0.0f, final_y_offset, inverse, pix);
849 if (word_denorm != NULL) {
851 input_y_offset, scale, scale,
852 0.0f, final_y_offset);
const int kBlnBaselineOffset
GenericVector< TBLOB * > blobs
void set_inverse(bool value)
float base_line(float xpos) const
void Normalize(const BLOCK *block, const FCOORD *rotation, const DENORM *predecessor, float x_origin, float y_origin, float x_scale, float y_scale, float final_xshift, float final_yshift, bool inverse, Pix *pix)
void SetupNormalization(const BLOCK *block, const FCOORD *rotation, const DENORM *predecessor, float x_origin, float y_origin, float x_scale, float y_scale, float final_xshift, float final_yshift)
T ClipToRange(const T &x, const T &lower_bound, const T &upper_bound)
TBOX bounding_box() const
TBOX bounding_box() const