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

Method SpaceCost

deps/tesseract/cube/cube_search_object.cpp:393–399  ·  view source on GitHub ↗

Returns the cost of having a space before the specified segmentation point

Source from the content-addressed store, hash-verified

391
392// Returns the cost of having a space before the specified segmentation point
393int CubeSearchObject::SpaceCost(int pt_idx) {
394 if (!space_cost_ && !ComputeSpaceCosts()) {
395 // Failed to compute costs return a zero prob
396 return CubeUtils::Prob2Cost(0.0);
397 }
398 return space_cost_[pt_idx];
399}
400
401// Returns the cost of not having a space before the specified
402// segmentation point

Callers 1

SearchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected