#include <tabfind.h>
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) |
BLOBNBOX * | AdjacentBlob (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) |
WidthCallback * | WidthCB () |
const ICOORD & | image_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) |
TabVector * | RightTabForBox (const TBOX &box, bool crossing, bool extended) |
TabVector * | LeftTabForBox (const TBOX &box, bool crossing, bool extended) |
void | SetupTabSearch (int x, int y, int *min_key, int *max_key) |
ScrollView * | DisplayTabVectors (ScrollView *tab_win) |
Protected Attributes | |
ICOORD | vertical_skew_ |
int | resolution_ |
tesseract::TabFind::TabFind | ( | int | gridsize, | |
const ICOORD & | bleft, | |||
const ICOORD & | tright, | |||
TabVector_LIST * | vlines, | |||
int | vertical_x, | |||
int | vertical_y | |||
) |
tesseract::TabFind::~TabFind | ( | ) | [virtual] |
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 | ) |
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 | |||
) |
TabVector * tesseract::TabFind::LeftTabForBox | ( | const TBOX & | box, | |
bool | crossing, | |||
bool | extended | |||
) | [protected] |
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] |
int tesseract::TabFind::resolution_ [protected] |
ICOORD tesseract::TabFind::vertical_skew_ [protected] |