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);
ColPartitionGrid * line_grid_
bool VerifyLinedTableCells()
ColPartitionGrid * line_grid_
void set_line_grid(ColPartitionGrid *lines)
void set_text_grid(ColPartitionGrid *text)
void Display(ScrollView *window, ScrollView::Color color)
int FindHorizontalMargin(ColPartitionGrid *grid, int start_y, bool decrease) const
int row_height(int row) const
int CountHorizontalIntersections(int y)
void set_bounding_box(const TBOX &box)
int CountFilledCellsInRow(int row)
void UpdateMargins(ColPartitionGrid *grid)
bool VerifyWhitespacedTable()
static void FindCellSplitLocations(const GenericVector< int > &min_list, const GenericVector< int > &max_list, int max_merged, GenericVector< int > *locations)
ColPartitionGrid * text_grid_
GenericVectorEqEq< int > cell_y_
void FindWhitespacedRows()
int CountVerticalIntersections(int x)
ColPartitionGrid * text_grid_
GenericVectorEqEq< int > cell_x_
int CountFilledCellsInColumn(int column)
bool FindLinedStructure()
bool VerifyRowFilled(int row)
void set_max_text_height(int height)
double CalculateCellFilledPercentage(int row, int column)
int FindVerticalMargin(ColPartitionGrid *grid, int start_x, bool decrease) const
int CountPartitions(const TBOX &box)
bool FindWhitespacedStructure()
const TBOX & bounding_box() const
int column_width(int column) const
void FindWhitespacedColumns()
bool DoesPartitionFit(const ColPartition &part) const