Definition at line 666 of file paragraphs.cpp.
◆ SimpleClusterer()
tesseract::SimpleClusterer::SimpleClusterer |
( |
int |
max_cluster_width | ) |
|
|
inlineexplicit |
Definition at line 668 of file paragraphs.cpp.
669 : max_cluster_width_(max_cluster_width) {}
◆ Add()
void tesseract::SimpleClusterer::Add |
( |
int |
value | ) |
|
|
inline |
◆ GetClusters()
Definition at line 690 of file paragraphs.cpp.
693 for (
int i = 0; i < values_.
size();) {
697 while (++i < values_.
size() && values_[i] <= lo + max_cluster_width_) {
700 clusters->
push_back(Cluster((hi + lo) / 2, i - orig_i));
◆ size()
int tesseract::SimpleClusterer::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: