Tesseract 3.01
tesseract::StrokeWidth Class Reference

#include <strokewidth.h>

Inheritance diagram for tesseract::StrokeWidth:
tesseract::BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT > tesseract::GridBase

List of all members.

Public Member Functions

 StrokeWidth (int gridsize, const ICOORD &bleft, const ICOORD &tright)
virtual ~StrokeWidth ()
bool TestVerticalTextDirection (bool cjk_merge, TO_BLOCK *block, TabFind *line_grid, BLOBNBOX_CLIST *osd_blobs)
void CorrectForRotation (const FCOORD &rotation, TO_BLOCK *block)
void FindLeaderPartitions (TO_BLOCK *block, TabFind *line_grid)
virtual void HandleClick (int x, int y)
void InsertBlobsOld (TO_BLOCK *block, TabFind *line_grid)
void MoveGoodLargeBlobs (int resolution, TO_BLOCK *block)

Detailed Description

The StrokeWidth class holds all the normal and large blobs. It is used to find good large blobs and move them to the normal blobs by virtue of having a reasonable strokewidth compatible neighbour.


Constructor & Destructor Documentation

tesseract::StrokeWidth::StrokeWidth ( int  gridsize,
const ICOORD bleft,
const ICOORD tright 
)
tesseract::StrokeWidth::~StrokeWidth ( ) [virtual]

Member Function Documentation

void tesseract::StrokeWidth::CorrectForRotation ( const FCOORD rotation,
TO_BLOCK block 
)
void tesseract::StrokeWidth::FindLeaderPartitions ( TO_BLOCK block,
TabFind line_grid 
)
void tesseract::StrokeWidth::HandleClick ( int  x,
int  y 
) [virtual]

Handles a click event in a display window.

Reimplemented from tesseract::BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT >.

void tesseract::StrokeWidth::InsertBlobsOld ( TO_BLOCK block,
TabFind line_grid 
)
void tesseract::StrokeWidth::MoveGoodLargeBlobs ( int  resolution,
TO_BLOCK block 
)

Moves the large blobs that have good stroke-width neighbours to the normal blobs list.

bool tesseract::StrokeWidth::TestVerticalTextDirection ( bool  cjk_merge,
TO_BLOCK block,
TabFind line_grid,
BLOBNBOX_CLIST *  osd_blobs 
)

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines