Definition at line 705 of file paragraphs.cpp.
◆ SimpleClusterer()
tesseract::SimpleClusterer::SimpleClusterer |
( |
int |
max_cluster_width | ) |
|
|
inlineexplicit |
Definition at line 707 of file paragraphs.cpp.
707 : max_cluster_width_(max_cluster_width) {}
◆ Add()
void tesseract::SimpleClusterer::Add |
( |
int |
value | ) |
|
|
inline |
◆ GetClusters()
void tesseract::SimpleClusterer::GetClusters |
( |
std::vector< Cluster > * |
clusters | ) |
|
Definition at line 732 of file paragraphs.cpp.
734 std::sort(values_.begin(), values_.end());
735 for (
unsigned i = 0; i < values_.size();) {
739 while (++i < values_.size() && values_[i] <= lo + max_cluster_width_) {
742 clusters->push_back(Cluster((hi + lo) / 2, i - orig_i));
◆ size()
size_t tesseract::SimpleClusterer::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: