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

Method NoSpaceCost

deps/tesseract/cube/cube_search_object.cpp:403–408  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

401// Returns the cost of not having a space before the specified
402// segmentation point
403int CubeSearchObject::NoSpaceCost(int pt_idx) {
404 // If failed to compute costs, return a 1.0 prob
405 if (!space_cost_ && !ComputeSpaceCosts())
406 return CubeUtils::Prob2Cost(0.0);
407 return no_space_cost_[pt_idx];
408}
409
410// Returns the cost of not having any spaces within the specified range
411// of segmentation points

Callers 1

SearchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected