tesseract
5.0.0-alpha-619-ge9db
|
#include <colpartitionset.h>
Public Member Functions | |
ColPartitionSet ()=default | |
ColPartitionSet (ColPartition_LIST *partitions) | |
ColPartitionSet (ColPartition *partition) | |
~ColPartitionSet ()=default | |
const TBOX & | bounding_box () const |
bool | Empty () const |
int | ColumnCount () const |
int | GoodColumnCount () const |
ColPartition * | GetColumnByIndex (int index) |
ColPartition * | ColumnContaining (int x, int y) |
void | GetColumnBoxes (int y_bottom, int y_top, ColSegment_LIST *segments) |
void | RelinquishParts () |
void | ImproveColumnCandidate (WidthCallback cb, PartSetVector *src_sets) |
void | AddToColumnSetsIfUnique (PartSetVector *column_sets, WidthCallback cb) |
bool | CompatibleColumns (bool debug, ColPartitionSet *other, WidthCallback cb) |
int | UnmatchedWidth (ColPartitionSet *part_set) |
bool | LegalColumnCandidate () |
ColPartitionSet * | Copy (bool good_only) |
void | DisplayColumnEdges (int y_bottom, int y_top, ScrollView *win) |
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) |
void | ChangeWorkColumns (const ICOORD &bleft, const ICOORD &tright, int resolution, ColPartition_LIST *used_parts, WorkingPartSet_LIST *working_set) |
void | AccumulateColumnWidthsAndGaps (int *total_width, int *width_samples, int *total_gap, int *gap_samples) |
void | Print () |
Public Member Functions inherited from ELIST_LINK | |
ELIST_LINK () | |
ELIST_LINK (const ELIST_LINK &) | |
void | operator= (const ELIST_LINK &) |
Definition at line 39 of file colpartitionset.h.
|
default |
|
explicit |
Definition at line 35 of file colpartitionset.cpp.
|
explicit |
Definition at line 41 of file colpartitionset.cpp.
|
default |
void tesseract::ColPartitionSet::AccumulateColumnWidthsAndGaps | ( | int * | total_width, |
int * | width_samples, | ||
int * | total_gap, | ||
int * | gap_samples | ||
) |
Definition at line 571 of file colpartitionset.cpp.
void tesseract::ColPartitionSet::AddToColumnSetsIfUnique | ( | PartSetVector * | column_sets, |
WidthCallback | cb | ||
) |
Definition at line 174 of file colpartitionset.cpp.
|
inline |
Definition at line 48 of file colpartitionset.h.
void tesseract::ColPartitionSet::ChangeWorkColumns | ( | const ICOORD & | bleft, |
const ICOORD & | tright, | ||
int | resolution, | ||
ColPartition_LIST * | used_parts, | ||
WorkingPartSet_LIST * | working_set | ||
) |
Definition at line 499 of file colpartitionset.cpp.
ColPartition * tesseract::ColPartitionSet::ColumnContaining | ( | int | x, |
int | y | ||
) |
Definition at line 69 of file colpartitionset.cpp.
|
inline |
Definition at line 54 of file colpartitionset.h.
bool tesseract::ColPartitionSet::CompatibleColumns | ( | bool | debug, |
ColPartitionSet * | other, | ||
WidthCallback | cb | ||
) |
Definition at line 222 of file colpartitionset.cpp.
ColPartitionSet * tesseract::ColPartitionSet::Copy | ( | bool | good_only | ) |
Definition at line 353 of file colpartitionset.cpp.
void tesseract::ColPartitionSet::DisplayColumnEdges | ( | int | y_bottom, |
int | y_top, | ||
ScrollView * | win | ||
) |
Definition at line 385 of file colpartitionset.cpp.
|
inline |
Definition at line 51 of file colpartitionset.h.
void tesseract::ColPartitionSet::GetColumnBoxes | ( | int | y_bottom, |
int | y_top, | ||
ColSegment_LIST * | segments | ||
) |
Definition at line 369 of file colpartitionset.cpp.
ColPartition * tesseract::ColPartitionSet::GetColumnByIndex | ( | int | index | ) |
Definition at line 59 of file colpartitionset.cpp.
int tesseract::ColPartitionSet::GoodColumnCount | ( | ) | const |
Definition at line 48 of file colpartitionset.cpp.
void tesseract::ColPartitionSet::ImproveColumnCandidate | ( | WidthCallback | cb, |
PartSetVector * | src_sets | ||
) |
Definition at line 89 of file colpartitionset.cpp.
bool tesseract::ColPartitionSet::LegalColumnCandidate | ( | ) |
Definition at line 330 of file colpartitionset.cpp.
void tesseract::ColPartitionSet::Print | ( | ) |
Definition at line 592 of file colpartitionset.cpp.
void tesseract::ColPartitionSet::RelinquishParts | ( | ) |
Definition at line 80 of file colpartitionset.cpp.
ColumnSpanningType tesseract::ColPartitionSet::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 at line 404 of file colpartitionset.cpp.
int tesseract::ColPartitionSet::UnmatchedWidth | ( | ColPartitionSet * | part_set | ) |
Definition at line 305 of file colpartitionset.cpp.