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;
131 int* hgrad1,
int* hgrad2,
132 int* vgrad1,
int* vgrad2)
const;
140 int16_t y,
bool best_is_max)
const;
149 int16_t max_y,
bool best_is_max)
const;
174 const TBOX& image_box, Pix* nontext_map);
206 #endif // TESSERACT_TEXTORD_TEXTLINEPROJECTION_H_ int DistanceOfBoxFromPartition(const TBOX &box, const ColPartition &part, const DENORM *denorm, bool debug) const
Definition: textlineprojection.cpp:157
void MoveNonTextlineBlobs(BLOBNBOX_LIST *blobs, BLOBNBOX_LIST *small_blobs) const
Definition: textlineprojection.cpp:106
bool PadBlobBox(BLOBNBOX *blob, TBOX *bbox)
Definition: textlineprojection.cpp:682
int HorizontalDistance(bool debug, int x1, int x2, int y) const
Definition: textlineprojection.cpp:309
Definition: baseapi.cpp:94
void IncrementRectangle8Bit(const TBOX &box)
Definition: textlineprojection.cpp:629
bool BoxOutOfHTextline(const TBOX &box, const DENORM *denorm, bool debug) const
Definition: textlineprojection.cpp:341
void PlotGradedBlobs(BLOBNBOX_LIST *blobs, ScrollView *win)
Definition: textlineprojection.cpp:84
void TruncateToImageBounds(TPOINT *pt) const
Definition: textlineprojection.cpp:757
int VerticalDistance(bool debug, int x, int y1, int y2) const
Definition: textlineprojection.cpp:276
void TransformToPixCoords(const DENORM *denorm, TPOINT *pt) const
Definition: textlineprojection.cpp:743
int DistanceOfBoxFromBox(const TBOX &from_box, const TBOX &to_box, bool horizontal_textline, const DENORM *denorm, bool debug) const
Definition: textlineprojection.cpp:197
int scale_factor_
Definition: textlineprojection.h:192
Definition: blobbox.h:144
int ImageYToProjectionY(int y) const
Definition: textlineprojection.cpp:770
~TextlineProjection()
Definition: textlineprojection.cpp:53
int x_origin_
Definition: textlineprojection.h:196
void DisplayProjection() const
Definition: textlineprojection.cpp:123
TextlineProjection(int resolution)
Definition: textlineprojection.cpp:47
int BestMeanGradientInColumn(const DENORM *denorm, int16_t x, int16_t min_y, int16_t max_y, bool best_is_max) const
Definition: textlineprojection.cpp:488
Definition: normalis.h:50
int ImageXToProjectionX(int x) const
Definition: textlineprojection.cpp:766
int EvaluateColPartition(const ColPartition &part, const DENORM *denorm, bool debug) const
Definition: textlineprojection.cpp:362
int EvaluateBoxInternal(const TBOX &box, const DENORM *denorm, bool debug, int *hgrad1, int *hgrad2, int *vgrad1, int *vgrad2) const
Definition: textlineprojection.cpp:421
Definition: textlineprojection.h:33
void ProjectBlobs(BLOBNBOX_LIST *blobs, const FCOORD &rotation, const TBOX &image_box, Pix *nontext_map)
Definition: textlineprojection.cpp:652
Pix * pix_
Definition: textlineprojection.h:201
int BestMeanGradientInRow(const DENORM *denorm, int16_t min_x, int16_t max_x, int16_t y, bool best_is_max) const
Definition: textlineprojection.cpp:461
Definition: blobbox.h:705
int MeanPixelsInLineSegment(const DENORM *denorm, int offset, TPOINT start_pt, TPOINT end_pt) const
Definition: textlineprojection.cpp:519
void ConstructProjection(TO_BLOCK *input_block, const FCOORD &rotation, Pix *nontext_map)
Definition: textlineprojection.cpp:64
int y_origin_
Definition: textlineprojection.h:197
int EvaluateBox(const TBOX &box, const DENORM *denorm, bool debug) const
Definition: textlineprojection.cpp:413
Definition: colpartition.h:68