#include <paragraphs_internal.h>
Definition at line 191 of file paragraphs_internal.h.
◆ ParagraphTheory()
tesseract::ParagraphTheory::ParagraphTheory |
( |
std::vector< ParagraphModel * > * |
models | ) |
|
|
inlineexplicit |
◆ AddModel()
Definition at line 1267 of file paragraphs.cpp.
1268 for (
const auto &m : *models_) {
1269 if (m->Comparable(model)) {
1273 auto *m =
new ParagraphModel(model);
1274 models_->push_back(m);
void push_back_new(std::vector< T > &vector, const T &data)
◆ DiscardUnusedModels()
void tesseract::ParagraphTheory::DiscardUnusedModels |
( |
const SetOfModels & |
used_models | ) |
|
Definition at line 1279 of file paragraphs.cpp.
1281 for (
size_t r = 0; r < models_->size(); r++) {
1282 ParagraphModel *m = (*models_)[r];
1283 if (!
contains(used_models,
static_cast<const ParagraphModel *
>(m)) &&
contains(models_we_added_, m)) {
bool contains(const std::vector< T > &data, const T &value)
◆ Fits()
Definition at line 1298 of file paragraphs.cpp.
1300 for (
const auto *model : *models_) {
bool RowsFitModel(const std::vector< RowScratchRegisters > *rows, int start, int end, const ParagraphModel *model)
◆ IndexOf()
int tesseract::ParagraphTheory::IndexOf |
( |
const ParagraphModel * |
model | ) |
const |
◆ models() [1/2]
◆ models() [2/2]
const std::vector<ParagraphModel *>& tesseract::ParagraphTheory::models |
( |
| ) |
const |
|
inline |
◆ NonCenteredModels()
void tesseract::ParagraphTheory::NonCenteredModels |
( |
SetOfModels * |
models | ) |
|
The documentation for this class was generated from the following files: