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

Method SetPartitionTypes

deps/tesseract/textord/colfind.cpp:1338–1346  ·  view source on GitHub ↗

For every ColPartition in the grid, sets its type based on position in the columns.

Source from the content-addressed store, hash-verified

1336// For every ColPartition in the grid, sets its type based on position
1337// in the columns.
1338void ColumnFinder::SetPartitionTypes() {
1339 GridSearch<ColPartition, ColPartition_CLIST, ColPartition_C_IT>
1340 gsearch(&part_grid_);
1341 gsearch.StartFullSearch();
1342 ColPartition* part;
1343 while ((part = gsearch.NextFullSearch()) != NULL) {
1344 part->SetPartitionType(resolution_, best_columns_[gsearch.GridY()]);
1345 }
1346}
1347
1348// Only images remain with multiple types in a run of partners.
1349// Sets the type of all in the group to the maximum of the group.

Callers

nothing calls this directly

Calls 4

StartFullSearchMethod · 0.80
NextFullSearchMethod · 0.80
SetPartitionTypeMethod · 0.80
GridYMethod · 0.80

Tested by

no test coverage detected