tesseract::TabFind Class Reference

#include <tabfind.h>

Inheritance diagram for tesseract::TabFind:
tesseract::AlignedBlob tesseract::BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT > tesseract::ColumnFinder

List of all members.

Public Member Functions

 TabFind (int gridsize, const ICOORD &bleft, const ICOORD &tright, TabVector_LIST *vlines, int vertical_x, int vertical_y)
virtual ~TabFind ()
void InsertBlobList (bool h_spread, bool v_spread, bool large, BLOBNBOX_LIST *blobs, bool take_ownership, BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT > *grid)
bool InsertBlob (bool h_spread, bool v_spread, bool large, BLOBNBOX *blob, BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT > *grid)
void GutterWidthAndNeighbourGap (int tab_x, int mean_height, int max_gutter, bool left, BLOBNBOX *bbox, int *gutter_width, int *neighbour_gap)
BLOBNBOXAdjacentBlob (const BLOBNBOX *bbox, bool right_to_left, int gap_limit)
BlobRegionType ComputeBlobType (BLOBNBOX *blob)
int RightEdgeForBox (const TBOX &box, bool crossing, bool extended)
int LeftEdgeForBox (const TBOX &box, bool crossing, bool extended)
void ComputeDeskewVectors (FCOORD *deskew, FCOORD *reskew)
bool CommonWidth (int width)
WidthCallbackWidthCB ()
const ICOORDimage_origin () const

Static Public Member Functions

static bool DifferentSizes (int size1, int size2)

Protected Member Functions

TabVector_LIST * get_vectors ()
void FindTabVectors (int resolution, TabVector_LIST *hlines, BLOBNBOX_LIST *image_blobs, TO_BLOCK *block, FCOORD *reskew, FCOORD *rerotate)
void DontFindTabVectors (int resolution, BLOBNBOX_LIST *image_blobs, TO_BLOCK *block, FCOORD *reskew)
TabVectorRightTabForBox (const TBOX &box, bool crossing, bool extended)
TabVectorLeftTabForBox (const TBOX &box, bool crossing, bool extended)
void SetupTabSearch (int x, int y, int *min_key, int *max_key)
ScrollViewDisplayTabVectors (ScrollView *tab_win)

Protected Attributes

ICOORD vertical_skew_
int resolution_

Constructor & Destructor Documentation

tesseract::TabFind::TabFind ( int  gridsize,
const ICOORD bleft,
const ICOORD tright,
TabVector_LIST *  vlines,
int  vertical_x,
int  vertical_y 
)
tesseract::TabFind::~TabFind (  )  [virtual]

Member Function Documentation

BLOBNBOX * tesseract::TabFind::AdjacentBlob ( const BLOBNBOX bbox,
bool  right_to_left,
int  gap_limit 
)
bool tesseract::TabFind::CommonWidth ( int  width  ) 
BlobRegionType tesseract::TabFind::ComputeBlobType ( BLOBNBOX blob  ) 
void tesseract::TabFind::ComputeDeskewVectors ( FCOORD deskew,
FCOORD reskew 
)
bool tesseract::TabFind::DifferentSizes ( int  size1,
int  size2 
) [static]
ScrollView * tesseract::TabFind::DisplayTabVectors ( ScrollView tab_win  )  [protected]
void tesseract::TabFind::DontFindTabVectors ( int  resolution,
BLOBNBOX_LIST *  image_blobs,
TO_BLOCK block,
FCOORD reskew 
) [protected]
void tesseract::TabFind::FindTabVectors ( int  resolution,
TabVector_LIST *  hlines,
BLOBNBOX_LIST *  image_blobs,
TO_BLOCK block,
FCOORD reskew,
FCOORD rerotate 
) [protected]
TabVector_LIST* tesseract::TabFind::get_vectors (  )  [inline, protected]
void tesseract::TabFind::GutterWidthAndNeighbourGap ( int  tab_x,
int  mean_height,
int  max_gutter,
bool  left,
BLOBNBOX bbox,
int *  gutter_width,
int *  neighbour_gap 
)
const ICOORD& tesseract::TabFind::image_origin (  )  const [inline]
bool tesseract::TabFind::InsertBlob ( bool  h_spread,
bool  v_spread,
bool  large,
BLOBNBOX blob,
BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT > *  grid 
)
void tesseract::TabFind::InsertBlobList ( bool  h_spread,
bool  v_spread,
bool  large,
BLOBNBOX_LIST *  blobs,
bool  take_ownership,
BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT > *  grid 
)
int tesseract::TabFind::LeftEdgeForBox ( const TBOX box,
bool  crossing,
bool  extended 
)
TabVector * tesseract::TabFind::LeftTabForBox ( const TBOX box,
bool  crossing,
bool  extended 
) [protected]
int tesseract::TabFind::RightEdgeForBox ( const TBOX box,
bool  crossing,
bool  extended 
)
TabVector * tesseract::TabFind::RightTabForBox ( const TBOX box,
bool  crossing,
bool  extended 
) [protected]
void tesseract::TabFind::SetupTabSearch ( int  x,
int  y,
int *  min_key,
int *  max_key 
) [protected]
WidthCallback* tesseract::TabFind::WidthCB (  )  [inline]

Member Data Documentation


The documentation for this class was generated from the following files:
Generated on Sun Jul 18 17:11:28 2010 for Tesseract by  doxygen 1.6.3