|
Tesseract
3.02
|
#include <colpartitiongrid.h>
Public Member Functions | |
| ColPartitionGrid () | |
| ColPartitionGrid (int gridsize, const ICOORD &bleft, const ICOORD &tright) | |
| virtual | ~ColPartitionGrid () |
| 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) |
| 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 | ComputePartitionColors (Pix *scaled_color, int scaled_factor, const FCOORD &rerotation) |
| void | ReflectInYAxis () |
| void | Deskew (const FCOORD &deskew) |
| 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 | 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 () | |
| GridBase (int gridsize, const ICOORD &bleft, const ICOORD &tright) | |
| virtual | ~GridBase () |
| 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.
| tesseract::ColPartitionGrid::ColPartitionGrid | ( | ) |
Definition at line 71 of file colpartitiongrid.cpp.
| tesseract::ColPartitionGrid::ColPartitionGrid | ( | int | gridsize, |
| const ICOORD & | bleft, | ||
| const ICOORD & | tright | ||
| ) |
Definition at line 73 of file colpartitiongrid.cpp.
|
virtual |
Definition at line 79 of file colpartitiongrid.cpp.
| 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 379 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::ClaimBoxes | ( | ) |
Definition at line 812 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::ComputePartitionColors | ( | Pix * | scaled_color, |
| int | scaled_factor, | ||
| const FCOORD & | rerotation | ||
| ) |
Definition at line 620 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::DeleteParts | ( | ) |
Definition at line 950 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::DeleteUnknownParts | ( | TO_BLOCK * | block | ) |
Definition at line 965 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::Deskew | ( | const FCOORD & | deskew | ) |
Definition at line 684 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::FindFigureCaptions | ( | ) |
Definition at line 984 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::FindOverlappingPartitions | ( | const TBOX & | box, |
| const ColPartition * | not_this, | ||
| ColPartition_CLIST * | parts | ||
| ) |
Definition at line 326 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::FindPartitionPartners | ( | ) |
Definition at line 1109 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::FindPartitionPartners | ( | bool | upper, |
| ColPartition * | part | ||
| ) |
Definition at line 1126 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::FindVPartitionPartners | ( | bool | to_the_left, |
| ColPartition * | part | ||
| ) |
Definition at line 1171 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::GridFindMargins | ( | ColPartitionSet ** | best_columns | ) |
Definition at line 908 of file colpartitiongrid.cpp.
| bool tesseract::ColPartitionGrid::GridSmoothNeighbours | ( | BlobTextFlowType | source_type, |
| Pix * | nontext_map, | ||
| const TBOX & | im_box, | ||
| const FCOORD & | rerotation | ||
| ) |
Definition at line 598 of file colpartitiongrid.cpp.
|
virtual |
Reimplemented from tesseract::BBGrid< ColPartition, ColPartition_CLIST, ColPartition_C_IT >.
Definition at line 83 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::ListFindMargins | ( | ColPartitionSet ** | best_columns, |
| ColPartition_LIST * | parts | ||
| ) |
Definition at line 932 of file colpartitiongrid.cpp.
| bool tesseract::ColPartitionGrid::MakeColPartSets | ( | PartSetVector * | part_sets | ) |
Definition at line 732 of file colpartitiongrid.cpp.
| ColPartitionSet * tesseract::ColPartitionGrid::MakeSingleColumnSet | ( | WidthCallback * | cb | ) |
Definition at line 770 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 130 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 109 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::RecomputeBounds | ( | int | gridsize, |
| const ICOORD & | bleft, | ||
| const ICOORD & | tright, | ||
| const ICOORD & | vertical | ||
| ) |
Definition at line 879 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::RefinePartitionPartners | ( | bool | get_desperate | ) |
Definition at line 1217 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::ReflectInYAxis | ( | ) |
Definition at line 660 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::ReTypeBlobs | ( | BLOBNBOX_LIST * | im_blobs | ) |
Definition at line 825 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::SetTabStops | ( | TabFind * | tabgrid | ) |
Definition at line 708 of file colpartitiongrid.cpp.
| void tesseract::ColPartitionGrid::SplitOverlappingPartitions | ( | ColPartition_LIST * | big_parts | ) |
Definition at line 488 of file colpartitiongrid.cpp.