23 #include "colpartitiongrid.h" 24 #include "genericvector.h" 126 int column_start,
int column_end);
178 bool decrease)
const;
180 bool decrease)
const;
274 void set_min_height(
int height);
275 void set_min_width(
int width);
329 bool HasSignificantLines(
const TBOX& guess);
343 bool FindLinesBoundingBoxIteration(
TBOX* bounding_box);
359 int NextHorizontalSplit(
int left,
int right,
int y,
bool top_to_bottom);
int CountFilledCells()
Definition: tablerecog.cpp:223
Definition: colpartitiongrid.h:33
GenericVectorEqEq< int > cell_x_
Definition: tablerecog.h:243
bool VerifyWhitespacedTable()
Definition: tablerecog.cpp:344
bool DoesPartitionFit(const ColPartition &part) const
Definition: tablerecog.cpp:211
int space_below_
Definition: tablerecog.h:248
bool FindLinedStructure()
Definition: tablerecog.cpp:140
int FindHorizontalMargin(ColPartitionGrid *grid, int start_y, bool decrease) const
Definition: tablerecog.cpp:501
void ClearStructure()
Definition: tablerecog.cpp:308
void FindWhitespacedColumns()
Definition: tablerecog.cpp:354
int max_text_height_
Definition: tablerecog.h:254
Definition: tablerecog.h:257
int median_cell_width_
Definition: tablerecog.h:252
int CountPartitions(const TBOX &box)
Definition: tablerecog.cpp:688
int max_text_height_
Definition: tablerecog.h:373
int min_height_
Definition: tablerecog.h:370
int median_cell_height()
Definition: tablerecog.cpp:112
ColPartitionGrid * text_grid_
Definition: tablerecog.h:367
bool VerifyRowFilled(int row)
Definition: tablerecog.cpp:255
int median_cell_height_
Definition: tablerecog.h:251
void Init()
Definition: tablerecog.cpp:82
bool is_lined() const
Definition: tablerecog.cpp:94
bool is_lined_
Definition: tablerecog.h:245
void Display(ScrollView *window, ScrollView::Color color)
Definition: tablerecog.cpp:289
Definition: baseapi.cpp:94
void UpdateMargins(ColPartitionGrid *grid)
Definition: tablerecog.cpp:474
int row_count() const
Definition: tablerecog.cpp:97
void CalculateStats()
Definition: tablerecog.cpp:518
int min_width_
Definition: tablerecog.h:371
const TBOX & bounding_box() const
Definition: tablerecog.cpp:109
int cell_count() const
Definition: tablerecog.cpp:103
StructuredTable()
Definition: tablerecog.cpp:69
GenericVectorEqEq< int > cell_y_
Definition: tablerecog.h:244
int space_above() const
Definition: tablerecog.cpp:126
void set_text_grid(ColPartitionGrid *text)
Definition: tablerecog.cpp:85
void AbsorbNearbyLines()
Definition: tablerecog.cpp:538
ColPartitionGrid * text_grid_
Definition: tablerecog.h:237
int CountHorizontalIntersections(int y)
Definition: tablerecog.cpp:662
ColPartitionGrid * line_grid_
Definition: tablerecog.h:368
void CalculateMargins()
Definition: tablerecog.cpp:464
bool FindWhitespacedStructure()
Definition: tablerecog.cpp:187
int space_right_
Definition: tablerecog.h:250
int median_cell_width()
Definition: tablerecog.cpp:115
~StructuredTable()=default
int CountFilledCellsInRow(int row)
Definition: tablerecog.cpp:226
int CountFilledCellsInColumn(int column)
Definition: tablerecog.cpp:229
void set_bounding_box(const TBOX &box)
Definition: tablerecog.cpp:106
double CalculateCellFilledPercentage(int row, int column)
Definition: tablerecog.cpp:266
int row_height(int row) const
Definition: tablerecog.cpp:118
int FindVerticalMargin(ColPartitionGrid *grid, int start_x, bool decrease) const
Definition: tablerecog.cpp:484
void FindWhitespacedRows()
Definition: tablerecog.cpp:399
int CountVerticalIntersections(int x)
Definition: tablerecog.cpp:638
void set_max_text_height(int height)
Definition: tablerecog.cpp:91
Definition: tablerecog.h:72
bool VerifyLinedTableCells()
Definition: tablerecog.cpp:322
int space_below() const
Definition: tablerecog.cpp:129
int space_left_
Definition: tablerecog.h:249
int column_count() const
Definition: tablerecog.cpp:100
int space_above_
Definition: tablerecog.h:247
ColPartitionGrid * line_grid_
Definition: tablerecog.h:238
void set_line_grid(ColPartitionGrid *lines)
Definition: tablerecog.cpp:88
Definition: colpartition.h:68
int column_width(int column) const
Definition: tablerecog.cpp:122
TBOX bounding_box_
Definition: tablerecog.h:242
static void FindCellSplitLocations(const GenericVector< int > &min_list, const GenericVector< int > &max_list, int max_merged, GenericVector< int > *locations)
Definition: tablerecog.cpp:592