tesseract::StructuredTable Class Reference

#include <tablerecog.h>

List of all members.

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 TBOXbounding_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

ColPartitionGridtext_grid_
ColPartitionGridline_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_

Constructor & Destructor Documentation

tesseract::StructuredTable::StructuredTable (  ) 
tesseract::StructuredTable::~StructuredTable (  ) 

Member Function Documentation

void tesseract::StructuredTable::AbsorbNearbyLines (  )  [protected]
const TBOX & tesseract::StructuredTable::bounding_box (  )  const
double tesseract::StructuredTable::CalculateCellFilledPercentage ( int  row,
int  column 
)
void tesseract::StructuredTable::CalculateMargins (  )  [protected]
void tesseract::StructuredTable::CalculateStats (  )  [protected]
int tesseract::StructuredTable::cell_count (  )  const
void tesseract::StructuredTable::ClearStructure (  )  [protected]
int tesseract::StructuredTable::column_count (  )  const
int tesseract::StructuredTable::column_width ( int  column  )  const
int tesseract::StructuredTable::CountFilledCells ( int  row_start,
int  row_end,
int  column_start,
int  column_end 
)
int tesseract::StructuredTable::CountFilledCells (  ) 
int tesseract::StructuredTable::CountFilledCellsInColumn ( int  column  ) 
int tesseract::StructuredTable::CountFilledCellsInRow ( int  row  ) 
int tesseract::StructuredTable::CountHorizontalIntersections ( int  y  )  [protected]
int tesseract::StructuredTable::CountPartitions ( const TBOX box  )  [protected]
int tesseract::StructuredTable::CountVerticalIntersections ( int  x  )  [protected]
void tesseract::StructuredTable::Display ( ScrollView window,
ScrollView::Color  color 
)
bool tesseract::StructuredTable::DoesPartitionFit ( const ColPartition part  )  const
void tesseract::StructuredTable::FindCellSplitLocations ( const GenericVector< int > &  min_list,
const GenericVector< int > &  max_list,
int  max_merged,
GenericVector< int > *  locations 
) [static, protected]
int tesseract::StructuredTable::FindHorizontalMargin ( ColPartitionGrid grid,
int  start_y,
bool  decrease 
) const [protected]
bool tesseract::StructuredTable::FindLinedStructure (  ) 
int tesseract::StructuredTable::FindVerticalMargin ( ColPartitionGrid grid,
int  start_x,
bool  decrease 
) const [protected]
void tesseract::StructuredTable::FindWhitespacedColumns (  )  [protected]
void tesseract::StructuredTable::FindWhitespacedRows (  )  [protected]
bool tesseract::StructuredTable::FindWhitespacedStructure (  ) 
void tesseract::StructuredTable::Init (  ) 
bool tesseract::StructuredTable::is_lined (  )  const
int tesseract::StructuredTable::median_cell_height (  ) 
int tesseract::StructuredTable::median_cell_width (  ) 
int tesseract::StructuredTable::row_count (  )  const
int tesseract::StructuredTable::row_height ( int  row  )  const
void tesseract::StructuredTable::set_bounding_box ( const TBOX box  ) 
void tesseract::StructuredTable::set_line_grid ( ColPartitionGrid lines  ) 
void tesseract::StructuredTable::set_max_text_height ( int  height  ) 
void tesseract::StructuredTable::set_text_grid ( ColPartitionGrid text  ) 
int tesseract::StructuredTable::space_above (  )  const
int tesseract::StructuredTable::space_below (  )  const
void tesseract::StructuredTable::UpdateMargins ( ColPartitionGrid grid  )  [protected]
bool tesseract::StructuredTable::VerifyLinedTableCells (  )  [protected]
bool tesseract::StructuredTable::VerifyRowFilled ( int  row  ) 
bool tesseract::StructuredTable::VerifyWhitespacedTable (  )  [protected]

Member Data Documentation


The documentation for this class was generated from the following files:
Generated on Thu Feb 2 08:19:27 2012 for Tesseract by  doxygen 1.6.3