tesseract
4.0.0-1-g2a2b
|
#include <strokewidth.h>
Public Member Functions | |
StrokeWidth (int gridsize, const ICOORD &bleft, const ICOORD &tright) | |
virtual | ~StrokeWidth () |
void | SetNeighboursOnMediumBlobs (TO_BLOCK *block) |
void | FindTextlineDirectionAndFixBrokenCJK (PageSegMode pageseg_mode, bool cjk_merge, TO_BLOCK *input_block) |
bool | TestVerticalTextDirection (double find_vertical_text_ratio, TO_BLOCK *block, BLOBNBOX_CLIST *osd_blobs) |
void | CorrectForRotation (const FCOORD &rerotation, ColPartitionGrid *part_grid) |
void | FindLeaderPartitions (TO_BLOCK *block, ColPartitionGrid *part_grid) |
void | RemoveLineResidue (ColPartition_LIST *big_part_list) |
void | GradeBlobsIntoPartitions (PageSegMode pageseg_mode, const FCOORD &rerotation, TO_BLOCK *block, Pix *nontext_pix, const DENORM *denorm, bool cjk_script, TextlineProjection *projection, BLOBNBOX_LIST *diacritic_blobs, ColPartitionGrid *part_grid, ColPartition_LIST *big_parts) |
virtual void | HandleClick (int x, int y) |
Public Member Functions inherited from tesseract::BlobGrid | |
BlobGrid (int gridsize, const ICOORD &bleft, const ICOORD &tright) | |
virtual | ~BlobGrid () |
void | InsertBlobList (BLOBNBOX_LIST *blobs) |
Public Member Functions inherited from tesseract::BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT > | |
BBGrid () | |
BBGrid (int gridsize, const ICOORD &bleft, const ICOORD &tright) | |
virtual | ~BBGrid () |
void | Init (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
void | Clear () |
void | ClearGridData (void(*free_method)(BLOBNBOX *)) |
void | InsertBBox (bool h_spread, bool v_spread, BLOBNBOX *bbox) |
void | InsertPixPtBBox (int left, int bottom, Pix *pix, BLOBNBOX *bbox) |
void | RemoveBBox (BLOBNBOX *bbox) |
bool | RectangleEmpty (const TBOX &rect) |
IntGrid * | CountCellElements () |
ScrollView * | MakeWindow (int x, int y, const char *window_name) |
void | DisplayBoxes (ScrollView *window) |
void | AssertNoDuplicates () |
Public Member Functions inherited from tesseract::GridBase | |
GridBase ()=default | |
GridBase (int gridsize, const ICOORD &bleft, const ICOORD &tright) | |
virtual | ~GridBase () |
void | Init (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
int | gridsize () const |
int | gridwidth () const |
int | gridheight () const |
const ICOORD & | bleft () const |
const ICOORD & | tright () const |
void | GridCoords (int x, int y, int *grid_x, int *grid_y) const |
void | ClipGridCoords (int *x, int *y) const |
Additional Inherited Members | |
Protected Attributes inherited from tesseract::BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT > | |
BLOBNBOX_CLIST * | grid_ |
Protected Attributes inherited from tesseract::GridBase | |
int | gridsize_ |
int | gridwidth_ |
int | gridheight_ |
int | gridbuckets_ |
ICOORD | bleft_ |
ICOORD | tright_ |
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.
Definition at line 57 of file strokewidth.h.
Definition at line 110 of file strokewidth.cpp.
|
virtual |
Definition at line 123 of file strokewidth.cpp.
void tesseract::StrokeWidth::CorrectForRotation | ( | const FCOORD & | rerotation, |
ColPartitionGrid * | part_grid | ||
) |
Definition at line 251 of file strokewidth.cpp.
void tesseract::StrokeWidth::FindLeaderPartitions | ( | TO_BLOCK * | block, |
ColPartitionGrid * | part_grid | ||
) |
Definition at line 260 of file strokewidth.cpp.
void tesseract::StrokeWidth::FindTextlineDirectionAndFixBrokenCJK | ( | PageSegMode | pageseg_mode, |
bool | cjk_merge, | ||
TO_BLOCK * | input_block | ||
) |
Definition at line 157 of file strokewidth.cpp.
void tesseract::StrokeWidth::GradeBlobsIntoPartitions | ( | PageSegMode | pageseg_mode, |
const FCOORD & | rerotation, | ||
TO_BLOCK * | block, | ||
Pix * | nontext_pix, | ||
const DENORM * | denorm, | ||
bool | cjk_script, | ||
TextlineProjection * | projection, | ||
BLOBNBOX_LIST * | diacritic_blobs, | ||
ColPartitionGrid * | part_grid, | ||
ColPartition_LIST * | big_parts | ||
) |
Definition at line 344 of file strokewidth.cpp.
|
virtual |
Handles a click event in a display window.
Reimplemented from tesseract::BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT >.
Definition at line 401 of file strokewidth.cpp.
void tesseract::StrokeWidth::RemoveLineResidue | ( | ColPartition_LIST * | big_part_list | ) |
Definition at line 280 of file strokewidth.cpp.
void tesseract::StrokeWidth::SetNeighboursOnMediumBlobs | ( | TO_BLOCK * | block | ) |
Definition at line 143 of file strokewidth.cpp.
bool tesseract::StrokeWidth::TestVerticalTextDirection | ( | double | find_vertical_text_ratio, |
TO_BLOCK * | block, | ||
BLOBNBOX_CLIST * | osd_blobs | ||
) |
Definition at line 209 of file strokewidth.cpp.