|
tesseract 3.04.01
|
Public Member Functions | |
| GeometricClassifierState (int dbg_level, GenericVector< RowScratchRegisters > *r, int r_start, int r_end) | |
| void | AssumeLeftJustification () |
| void | AssumeRightJustification () |
| const GenericVector< Cluster > & | AlignTabs () const |
| const GenericVector< Cluster > & | OffsideTabs () const |
| bool | IsFullRow (int i) const |
| int | AlignsideTabIndex (int row_idx) const |
| bool | FirstWordWouldHaveFit (int row_a, int row_b) |
| void | PrintRows () const |
| void | Fail (int min_debug_level, const char *why) const |
| ParagraphModel | Model () const |
Public Attributes | |
| int | debug_level |
| GenericVector < RowScratchRegisters > * | rows |
| int | row_start |
| int | row_end |
| int | tolerance |
| bool | ltr |
| GenericVector< Cluster > | left_tabs |
| GenericVector< Cluster > | right_tabs |
| tesseract::ParagraphJustification | just |
| int | margin |
| int | first_indent |
| int | body_indent |
| int | eop_threshold |
Definition at line 857 of file paragraphs.cpp.
| tesseract::GeometricClassifierState::GeometricClassifierState | ( | int | dbg_level, |
| GenericVector< RowScratchRegisters > * | r, | ||
| int | r_start, | ||
| int | r_end | ||
| ) | [inline] |
Definition at line 858 of file paragraphs.cpp.
: debug_level(dbg_level), rows(r), row_start(r_start), row_end(r_end), margin(0) { tolerance = InterwordSpace(*r, r_start, r_end); CalculateTabStops(r, r_start, r_end, tolerance, &left_tabs, &right_tabs); if (debug_level >= 3) { tprintf("Geometry: TabStop cluster tolerance = %d; " "%d left tabs; %d right tabs\n", tolerance, left_tabs.size(), right_tabs.size()); } ltr = (*r)[r_start].ri_->ltr; } void AssumeLeftJustification() { just = tesseract::JUSTIFICATION_LEFT;
| int tesseract::GeometricClassifierState::AlignsideTabIndex | ( | int | row_idx | ) | const [inline] |
Definition at line 907 of file paragraphs.cpp.
{
| const GenericVector<Cluster>& tesseract::GeometricClassifierState::AlignTabs | ( | ) | const [inline] |
Definition at line 885 of file paragraphs.cpp.
{
| void tesseract::GeometricClassifierState::AssumeLeftJustification | ( | ) | [inline] |
Definition at line 874 of file paragraphs.cpp.
| void tesseract::GeometricClassifierState::AssumeRightJustification | ( | ) | [inline] |
Definition at line 879 of file paragraphs.cpp.
{
| void tesseract::GeometricClassifierState::Fail | ( | int | min_debug_level, |
| const char * | why | ||
| ) | const [inline] |
Definition at line 920 of file paragraphs.cpp.
{
return ParagraphModel(just, margin, first_indent, body_indent, tolerance);
| bool tesseract::GeometricClassifierState::FirstWordWouldHaveFit | ( | int | row_a, |
| int | row_b | ||
| ) | [inline] |
Definition at line 913 of file paragraphs.cpp.
| bool tesseract::GeometricClassifierState::IsFullRow | ( | int | i | ) | const [inline] |
Definition at line 902 of file paragraphs.cpp.
{
return ClosestCluster(AlignTabs(), (*rows)[row_idx].AlignsideIndent(just));
| ParagraphModel tesseract::GeometricClassifierState::Model | ( | ) | const [inline] |
Definition at line 926 of file paragraphs.cpp.
| const GenericVector<Cluster>& tesseract::GeometricClassifierState::OffsideTabs | ( | ) | const [inline] |
Definition at line 895 of file paragraphs.cpp.
{
| void tesseract::GeometricClassifierState::PrintRows | ( | ) | const [inline] |
Definition at line 918 of file paragraphs.cpp.
{
Definition at line 955 of file paragraphs.cpp.
Definition at line 931 of file paragraphs.cpp.
Definition at line 958 of file paragraphs.cpp.
Definition at line 954 of file paragraphs.cpp.
Definition at line 952 of file paragraphs.cpp.
Definition at line 948 of file paragraphs.cpp.
Definition at line 944 of file paragraphs.cpp.
Definition at line 953 of file paragraphs.cpp.
Definition at line 949 of file paragraphs.cpp.
Definition at line 937 of file paragraphs.cpp.
Definition at line 936 of file paragraphs.cpp.
Definition at line 935 of file paragraphs.cpp.
Definition at line 940 of file paragraphs.cpp.