|
tesseract
4.0.0-1-g2a2b
|
#include <colpartitiongrid.h>
Public Member Functions | |
| ColPartitionGrid ()=default | |
| ColPartitionGrid (int gridsize, const ICOORD &bleft, const ICOORD &tright) | |
| virtual | ~ColPartitionGrid ()=default |
| void | HandleClick (int x, int y) |
| void | Merges (TessResultCallback2< bool, ColPartition *, TBOX *> *box_cb, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb) |
| bool | MergePart (TessResultCallback2< bool, ColPartition *, TBOX *> *box_cb, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb, ColPartition *part) |
| int | ComputeTotalOverlap (ColPartitionGrid **overlap_grid) |
| void | FindOverlappingPartitions (const TBOX &box, const ColPartition *not_this, ColPartition_CLIST *parts) |
| ColPartition * | BestMergeCandidate (const ColPartition *part, ColPartition_CLIST *candidates, bool debug, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb, int *overlap_increase) |
| void | SplitOverlappingPartitions (ColPartition_LIST *big_parts) |
| bool | GridSmoothNeighbours (BlobTextFlowType source_type, Pix *nontext_map, const TBOX &im_box, const FCOORD &rerotation) |
| void | ReflectInYAxis () |
| void | Deskew (const FCOORD &deskew) |
| void | ExtractPartitionsAsBlocks (BLOCK_LIST *blocks, TO_BLOCK_LIST *to_blocks) |
| void | SetTabStops (TabFind *tabgrid) |
| bool | MakeColPartSets (PartSetVector *part_sets) |
| ColPartitionSet * | MakeSingleColumnSet (WidthCallback *cb) |
| void | ClaimBoxes () |
| void | ReTypeBlobs (BLOBNBOX_LIST *im_blobs) |
| void | RecomputeBounds (int gridsize, const ICOORD &bleft, const ICOORD &tright, const ICOORD &vertical) |
| void | GridFindMargins (ColPartitionSet **best_columns) |
| void | ListFindMargins (ColPartitionSet **best_columns, ColPartition_LIST *parts) |
| void | DeleteParts () |
| void | DeleteUnknownParts (TO_BLOCK *block) |
| void | DeleteNonLeaderParts () |
| void | FindFigureCaptions () |
| void | FindPartitionPartners () |
| void | FindPartitionPartners (bool upper, ColPartition *part) |
| void | FindVPartitionPartners (bool to_the_left, ColPartition *part) |
| void | RefinePartitionPartners (bool get_desperate) |
Public Member Functions inherited from tesseract::BBGrid< ColPartition, ColPartition_CLIST, ColPartition_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)(ColPartition *)) |
| void | InsertBBox (bool h_spread, bool v_spread, ColPartition *bbox) |
| void | InsertPixPtBBox (int left, int bottom, Pix *pix, ColPartition *bbox) |
| void | RemoveBBox (ColPartition *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< ColPartition, ColPartition_CLIST, ColPartition_C_IT > | |
| ColPartition_CLIST * | grid_ |
Protected Attributes inherited from tesseract::GridBase | |
| int | gridsize_ |
| int | gridwidth_ |
| int | gridheight_ |
| int | gridbuckets_ |
| ICOORD | bleft_ |
| ICOORD | tright_ |
Definition at line 33 of file colpartitiongrid.h.
|
default |
| tesseract::ColPartitionGrid::ColPartitionGrid | ( | int | gridsize, |
| const ICOORD & | bleft, | ||
| const ICOORD & | tright | ||
| ) |
Definition at line 69 of file colpartitiongrid.cpp.
|
virtualdefault |
| ColPartition * tesseract::ColPartitionGrid::BestMergeCandidate | ( | const ColPartition * | part, |
| ColPartition_CLIST * | candidates, | ||
| bool | debug, | ||
| TessResultCallback2< bool, const ColPartition *, const ColPartition *> * | confirm_cb, | ||
| int * | overlap_increase | ||
| ) |
Definition at line 406 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::ClaimBoxes | ( | ) |
Definition at line 864 of file colpartitiongrid.cpp.
| int tesseract::ColPartitionGrid::ComputeTotalOverlap | ( | ColPartitionGrid ** | overlap_grid | ) |
Definition at line 319 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::DeleteNonLeaderParts | ( | ) |
Definition at line 1043 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::DeleteParts | ( | ) |
Definition at line 1009 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::DeleteUnknownParts | ( | TO_BLOCK * | block | ) |
Definition at line 1024 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::Deskew | ( | const FCOORD & | deskew | ) |
Definition at line 736 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::ExtractPartitionsAsBlocks | ( | BLOCK_LIST * | blocks, |
| TO_BLOCK_LIST * | to_blocks | ||
| ) |
Definition at line 675 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::FindFigureCaptions | ( | ) |
Definition at line 1061 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::FindOverlappingPartitions | ( | const TBOX & | box, |
| const ColPartition * | not_this, | ||
| ColPartition_CLIST * | parts | ||
| ) |
Definition at line 353 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::FindPartitionPartners | ( | ) |
Definition at line 1186 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::FindPartitionPartners | ( | bool | upper, |
| ColPartition * | part | ||
| ) |
Definition at line 1203 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::FindVPartitionPartners | ( | bool | to_the_left, |
| ColPartition * | part | ||
| ) |
Definition at line 1248 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::GridFindMargins | ( | ColPartitionSet ** | best_columns | ) |
Definition at line 967 of file colpartitiongrid.cpp.
| bool tesseract::ColPartitionGrid::GridSmoothNeighbours | ( | BlobTextFlowType | source_type, |
| Pix * | nontext_map, | ||
| const TBOX & | im_box, | ||
| const FCOORD & | rerotation | ||
| ) |
Definition at line 625 of file colpartitiongrid.cpp.
|
virtual |
Reimplemented from tesseract::BBGrid< ColPartition, ColPartition_CLIST, ColPartition_C_IT >.
Definition at line 76 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::ListFindMargins | ( | ColPartitionSet ** | best_columns, |
| ColPartition_LIST * | parts | ||
| ) |
Definition at line 991 of file colpartitiongrid.cpp.
| bool tesseract::ColPartitionGrid::MakeColPartSets | ( | PartSetVector * | part_sets | ) |
Definition at line 784 of file colpartitiongrid.cpp.
| ColPartitionSet * tesseract::ColPartitionGrid::MakeSingleColumnSet | ( | WidthCallback * | cb | ) |
Definition at line 822 of file colpartitiongrid.cpp.
| bool tesseract::ColPartitionGrid::MergePart | ( | TessResultCallback2< bool, ColPartition *, TBOX *> * | box_cb, |
| TessResultCallback2< bool, const ColPartition *, const ColPartition *> * | confirm_cb, | ||
| ColPartition * | part | ||
| ) |
Definition at line 123 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::Merges | ( | TessResultCallback2< bool, ColPartition *, TBOX *> * | box_cb, |
| TessResultCallback2< bool, const ColPartition *, const ColPartition *> * | confirm_cb | ||
| ) |
Definition at line 102 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::RecomputeBounds | ( | int | gridsize, |
| const ICOORD & | bleft, | ||
| const ICOORD & | tright, | ||
| const ICOORD & | vertical | ||
| ) |
Definition at line 938 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::RefinePartitionPartners | ( | bool | get_desperate | ) |
Definition at line 1294 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::ReflectInYAxis | ( | ) |
Definition at line 647 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::ReTypeBlobs | ( | BLOBNBOX_LIST * | im_blobs | ) |
Definition at line 877 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::SetTabStops | ( | TabFind * | tabgrid | ) |
Definition at line 760 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::SplitOverlappingPartitions | ( | ColPartition_LIST * | big_parts | ) |
Definition at line 515 of file colpartitiongrid.cpp.