tesseract
4.00.00dev
|
#include <tablerecog.h>
Public Member Functions | |
StructuredTable () | |
~StructuredTable () | |
void | Init () |
void | set_text_grid (ColPartitionGrid *text) |
void | set_line_grid (ColPartitionGrid *lines) |
void | set_max_text_height (int height) |
bool | is_lined () const |
int | row_count () const |
int | column_count () const |
int | cell_count () const |
void | set_bounding_box (const TBOX &box) |
const TBOX & | bounding_box () const |
int | median_cell_height () |
int | median_cell_width () |
int | row_height (int row) const |
int | column_width (int column) const |
int | space_above () const |
int | space_below () const |
bool | FindLinedStructure () |
bool | FindWhitespacedStructure () |
bool | DoesPartitionFit (const ColPartition &part) const |
int | CountFilledCells () |
int | CountFilledCellsInRow (int row) |
int | CountFilledCellsInColumn (int column) |
int | CountFilledCells (int row_start, int row_end, int column_start, int column_end) |
bool | VerifyRowFilled (int row) |
double | CalculateCellFilledPercentage (int row, int column) |
void | Display (ScrollView *window, ScrollView::Color color) |
Protected Member Functions | |
void | ClearStructure () |
bool | VerifyLinedTableCells () |
bool | VerifyWhitespacedTable () |
void | FindWhitespacedColumns () |
void | FindWhitespacedRows () |
void | CalculateMargins () |
void | UpdateMargins (ColPartitionGrid *grid) |
int | FindVerticalMargin (ColPartitionGrid *grid, int start_x, bool decrease) const |
int | FindHorizontalMargin (ColPartitionGrid *grid, int start_y, bool decrease) const |
void | CalculateStats () |
void | AbsorbNearbyLines () |
int | CountVerticalIntersections (int x) |
int | CountHorizontalIntersections (int y) |
int | CountPartitions (const TBOX &box) |
Static Protected Member Functions | |
static void | FindCellSplitLocations (const GenericVector< int > &min_list, const GenericVector< int > &max_list, int max_merged, GenericVector< int > *locations) |
Definition at line 72 of file tablerecog.h.
tesseract::StructuredTable::StructuredTable | ( | ) |
Definition at line 67 of file tablerecog.cpp.
tesseract::StructuredTable::~StructuredTable | ( | ) |
Definition at line 80 of file tablerecog.cpp.
|
protected |
Definition at line 539 of file tablerecog.cpp.
const TBOX & tesseract::StructuredTable::bounding_box | ( | ) | const |
Definition at line 110 of file tablerecog.cpp.
Definition at line 267 of file tablerecog.cpp.
|
protected |
Definition at line 465 of file tablerecog.cpp.
|
protected |
Definition at line 519 of file tablerecog.cpp.
int tesseract::StructuredTable::cell_count | ( | ) | const |
Definition at line 104 of file tablerecog.cpp.
|
protected |
Definition at line 309 of file tablerecog.cpp.
int tesseract::StructuredTable::column_count | ( | ) | const |
Definition at line 101 of file tablerecog.cpp.
Definition at line 123 of file tablerecog.cpp.
int tesseract::StructuredTable::CountFilledCells | ( | ) |
Definition at line 224 of file tablerecog.cpp.
int tesseract::StructuredTable::CountFilledCells | ( | int | row_start, |
int | row_end, | ||
int | column_start, | ||
int | column_end | ||
) |
Definition at line 233 of file tablerecog.cpp.
Definition at line 230 of file tablerecog.cpp.
Definition at line 227 of file tablerecog.cpp.
Definition at line 663 of file tablerecog.cpp.
Definition at line 689 of file tablerecog.cpp.
Definition at line 639 of file tablerecog.cpp.
void tesseract::StructuredTable::Display | ( | ScrollView * | window, |
ScrollView::Color | color | ||
) |
Definition at line 290 of file tablerecog.cpp.
bool tesseract::StructuredTable::DoesPartitionFit | ( | const ColPartition & | part | ) | const |
Definition at line 212 of file tablerecog.cpp.
|
staticprotected |
Definition at line 593 of file tablerecog.cpp.
|
protected |
Definition at line 502 of file tablerecog.cpp.
bool tesseract::StructuredTable::FindLinedStructure | ( | ) |
Definition at line 141 of file tablerecog.cpp.
|
protected |
Definition at line 485 of file tablerecog.cpp.
|
protected |
Definition at line 355 of file tablerecog.cpp.
|
protected |
Definition at line 400 of file tablerecog.cpp.
bool tesseract::StructuredTable::FindWhitespacedStructure | ( | ) |
Definition at line 188 of file tablerecog.cpp.
void tesseract::StructuredTable::Init | ( | ) |
Definition at line 83 of file tablerecog.cpp.
bool tesseract::StructuredTable::is_lined | ( | ) | const |
Definition at line 95 of file tablerecog.cpp.
int tesseract::StructuredTable::median_cell_height | ( | ) |
Definition at line 113 of file tablerecog.cpp.
int tesseract::StructuredTable::median_cell_width | ( | ) |
Definition at line 116 of file tablerecog.cpp.
int tesseract::StructuredTable::row_count | ( | ) | const |
Definition at line 98 of file tablerecog.cpp.
Definition at line 119 of file tablerecog.cpp.
void tesseract::StructuredTable::set_bounding_box | ( | const TBOX & | box | ) |
Definition at line 107 of file tablerecog.cpp.
void tesseract::StructuredTable::set_line_grid | ( | ColPartitionGrid * | lines | ) |
Definition at line 89 of file tablerecog.cpp.
void tesseract::StructuredTable::set_max_text_height | ( | int | height | ) |
Definition at line 92 of file tablerecog.cpp.
void tesseract::StructuredTable::set_text_grid | ( | ColPartitionGrid * | text | ) |
Definition at line 86 of file tablerecog.cpp.
int tesseract::StructuredTable::space_above | ( | ) | const |
Definition at line 127 of file tablerecog.cpp.
int tesseract::StructuredTable::space_below | ( | ) | const |
Definition at line 130 of file tablerecog.cpp.
|
protected |
Definition at line 475 of file tablerecog.cpp.
|
protected |
Definition at line 323 of file tablerecog.cpp.
bool tesseract::StructuredTable::VerifyRowFilled | ( | int | row | ) |
Definition at line 256 of file tablerecog.cpp.
|
protected |
Definition at line 345 of file tablerecog.cpp.
|
protected |
Definition at line 242 of file tablerecog.h.
|
protected |
Definition at line 243 of file tablerecog.h.
|
protected |
Definition at line 244 of file tablerecog.h.
|
protected |
Definition at line 245 of file tablerecog.h.
|
protected |
Definition at line 238 of file tablerecog.h.
|
protected |
Definition at line 254 of file tablerecog.h.
|
protected |
Definition at line 251 of file tablerecog.h.
|
protected |
Definition at line 252 of file tablerecog.h.
|
protected |
Definition at line 247 of file tablerecog.h.
|
protected |
Definition at line 248 of file tablerecog.h.
|
protected |
Definition at line 249 of file tablerecog.h.
|
protected |
Definition at line 250 of file tablerecog.h.
|
protected |
Definition at line 237 of file tablerecog.h.