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);
112 const FCOORD& rerotation);
164 ColPartition_LIST* parts);
200 bool debug, ColPartition_CLIST* candidates);
213 bool SmoothRegionType(Pix* nontext_map,
236 void AccumulatePartDistances(
const ColPartition& base_part,
237 const ICOORD& dist_scaling,
238 const TBOX& search_box,
252 int FindMargin(
int x,
bool right_to_left,
int x_limit,
258 #endif // TESSERACT_TEXTORD_COLPARTITIONGRID_H__
void FindFigureCaptions()
const ICOORD & tright() const
void RecomputeBounds(int gridsize, const ICOORD &bleft, const ICOORD &tright, const ICOORD &vertical)
void Merges(TessResultCallback2< bool, ColPartition *, TBOX *> *box_cb, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb)
void SetTabStops(TabFind *tabgrid)
void FindOverlappingPartitions(const TBOX &box, const ColPartition *not_this, ColPartition_CLIST *parts)
void GridFindMargins(ColPartitionSet **best_columns)
void DeleteNonLeaderParts()
void FindVPartitionPartners(bool to_the_left, ColPartition *part)
ColPartitionSet * MakeSingleColumnSet(WidthCallback *cb)
bool MakeColPartSets(PartSetVector *part_sets)
ColPartition * BestMergeCandidate(const ColPartition *part, ColPartition_CLIST *candidates, bool debug, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb, int *overlap_increase)
void HandleClick(int x, int y)
void DeleteUnknownParts(TO_BLOCK *block)
void ComputePartitionColors(Pix *scaled_color, int scaled_factor, const FCOORD &rerotation)
void Deskew(const FCOORD &deskew)
void ListFindMargins(ColPartitionSet **best_columns, ColPartition_LIST *parts)
int direction(EDGEPT *point)
void ReTypeBlobs(BLOBNBOX_LIST *im_blobs)
void SplitOverlappingPartitions(ColPartition_LIST *big_parts)
const ICOORD & bleft() const
int ComputeTotalOverlap(ColPartitionGrid **overlap_grid)
bool GridSmoothNeighbours(BlobTextFlowType source_type, Pix *nontext_map, const TBOX &im_box, const FCOORD &rerotation)
void RefinePartitionPartners(bool get_desperate)
bool MergePart(TessResultCallback2< bool, ColPartition *, TBOX *> *box_cb, TessResultCallback2< bool, const ColPartition *, const ColPartition *> *confirm_cb, ColPartition *part)
void ExtractPartitionsAsBlocks(BLOCK_LIST *blocks, TO_BLOCK_LIST *to_blocks)
virtual ~ColPartitionGrid()
void FindPartitionPartners()