13#ifndef ML_GRAPH_UTILITIES_H
14#define ML_GRAPH_UTILITIES_H
44#ifndef MLGRAPHUTILITIES_USE_MPIF
62#ifndef VESSELGRAPH_USE_MPIF
#define MLGRAPHUTILITIES_EXPORT
Definiert systemspezifische Macros, die f"ur diese DLL gelten sollen.
#define MLGRAPHUTILITIES_START_NAMESPACE
#define MLGRAPHUTILITIES_END_NAMESPACE
Defines the basic Graph class which holds sets of nodes, edges and roots to model tubular structures ...
MLGRAPHUTILITIES_EXPORT VESSELGRAPH_NAMESPACE::Skeleton * getSmartSnapSkeleton(VESSELGRAPH_NAMESPACE::VesselEdge *selectedEdge, VESSELGRAPH_NAMESPACE::Skeleton *selectedSkeleton, size_t maxDistanceInSkeletons)
Searches upwards in the tree for a skeleton within the given distance that either has a different lab...
MLGRAPHUTILITIES_EXPORT void removeValency2Nodes(VESSELGRAPH_NAMESPACE::Graph &graph)
Removes all nodes which are connected to exactly two different edges by merging those two edges.
MLGRAPHUTILITIES_EXPORT void createLineSkeletonsOnEdge(VESSELGRAPH_NAMESPACE::VesselEdge &edge)
Creates skeletons between the two nodes of a vessel edge, using Bresenham3D in voxel resolution.
MLGRAPHUTILITIES_EXPORT std::vector< VESSELGRAPH_NAMESPACE::VesselNode * > findShortestPath(VESSELGRAPH_NAMESPACE::Graph *graph, VESSELGRAPH_NAMESPACE::VesselNode *startNode, VESSELGRAPH_NAMESPACE::VesselNode *endNode)
Finds the shortest path in graph between startNode and endNode; since the graph is internally handled...
MLGRAPHUTILITIES_EXPORT void resampleEdges(VESSELGRAPH_NAMESPACE::Graph &graph, double resolution)
Create skeletons with a given resolution for all edges.
MLGRAPHUTILITIES_START_NAMESPACE MLGRAPHUTILITIES_EXPORT const VESSELGRAPH_NAMESPACE::VesselEdge * getConnectingEdge(const VESSELGRAPH_NAMESPACE::VesselNode &nodeA, const VESSELGRAPH_NAMESPACE::VesselNode &nodeB)
Collection of utility functions for VesselGraphs.
MLGRAPHUTILITIES_EXPORT VESSELGRAPH_NAMESPACE::VesselNode * getNearestNode(Graph *graph, const Vector3 &position)
MLGRAPHUTILITIES_EXPORT void createVesselVoxels(VESSELGRAPH_NAMESPACE::VesselEdge &edge)
Creates vessel voxels for all skeletons of the given edge if the edge is a cone frustum or a cylinder...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.