MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / OpenPathsFromPolyTree

Function OpenPathsFromPolyTree

core/predictor/tools/ocrtools/clipper.cpp:4345–4352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4343//------------------------------------------------------------------------------
4344
4345void OpenPathsFromPolyTree(PolyTree &polytree, Paths &paths) {
4346 paths.resize(0);
4347 paths.reserve(polytree.Total());
4348 // Open paths are top level only, so ...
4349 for (int i = 0; i < polytree.ChildCount(); ++i)
4350 if (polytree.Childs[i]->IsOpen())
4351 paths.push_back(polytree.Childs[i]->Contour);
4352}
4353//------------------------------------------------------------------------------
4354
4355std::ostream &operator<<(std::ostream &s, const IntPoint &p) {

Callers

nothing calls this directly

Calls 5

TotalMethod · 0.80
ChildCountMethod · 0.80
IsOpenMethod · 0.80
push_backMethod · 0.80
resizeMethod · 0.45

Tested by

no test coverage detected