tesseract  5.0.0-alpha-619-ge9db
tesseract::SimpleClusterer Class Reference

Public Member Functions

 SimpleClusterer (int max_cluster_width)
 
void Add (int value)
 
int size () const
 
void GetClusters (GenericVector< Cluster > *clusters)
 

Detailed Description

Definition at line 680 of file paragraphs.cpp.

Constructor & Destructor Documentation

◆ SimpleClusterer()

tesseract::SimpleClusterer::SimpleClusterer ( int  max_cluster_width)
inlineexplicit

Definition at line 682 of file paragraphs.cpp.

Member Function Documentation

◆ Add()

void tesseract::SimpleClusterer::Add ( int  value)
inline

Definition at line 684 of file paragraphs.cpp.

◆ GetClusters()

void tesseract::SimpleClusterer::GetClusters ( GenericVector< Cluster > *  clusters)

Definition at line 704 of file paragraphs.cpp.

708  {
709  if (!AcceptableRowArgs(0, 1, __func__, rows, row_start, row_end))
710  return;
711  // First pass: toss all left and right indents into clusterers.
712  SimpleClusterer initial_lefts(tolerance);
713  SimpleClusterer initial_rights(tolerance);
714  GenericVector<Cluster> initial_left_tabs;
715  GenericVector<Cluster> initial_right_tabs;
716  for (int i = row_start; i < row_end; i++) {

◆ size()

int tesseract::SimpleClusterer::size ( ) const
inline

Definition at line 685 of file paragraphs.cpp.


The documentation for this class was generated from the following file:
tesseract::SimpleClusterer::SimpleClusterer
SimpleClusterer(int max_cluster_width)
Definition: paragraphs.cpp:682
GenericVector
Definition: baseapi.h:40