MCPcopy Create free account
hub / github.com/colmap/colmap / IsValid

Method IsValid

src/colmap/math/spanning_tree.h:45–45  ·  view source on GitHub ↗

Check if tree is valid (has a root and non-empty parents).

Source from the content-addressed store, hash-verified

43
44 // Check if tree is valid (has a root and non-empty parents).
45 bool IsValid() const { return root >= 0 && !parents.empty(); }
46
47 // Get the number of nodes in the tree.
48 size_t NumNodes() const { return parents.size(); }

Callers 2

DelaunayMeshingFunction · 0.45
TESTFunction · 0.45

Calls 1

emptyMethod · 0.80

Tested by 1

TESTFunction · 0.36