20 #ifndef TESSERACT_TEXTORD_STROKEWIDTH_H__
21 #define TESSERACT_TEXTORD_STROKEWIDTH_H__
34 class ColPartition_LIST;
36 class TextlineProjection;
82 BLOBNBOX_CLIST* osd_blobs);
117 ColPartition_LIST* big_parts);
136 void FindLeadersAndMarkNoise(
TO_BLOCK* block,
137 ColPartition_LIST* leader_parts);
154 void AccumulateOverlaps(
const BLOBNBOX* not_this,
bool debug,
155 int max_size,
int max_dist,
156 TBOX* bbox, BLOBNBOX_CLIST* blobs);
165 void FindTextlineFlowDirection(
bool display_if_debugging);
172 void SetNeighbours(
bool leaders,
bool activate_line_trap,
BLOBNBOX* blob);
183 void SetNeighbourFlows(
BLOBNBOX* blob);
188 void SimplifyObviousNeighbours(
BLOBNBOX* blob);
193 void SmoothNeighbourTypes(
BLOBNBOX* blob,
bool desperate);
205 void FindInitialPartitions(
const FCOORD& rerotation,
208 ColPartition_LIST* big_parts);
235 bool DiacriticXGapFilled(
BlobGrid* grid,
const TBOX& diacritic_box,
236 const TBOX& base_box);
242 void RemoveLargeUnusedBlobs(
TO_BLOCK* block,
244 ColPartition_LIST* big_parts);
251 void MakePartitionsFromCellList(
bool combine,
253 BLOBNBOX_CLIST* cell_list);
271 bool NoNoiseInBetween(
const TBOX& box1,
const TBOX& box2)
const;
275 ScrollView* DisplayGoodBlobs(
const char* window_name,
int x,
int y);
278 ScrollView* DisplayDiacritics(
const char* window_name,
304 #endif // TESSERACT_TEXTORD_STROKEWIDTH_H__