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