218 int *segmentationIds,
222 std::vector<std::vector<int>> regions = {});
241 std::shared_ptr<BinaryTree>
242 rootAtNode(
const std::shared_ptr<CTNode> &root);
257 std::pair<std::vector<std::shared_ptr<CTNode>>,
258 std::vector<std::shared_ptr<CTEdge>>>
262 std::vector<std::shared_ptr<CTNode>> nodes;
263 std::vector<std::shared_ptr<CTEdge>> arcs;
267 std::shared_ptr<Tree>
268 computeRootedTree(
const std::shared_ptr<CTNode> &node,
269 const std::shared_ptr<CTEdge> &parent,
271 std::shared_ptr<BinaryTree>
272 computeRootedTree_binary(
const std::shared_ptr<CTNode> &node,
273 const std::shared_ptr<CTEdge> &parent,
275 std::pair<float, std::vector<int>> pathToMax(
int root,
int parent);
276 std::pair<float, std::vector<int>> pathToMin(
int root,
int parent);