126 int column_start,
int column_end);
178 bool decrease)
const;
180 bool decrease)
const;
int CountFilledCellsInRow(int row)
GenericVectorEqEq< int > cell_x_
int CountFilledCellsInColumn(int column)
bool HasSignificantLines(const TBOX &guess)
double CalculateCellFilledPercentage(int row, int column)
int NextHorizontalSplit(int left, int right, int y, bool top_to_bottom)
ColPartitionGrid * text_grid_
bool FindWhitespacedStructure()
bool DoesPartitionFit(const ColPartition &part) const
int FindVerticalMargin(ColPartitionGrid *grid, int start_x, bool decrease) const
static void FindCellSplitLocations(const GenericVector< int > &min_list, const GenericVector< int > &max_list, int max_merged, GenericVector< int > *locations)
void set_bounding_box(const TBOX &box)
GenericVectorEqEq< int > cell_y_
bool FindLinesBoundingBox(TBOX *bounding_box)
ColPartitionGrid * line_grid_
bool RecognizeWhitespacedTable(const TBOX &guess_box, StructuredTable *table)
void set_max_text_height(int height)
int CountVerticalIntersections(int x)
const TBOX & bounding_box() const
bool FindLinedStructure()
int FindHorizontalMargin(ColPartitionGrid *grid, int start_y, bool decrease) const
void set_line_grid(ColPartitionGrid *lines)
bool VerifyLinedTableCells()
bool RecognizeLinedTable(const TBOX &guess_box, StructuredTable *table)
ColPartitionGrid * line_grid_
void set_line_grid(ColPartitionGrid *lines)
void set_min_height(int height)
void set_min_width(int width)
bool FindLinesBoundingBoxIteration(TBOX *bounding_box)
void set_text_grid(ColPartitionGrid *text)
void set_text_grid(ColPartitionGrid *text)
void UpdateMargins(ColPartitionGrid *grid)
int column_width(int column) const
static bool IsWeakTableRow(StructuredTable *table, int row)
void set_max_text_height(int height)
int row_height(int row) const
void FindWhitespacedRows()
StructuredTable * RecognizeTable(const TBOX &guess_box)
int CountHorizontalIntersections(int y)
bool VerifyRowFilled(int row)
void Display(ScrollView *window, ScrollView::Color color)
int CountPartitions(const TBOX &box)
bool VerifyWhitespacedTable()
ColPartitionGrid * text_grid_
void FindWhitespacedColumns()