List of all members.
Detailed Description
Definition at line 663 of file paragraphs.cpp.
Constructor & Destructor Documentation
tesseract::SimpleClusterer::SimpleClusterer |
( |
int |
max_cluster_width | ) |
|
|
inlineexplicit |
Definition at line 665 of file paragraphs.cpp.
: max_cluster_width_(max_cluster_width) {}
Member Function Documentation
void tesseract::SimpleClusterer::Add |
( |
int |
value | ) |
|
|
inline |
Definition at line 687 of file paragraphs.cpp.
{
for (
int i = 0; i < values_.
size();) {
int orig_i = i;
int lo = values_[i];
int hi = lo;
while (++i < values_.
size() && values_[i] <= lo + max_cluster_width_) {
hi = values_[i];
}
clusters->
push_back(Cluster((hi + lo) / 2, i - orig_i));
}
}
int tesseract::SimpleClusterer::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: