14 #ifndef TESSERACT_TEXTORD_TEXTLINEPROJECTION_H_
15 #define TESSERACT_TEXTORD_TEXTLINEPROJECTION_H_
48 const FCOORD& rotation, Pix* nontext_map);
58 BLOBNBOX_LIST* small_blobs)
const;
68 const DENORM* denorm,
bool debug)
const;
79 bool horizontal_textline,
80 const DENORM* denorm,
bool debug)
const;
130 int EvaluateBoxInternal(
const TBOX& box,
const DENORM* denorm,
bool debug,
131 int* hgrad1,
int* hgrad2,
132 int* vgrad1,
int* vgrad2)
const;
140 inT16 y,
bool best_is_max)
const;
149 inT16 max_y,
bool best_is_max)
const;
161 int MeanPixelsInLineSegment(
const DENORM* denorm,
int offset,
166 void IncrementRectangle8Bit(
const TBOX& box);
173 void ProjectBlobs(BLOBNBOX_LIST* blobs,
const FCOORD& rotation,
174 const TBOX& image_box, Pix* nontext_map);
182 void TransformToPixCoords(
const DENORM* denorm,
TPOINT* pt)
const;
185 void TruncateToImageBounds(
TPOINT* pt)
const;
188 int ImageXToProjectionX(
int x)
const;
189 int ImageYToProjectionY(
int y)
const;
206 #endif // TESSERACT_TEXTORD_TEXTLINEPROJECTION_H_