tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
19 #ifndef TESSERACT_TEXTORD_COLPARTITIONGRID_H_
20 #define TESSERACT_TEXTORD_COLPARTITIONGRID_H_
74 ColPartition_CLIST* parts);
83 const ColPartition* part, ColPartition_CLIST* candidates,
bool debug,
86 int* overlap_increase);
106 const TBOX& im_box,
const FCOORD& rerotation);
158 ColPartition_LIST* parts);
194 bool debug, ColPartition_CLIST* candidates);
207 bool SmoothRegionType(Pix* nontext_map,
230 void AccumulatePartDistances(
const ColPartition& base_part,
231 const ICOORD& dist_scaling,
232 const TBOX& search_box,
246 int FindMargin(
int x,
bool right_to_left,
int x_limit,
252 #endif // TESSERACT_TEXTORD_COLPARTITIONGRID_H_
ColPartitionSet * MakeSingleColumnSet(WidthCallback cb)
void GridFindMargins(ColPartitionSet **best_columns)
void DeleteUnknownParts(TO_BLOCK *block)
ColPartition * BestMergeCandidate(const ColPartition *part, ColPartition_CLIST *candidates, bool debug, std::function< bool(const ColPartition *, const ColPartition *)> confirm_cb, int *overlap_increase)
void FindFigureCaptions()
std::function< bool(int)> WidthCallback
void SplitOverlappingPartitions(ColPartition_LIST *big_parts)
void ListFindMargins(ColPartitionSet **best_columns, ColPartition_LIST *parts)
void HandleClick(int x, int y) override
const ICOORD & tright() const
void DeleteNonLeaderParts()
int ComputeTotalOverlap(ColPartitionGrid **overlap_grid)
void Deskew(const FCOORD &deskew)
void RefinePartitionPartners(bool get_desperate)
void FindOverlappingPartitions(const TBOX &box, const ColPartition *not_this, ColPartition_CLIST *parts)
void FindVPartitionPartners(bool to_the_left, ColPartition *part)
bool MergePart(std::function< bool(ColPartition *, TBOX *)> box_cb, std::function< bool(const ColPartition *, const ColPartition *)> confirm_cb, ColPartition *part)
void RecomputeBounds(int gridsize, const ICOORD &bleft, const ICOORD &tright, const ICOORD &vertical)
void Merges(std::function< bool(ColPartition *, TBOX *)> box_cb, std::function< bool(const ColPartition *, const ColPartition *)> confirm_cb)
void FindPartitionPartners()
~ColPartitionGrid() override=default
void ReTypeBlobs(BLOBNBOX_LIST *im_blobs)
void SetTabStops(TabFind *tabgrid)
bool GridSmoothNeighbours(BlobTextFlowType source_type, Pix *nontext_map, const TBOX &im_box, const FCOORD &rerotation)
ColPartitionGrid()=default
bool MakeColPartSets(PartSetVector *part_sets)
const ICOORD & bleft() const
void ExtractPartitionsAsBlocks(BLOCK_LIST *blocks, TO_BLOCK_LIST *to_blocks)