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

Function NextLevel

deps/tesseract/classify/kdtree.cpp:41–48  ·  view source on GitHub ↗

Helper function to find the next essential dimension in a cycle.

Source from the content-addressed store, hash-verified

39
40// Helper function to find the next essential dimension in a cycle.
41static int NextLevel(KDTREE *tree, int level) {
42 do {
43 ++level;
44 if (level >= tree->KeySize)
45 level = 0;
46 } while (tree->KeyDesc[level].NonEssential);
47 return level;
48}
49
50//-----------------------------------------------------------------------------
51/** Store the k smallest-keyed key-value pairs. */

Callers 5

KDStoreFunction · 0.85
KDDeleteFunction · 0.85
KDWalkFunction · 0.85
SearchRecMethod · 0.85
WalkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected