19 #ifndef TESSERACT_CCMAIN_PARAGRAPHS_INTERNAL_H_ 20 #define TESSERACT_CCMAIN_PARAGRAPHS_INTERNAL_H_ 43 bool *is_list,
bool *starts_idea,
bool *ends_idea);
48 bool *is_list,
bool *starts_idea,
bool *ends_idea);
214 int start,
int end)
const;
240 int row_start,
int row_end,
254 void CalculateOpenModels(
int row_start,
int row_end);
257 return open_models_[row - row_start_ + 1];
285 int row_start,
int row_end);
307 PARA_LIST *paragraphs);
311 #endif // TESSERACT_CCMAIN_PARAGRAPHS_INTERNAL_H_
GenericVector< ParagraphModel * > & models()
bool CrownCompatible(const GenericVector< RowScratchRegisters > *rows, int a, int b, const ParagraphModel *model)
int InterwordSpace(const GenericVector< RowScratchRegisters > &rows, int row_start, int row_end)
int UnicodeFor(const UNICHARSET *u, const WERD_CHOICE *werd, int pos)
ParagraphTheory(GenericVector< ParagraphModel *> *models)
void RightWordAttributes(const UNICHARSET *unicharset, const WERD_CHOICE *werd, const STRING &utf8, bool *is_list, bool *starts_idea, bool *ends_idea)
const ParagraphModel * kCrownRight
bool ValidFirstLine(const GenericVector< RowScratchRegisters > *rows, int row, const ParagraphModel *model)
const ParagraphModel * model
void DiscardUnusedModels(const SetOfModels &used_models)
static void AppendDebugHeaderFields(GenericVector< STRING > *header)
const ParagraphModel * AddModel(const ParagraphModel &model)
void NonCenteredModels(SetOfModels *models)
const ParagraphModel * UniqueBodyHypothesis() const
void LeftWordAttributes(const UNICHARSET *unicharset, const WERD_CHOICE *werd, const STRING &utf8, bool *is_list, bool *starts_idea, bool *ends_idea)
const GenericVector< ParagraphModel * > & models() const
void StartHypotheses(SetOfModels *models) const
LineHypothesis & operator=(const LineHypothesis &other)
LineType GetLineType() const
void CanonicalizeDetectionResults(GenericVector< PARA *> *row_owners, PARA_LIST *paragraphs)
void RecomputeMarginsAndClearHypotheses(GenericVector< RowScratchRegisters > *rows, int start, int end, int percentile)
const ParagraphModel * kCrownLeft
void AddStartLine(const ParagraphModel *model)
bool operator==(const LineHypothesis &other) const
int IndexOf(const ParagraphModel *model) const
void DiscardNonMatchingHypotheses(const SetOfModels &models)
int OffsideIndent(tesseract::ParagraphJustification just) const
bool AsciiLikelyListItem(const STRING &word)
void Init(const RowInfo &row)
int AlignsideIndent(tesseract::ParagraphJustification just) const
bool StrongModel(const ParagraphModel *model)
bool ValidBodyLine(const GenericVector< RowScratchRegisters > *rows, int row, const ParagraphModel *model)
void AddBodyLine(const ParagraphModel *model)
bool RowsFitModel(const GenericVector< RowScratchRegisters > *rows, int start, int end, const ParagraphModel *model)
ParagraphModelSmearer(GenericVector< RowScratchRegisters > *rows, int row_start, int row_end, ParagraphTheory *theory)
void StrongHypotheses(SetOfModels *models) const
LineHypothesis(LineType line_type, const ParagraphModel *m)
bool FirstWordWouldHaveFit(const RowScratchRegisters &before, const RowScratchRegisters &after, tesseract::ParagraphJustification justification)
void NonNullHypotheses(SetOfModels *models) const
const ParagraphModel * UniqueStartHypothesis() const
void AppendDebugInfo(const ParagraphTheory &theory, GenericVector< STRING > *dbg) const
const ParagraphModel * Fits(const GenericVector< RowScratchRegisters > *rows, int start, int end) const
LineHypothesis(const LineHypothesis &other)