MCPcopy Create free account
hub / github.com/creatale/node-dv / ValidBodyLine

Function ValidBodyLine

deps/tesseract/ccmain/paragraphs.cpp:1277–1286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1275}
1276
1277bool ValidBodyLine(const GenericVector<RowScratchRegisters> *rows,
1278 int row, const ParagraphModel *model) {
1279 if (!StrongModel(model)) {
1280 tprintf("ValidBodyLine() should only be called with strong models!\n");
1281 }
1282 return StrongModel(model) &&
1283 model->ValidBodyLine(
1284 (*rows)[row].lmargin_, (*rows)[row].lindent_,
1285 (*rows)[row].rindent_, (*rows)[row].rmargin_);
1286}
1287
1288bool CrownCompatible(const GenericVector<RowScratchRegisters> *rows,
1289 int a, int b, const ParagraphModel *model) {

Callers 5

MarkRowsWithModelFunction · 0.85
CalculateOpenModelsMethod · 0.85
SmearMethod · 0.85
RowsFitModelFunction · 0.85

Calls 2

StrongModelFunction · 0.85
ValidBodyLineMethod · 0.80

Tested by

no test coverage detected