21 #ifndef TESSERACT_TEXTORD_COLPARTITIONSET_H_ 22 #define TESSERACT_TEXTORD_COLPARTITIONSET_H_ 24 #include "colpartition.h" 25 #include "genericvector.h" 27 #include "tabvector.h" 31 class WorkingPartSet_LIST;
32 class ColSegment_LIST;
33 class ColPartitionSet;
69 void GetColumnBoxes(
int y_bottom,
int y_top, ColSegment_LIST *segments);
109 int left,
int right,
int height,
int y,
110 int left_margin,
int right_margin,
111 int* first_col,
int* last_col,
112 int* first_spanned_col);
119 int resolution, ColPartition_LIST* used_parts,
120 WorkingPartSet_LIST* working_set);
124 int* total_gap,
int* gap_samples);
172 #endif // TESSERACT_TEXTORD_COLPARTITION_H_ void AccumulateColumnWidthsAndGaps(int *total_width, int *width_samples, int *total_gap, int *gap_samples)
Definition: colpartitionset.cpp:572
bool CompatibleColumns(bool debug, ColPartitionSet *other, WidthCallback *cb)
Definition: colpartitionset.cpp:223
bool Empty() const
Definition: colpartitionset.h:52
int ColumnCount() const
Definition: colpartitionset.h:55
Definition: colpartitionset.h:40
bool LegalColumnCandidate()
Definition: colpartitionset.cpp:331
void AddPartitionCoverageAndBox(const ColPartition &part)
Definition: colpartitionset.cpp:651
ColPartition * ColumnContaining(int x, int y)
Definition: colpartitionset.cpp:70
int good_coverage_
Definition: colpartitionset.h:161
const TBOX & bounding_box() const
Definition: colpartitionset.h:49
Definition: baseapi.cpp:94
ColPartition * GetColumnByIndex(int index)
Definition: colpartitionset.cpp:60
void AddToColumnSetsIfUnique(PartSetVector *column_sets, WidthCallback *cb)
Definition: colpartitionset.cpp:175
void ComputeCoverage()
Definition: colpartitionset.cpp:636
void DisplayColumnEdges(int y_bottom, int y_top, ScrollView *win)
Definition: colpartitionset.cpp:386
void ImproveColumnCandidate(WidthCallback *cb, PartSetVector *src_sets)
Definition: colpartitionset.cpp:90
Definition: tesscallback.h:1673
ColPartitionSet()=default
int good_column_count_
Definition: colpartitionset.h:159
integer coordinate
Definition: points.h:32
void GetColumnBoxes(int y_bottom, int y_top, ColSegment_LIST *segments)
Definition: colpartitionset.cpp:370
~ColPartitionSet()=default
int GoodColumnCount() const
Definition: colpartitionset.cpp:49
void ChangeWorkColumns(const ICOORD &bleft, const ICOORD &tright, int resolution, ColPartition_LIST *used_parts, WorkingPartSet_LIST *working_set)
Definition: colpartitionset.cpp:500
ColPartition_LIST parts_
Definition: colpartitionset.h:157
void Print()
Definition: colpartitionset.cpp:593
void AddPartition(ColPartition *new_part, ColPartition_IT *it)
Definition: colpartitionset.cpp:609
ColPartitionSet * Copy(bool good_only)
Definition: colpartitionset.cpp:354
void RelinquishParts()
Definition: colpartitionset.cpp:81
ColumnSpanningType
Definition: colpartition.h:48
int UnmatchedWidth(ColPartitionSet *part_set)
Definition: colpartitionset.cpp:306
Definition: colpartition.h:68
ColumnSpanningType SpanningType(int resolution, int left, int right, int height, int y, int left_margin, int right_margin, int *first_col, int *last_col, int *first_spanned_col)
Definition: colpartitionset.cpp:405
int bad_coverage_
Definition: colpartitionset.h:163
TBOX bounding_box_
Definition: colpartitionset.h:165