| 
    tesseract
    4.0.0-1-g2a2b
    
   | 
 
#include <tablerecog.h>
Public Member Functions | |
| StructuredTable () | |
| ~StructuredTable ()=default | |
| 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) | 
Protected Attributes | |
| ColPartitionGrid * | text_grid_ | 
| ColPartitionGrid * | line_grid_ | 
| TBOX | bounding_box_ | 
| GenericVectorEqEq< int > | cell_x_ | 
| GenericVectorEqEq< int > | cell_y_ | 
| bool | is_lined_ | 
| int | space_above_ | 
| int | space_below_ | 
| int | space_left_ | 
| int | space_right_ | 
| int | median_cell_height_ | 
| int | median_cell_width_ | 
| int | max_text_height_ | 
Definition at line 72 of file tablerecog.h.
| tesseract::StructuredTable::StructuredTable | ( | ) | 
Definition at line 69 of file tablerecog.cpp.
      
  | 
  default | 
      
  | 
  protected | 
Definition at line 538 of file tablerecog.cpp.
| const TBOX & tesseract::StructuredTable::bounding_box | ( | ) | const | 
Definition at line 109 of file tablerecog.cpp.
| double tesseract::StructuredTable::CalculateCellFilledPercentage | ( | int | row, | 
| int | column | ||
| ) | 
Definition at line 266 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 464 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 518 of file tablerecog.cpp.
| int tesseract::StructuredTable::cell_count | ( | ) | const | 
Definition at line 103 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 308 of file tablerecog.cpp.
| int tesseract::StructuredTable::column_count | ( | ) | const | 
Definition at line 100 of file tablerecog.cpp.
| int tesseract::StructuredTable::column_width | ( | int | column | ) | const | 
Definition at line 122 of file tablerecog.cpp.
| int tesseract::StructuredTable::CountFilledCells | ( | ) | 
Definition at line 223 of file tablerecog.cpp.
| int tesseract::StructuredTable::CountFilledCells | ( | int | row_start, | 
| int | row_end, | ||
| int | column_start, | ||
| int | column_end | ||
| ) | 
Definition at line 232 of file tablerecog.cpp.
| int tesseract::StructuredTable::CountFilledCellsInColumn | ( | int | column | ) | 
Definition at line 229 of file tablerecog.cpp.
| int tesseract::StructuredTable::CountFilledCellsInRow | ( | int | row | ) | 
Definition at line 226 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 662 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 688 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 638 of file tablerecog.cpp.
| void tesseract::StructuredTable::Display | ( | ScrollView * | window, | 
| ScrollView::Color | color | ||
| ) | 
Definition at line 289 of file tablerecog.cpp.
| bool tesseract::StructuredTable::DoesPartitionFit | ( | const ColPartition & | part | ) | const | 
Definition at line 211 of file tablerecog.cpp.
      
  | 
  staticprotected | 
Definition at line 592 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 501 of file tablerecog.cpp.
| bool tesseract::StructuredTable::FindLinedStructure | ( | ) | 
Definition at line 140 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 484 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 354 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 399 of file tablerecog.cpp.
| bool tesseract::StructuredTable::FindWhitespacedStructure | ( | ) | 
Definition at line 187 of file tablerecog.cpp.
| void tesseract::StructuredTable::Init | ( | ) | 
Definition at line 82 of file tablerecog.cpp.
| bool tesseract::StructuredTable::is_lined | ( | ) | const | 
Definition at line 94 of file tablerecog.cpp.
| int tesseract::StructuredTable::median_cell_height | ( | ) | 
Definition at line 112 of file tablerecog.cpp.
| int tesseract::StructuredTable::median_cell_width | ( | ) | 
Definition at line 115 of file tablerecog.cpp.
| int tesseract::StructuredTable::row_count | ( | ) | const | 
Definition at line 97 of file tablerecog.cpp.
| int tesseract::StructuredTable::row_height | ( | int | row | ) | const | 
Definition at line 118 of file tablerecog.cpp.
| void tesseract::StructuredTable::set_bounding_box | ( | const TBOX & | box | ) | 
Definition at line 106 of file tablerecog.cpp.
| void tesseract::StructuredTable::set_line_grid | ( | ColPartitionGrid * | lines | ) | 
Definition at line 88 of file tablerecog.cpp.
| void tesseract::StructuredTable::set_max_text_height | ( | int | height | ) | 
Definition at line 91 of file tablerecog.cpp.
| void tesseract::StructuredTable::set_text_grid | ( | ColPartitionGrid * | text | ) | 
Definition at line 85 of file tablerecog.cpp.
| int tesseract::StructuredTable::space_above | ( | ) | const | 
Definition at line 126 of file tablerecog.cpp.
| int tesseract::StructuredTable::space_below | ( | ) | const | 
Definition at line 129 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 474 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 322 of file tablerecog.cpp.
| bool tesseract::StructuredTable::VerifyRowFilled | ( | int | row | ) | 
Definition at line 255 of file tablerecog.cpp.
      
  | 
  protected | 
Definition at line 344 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.