tesseract v5.3.3.20231005
|
#include <textlineprojection.h>
Public Member Functions | |
TextlineProjection (int resolution) | |
~TextlineProjection () | |
void | ConstructProjection (TO_BLOCK *input_block, const FCOORD &rotation, Image nontext_map) |
void | PlotGradedBlobs (BLOBNBOX_LIST *blobs, ScrollView *win) |
void | MoveNonTextlineBlobs (BLOBNBOX_LIST *blobs, BLOBNBOX_LIST *small_blobs) const |
void | DisplayProjection () const |
int | DistanceOfBoxFromPartition (const TBOX &box, const ColPartition &part, const DENORM *denorm, bool debug) const |
int | DistanceOfBoxFromBox (const TBOX &from_box, const TBOX &to_box, bool horizontal_textline, const DENORM *denorm, bool debug) const |
int | VerticalDistance (bool debug, int x, int y1, int y2) const |
int | HorizontalDistance (bool debug, int x1, int x2, int y) const |
bool | BoxOutOfHTextline (const TBOX &box, const DENORM *denorm, bool debug) const |
int | EvaluateColPartition (const ColPartition &part, const DENORM *denorm, bool debug) const |
int | EvaluateBox (const TBOX &box, const DENORM *denorm, bool debug) const |
Definition at line 33 of file textlineprojection.h.
|
explicit |
Definition at line 48 of file textlineprojection.cpp.
tesseract::TextlineProjection::~TextlineProjection | ( | ) |
Definition at line 55 of file textlineprojection.cpp.
bool tesseract::TextlineProjection::BoxOutOfHTextline | ( | const TBOX & | box, |
const DENORM * | denorm, | ||
bool | debug | ||
) | const |
Definition at line 340 of file textlineprojection.cpp.
void tesseract::TextlineProjection::ConstructProjection | ( | TO_BLOCK * | input_block, |
const FCOORD & | rotation, | ||
Image | nontext_map | ||
) |
Definition at line 66 of file textlineprojection.cpp.
void tesseract::TextlineProjection::DisplayProjection | ( | ) | const |
Definition at line 127 of file textlineprojection.cpp.
int tesseract::TextlineProjection::DistanceOfBoxFromBox | ( | const TBOX & | from_box, |
const TBOX & | to_box, | ||
bool | horizontal_textline, | ||
const DENORM * | denorm, | ||
bool | debug | ||
) | const |
Definition at line 198 of file textlineprojection.cpp.
int tesseract::TextlineProjection::DistanceOfBoxFromPartition | ( | const TBOX & | box, |
const ColPartition & | part, | ||
const DENORM * | denorm, | ||
bool | debug | ||
) | const |
Definition at line 161 of file textlineprojection.cpp.
int tesseract::TextlineProjection::EvaluateBox | ( | const TBOX & | box, |
const DENORM * | denorm, | ||
bool | debug | ||
) | const |
Definition at line 414 of file textlineprojection.cpp.
int tesseract::TextlineProjection::EvaluateColPartition | ( | const ColPartition & | part, |
const DENORM * | denorm, | ||
bool | debug | ||
) | const |
Definition at line 363 of file textlineprojection.cpp.
int tesseract::TextlineProjection::HorizontalDistance | ( | bool | debug, |
int | x1, | ||
int | x2, | ||
int | y | ||
) | const |
Definition at line 307 of file textlineprojection.cpp.
void tesseract::TextlineProjection::MoveNonTextlineBlobs | ( | BLOBNBOX_LIST * | blobs, |
BLOBNBOX_LIST * | small_blobs | ||
) | const |
Definition at line 109 of file textlineprojection.cpp.
void tesseract::TextlineProjection::PlotGradedBlobs | ( | BLOBNBOX_LIST * | blobs, |
ScrollView * | win | ||
) |
Definition at line 87 of file textlineprojection.cpp.
int tesseract::TextlineProjection::VerticalDistance | ( | bool | debug, |
int | x, | ||
int | y1, | ||
int | y2 | ||
) | const |
Definition at line 273 of file textlineprojection.cpp.