20 #ifndef TESSERACT_TEXTORD_COLPARTITIONGRID_H_ 21 #define TESSERACT_TEXTORD_COLPARTITIONGRID_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);
208 bool SmoothRegionType(Pix* nontext_map,
231 void AccumulatePartDistances(
const ColPartition& base_part,
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 ReTypeBlobs(BLOBNBOX_LIST *im_blobs)
void ListFindMargins(ColPartitionSet **best_columns, ColPartition_LIST *parts)
void DeleteUnknownParts(TO_BLOCK *block)
void GridFindMargins(ColPartitionSet **best_columns)
void FindPartitionPartners()
void Merges(TessResultCallback2< bool, ColPartition *, TBOX *> *box_cb, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb)
const ICOORD & bleft() const
virtual ~ColPartitionGrid()=default
int direction(EDGEPT *point)
void HandleClick(int x, int y)
void SplitOverlappingPartitions(ColPartition_LIST *big_parts)
void SetTabStops(TabFind *tabgrid)
bool MergePart(TessResultCallback2< bool, ColPartition *, TBOX *> *box_cb, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb, ColPartition *part)
void FindFigureCaptions()
bool GridSmoothNeighbours(BlobTextFlowType source_type, Pix *nontext_map, const TBOX &im_box, const FCOORD &rerotation)
bool MakeColPartSets(PartSetVector *part_sets)
void FindVPartitionPartners(bool to_the_left, ColPartition *part)
ColPartitionGrid()=default
ColPartition * BestMergeCandidate(const ColPartition *part, ColPartition_CLIST *candidates, bool debug, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb, int *overlap_increase)
void FindOverlappingPartitions(const TBOX &box, const ColPartition *not_this, ColPartition_CLIST *parts)
void RefinePartitionPartners(bool get_desperate)
int ComputeTotalOverlap(ColPartitionGrid **overlap_grid)
ColPartitionSet * MakeSingleColumnSet(WidthCallback *cb)
void Deskew(const FCOORD &deskew)
void ExtractPartitionsAsBlocks(BLOCK_LIST *blocks, TO_BLOCK_LIST *to_blocks)
const ICOORD & tright() const
void DeleteNonLeaderParts()
void RecomputeBounds(int gridsize, const ICOORD &bleft, const ICOORD &tright, const ICOORD &vertical)