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

Method Classified

deps/tesseract/ccstruct/matrix.cpp:36–45  ·  view source on GitHub ↗

Returns true if there are any real classification results.

Source from the content-addressed store, hash-verified

34
35// Returns true if there are any real classification results.
36bool MATRIX::Classified(int col, int row, int wildcard_id) const {
37 if (get(col, row) == NOT_CLASSIFIED) return false;
38 BLOB_CHOICE_IT b_it(get(col, row));
39 for (b_it.mark_cycle_pt(); !b_it.cycled_list(); b_it.forward()) {
40 BLOB_CHOICE* choice = b_it.data();
41 if (choice->IsClassified())
42 return true;
43 }
44 return false;
45}
46
47// Expands the existing matrix in-place to make the band wider, without
48// losing any existing data.

Callers 5

SegSearchMethod · 0.80
GenerateInitialMethod · 0.80
GenerateFromPathMethod · 0.80
GeneratePainPointMethod · 0.80
InitForSegSearchMethod · 0.80

Calls 6

getFunction · 0.85
dataMethod · 0.80
IsClassifiedMethod · 0.80
mark_cycle_ptMethod · 0.45
cycled_listMethod · 0.45
forwardMethod · 0.45

Tested by

no test coverage detected