tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
20 #ifndef TESSERACT_TEXTORD_COLPARTITIONSET_H_
21 #define TESSERACT_TEXTORD_COLPARTITIONSET_H_
30 class WorkingPartSet_LIST;
31 class ColSegment_LIST;
32 class ColPartitionSet;
52 return parts_.empty();
55 return parts_.length();
68 void GetColumnBoxes(
int y_bottom,
int y_top, ColSegment_LIST *segments);
108 int left,
int right,
int height,
int y,
109 int left_margin,
int right_margin,
110 int* first_col,
int* last_col,
111 int* first_spanned_col);
118 int resolution, ColPartition_LIST* used_parts,
119 WorkingPartSet_LIST* working_set);
123 int* total_gap,
int* gap_samples);
130 void AddPartition(
ColPartition* new_part, ColPartition_IT* it);
149 void ComputeCoverage();
153 void AddPartitionCoverageAndBox(
const ColPartition& part);
156 ColPartition_LIST parts_;
158 int good_column_count_;
171 #endif // TESSERACT_TEXTORD_COLPARTITION_H_
void AccumulateColumnWidthsAndGaps(int *total_width, int *width_samples, int *total_gap, int *gap_samples)
void DisplayColumnEdges(int y_bottom, int y_top, ScrollView *win)
ColPartition * GetColumnByIndex(int index)
void ChangeWorkColumns(const ICOORD &bleft, const ICOORD &tright, int resolution, ColPartition_LIST *used_parts, WorkingPartSet_LIST *working_set)
std::function< bool(int)> WidthCallback
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)
int GoodColumnCount() const
bool LegalColumnCandidate()
void AddToColumnSetsIfUnique(PartSetVector *column_sets, WidthCallback cb)
#define ELISTIZEH(CLASSNAME)
void GetColumnBoxes(int y_bottom, int y_top, ColSegment_LIST *segments)
const TBOX & bounding_box() const
bool CompatibleColumns(bool debug, ColPartitionSet *other, WidthCallback cb)
int UnmatchedWidth(ColPartitionSet *part_set)
void ImproveColumnCandidate(WidthCallback cb, PartSetVector *src_sets)
~ColPartitionSet()=default
ColPartitionSet * Copy(bool good_only)
ColPartition * ColumnContaining(int x, int y)
ColPartitionSet()=default