20 #ifndef TESSERACT_TEXTORD_COLPARTITIONGRID_H_ 21 #define TESSERACT_TEXTORD_COLPARTITIONGRID_H_ 24 #include "colpartition.h" 25 #include "colpartitionset.h" 75 ColPartition_CLIST* parts);
84 const ColPartition* part, ColPartition_CLIST* candidates,
bool debug,
87 int* overlap_increase);
107 const TBOX& im_box,
const FCOORD& rerotation);
159 ColPartition_LIST* parts);
195 bool debug, ColPartition_CLIST* candidates);
232 const ICOORD& dist_scaling,
233 const TBOX& search_box,
247 int FindMargin(
int x,
bool right_to_left,
int x_limit,
253 #endif // TESSERACT_TEXTORD_COLPARTITIONGRID_H_ void GridFindMargins(ColPartitionSet **best_columns)
Definition: colpartitiongrid.cpp:967
Definition: colpartitiongrid.h:33
void FindVPartitionPartners(bool to_the_left, ColPartition *part)
Definition: colpartitiongrid.cpp:1248
ColPartitionSet * MakeSingleColumnSet(WidthCallback *cb)
Definition: colpartitiongrid.cpp:822
Definition: colpartitionset.h:40
void Deskew(const FCOORD &deskew)
Definition: colpartitiongrid.cpp:736
void AccumulatePartDistances(const ColPartition &base_part, const ICOORD &dist_scaling, const TBOX &search_box, Pix *nontext_map, const TBOX &im_box, const FCOORD &rerotation, bool debug, GenericVector< int > *dists)
Definition: colpartitiongrid.cpp:1608
bool MakeColPartSets(PartSetVector *part_sets)
Definition: colpartitiongrid.cpp:784
void FindFigureCaptions()
Definition: colpartitiongrid.cpp:1061
void HandleClick(int x, int y)
Definition: colpartitiongrid.cpp:76
void RecomputeBounds(int gridsize, const ICOORD &bleft, const ICOORD &tright, const ICOORD &vertical)
Definition: colpartitiongrid.cpp:938
Definition: baseapi.cpp:94
void FindPartitionMargins(ColPartitionSet *columns, ColPartition *part)
Definition: colpartitiongrid.cpp:1684
bool SmoothRegionType(Pix *nontext_map, const TBOX &im_box, const FCOORD &rerotation, bool debug, ColPartition *part)
Definition: colpartitiongrid.cpp:1401
void ReflectInYAxis()
Definition: colpartitiongrid.cpp:647
void DeleteParts()
Definition: colpartitiongrid.cpp:1009
int ComputeTotalOverlap(ColPartitionGrid **overlap_grid)
Definition: colpartitiongrid.cpp:319
bool MergePart(TessResultCallback2< bool, ColPartition *, TBOX *> *box_cb, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb, ColPartition *part)
Definition: colpartitiongrid.cpp:123
void SplitOverlappingPartitions(ColPartition_LIST *big_parts)
Definition: colpartitiongrid.cpp:515
const ICOORD & bleft() const
Definition: bbgrid.h:73
int gridsize() const
Definition: bbgrid.h:64
void Merges(TessResultCallback2< bool, ColPartition *, TBOX *> *box_cb, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb)
Definition: colpartitiongrid.cpp:102
void DeleteUnknownParts(TO_BLOCK *block)
Definition: colpartitiongrid.cpp:1024
void ReTypeBlobs(BLOBNBOX_LIST *im_blobs)
Definition: colpartitiongrid.cpp:877
void SetTabStops(TabFind *tabgrid)
Definition: colpartitiongrid.cpp:760
void ExtractPartitionsAsBlocks(BLOCK_LIST *blocks, TO_BLOCK_LIST *to_blocks)
Definition: colpartitiongrid.cpp:675
virtual ~ColPartitionGrid()=default
Definition: tesscallback.h:1673
void DeleteNonLeaderParts()
Definition: colpartitiongrid.cpp:1043
integer coordinate
Definition: points.h:32
bool GridSmoothNeighbours(BlobTextFlowType source_type, Pix *nontext_map, const TBOX &im_box, const FCOORD &rerotation)
Definition: colpartitiongrid.cpp:625
void ClaimBoxes()
Definition: colpartitiongrid.cpp:864
BlobRegionType SmoothInOneDirection(BlobNeighbourDir direction, Pix *nontext_map, const TBOX &im_box, const FCOORD &rerotation, bool debug, const ColPartition &part, int *best_distance)
Definition: colpartitiongrid.cpp:1525
void ListFindMargins(ColPartitionSet **best_columns, ColPartition_LIST *parts)
Definition: colpartitiongrid.cpp:991
ColPartitionGrid()=default
void RefinePartitionPartners(bool get_desperate)
Definition: colpartitiongrid.cpp:1294
Definition: blobbox.h:705
void FindMergeCandidates(const ColPartition *part, const TBOX &search_box, bool debug, ColPartition_CLIST *candidates)
Definition: colpartitiongrid.cpp:1317
ColPartition * BestMergeCandidate(const ColPartition *part, ColPartition_CLIST *candidates, bool debug, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb, int *overlap_increase)
Definition: colpartitiongrid.cpp:406
const ICOORD & tright() const
Definition: bbgrid.h:76
void FindPartitionPartners()
Definition: colpartitiongrid.cpp:1186
int FindMargin(int x, bool right_to_left, int x_limit, int y_bottom, int y_top, const ColPartition *not_this)
Definition: colpartitiongrid.cpp:1715
Definition: colpartition.h:68
void FindOverlappingPartitions(const TBOX &box, const ColPartition *not_this, ColPartition_CLIST *parts)
Definition: colpartitiongrid.cpp:353