MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
mlGraphUtilities.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2012, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef ML_GRAPH_UTILITIES_H
14#define ML_GRAPH_UTILITIES_H
15
16
20
21
23
24// Include vessel graph class.
25#include "mlGraphComponents.h"
26
28
31MLGRAPHUTILITIES_EXPORT const VESSELGRAPH_NAMESPACE::VesselEdge*
32getConnectingEdge(const VESSELGRAPH_NAMESPACE::VesselNode& nodeA, const VESSELGRAPH_NAMESPACE::VesselNode& nodeB);
33
36MLGRAPHUTILITIES_EXPORT VESSELGRAPH_NAMESPACE::VesselEdge* getConnectingEdge(VESSELGRAPH_NAMESPACE::VesselNode& nodeA,
37 VESSELGRAPH_NAMESPACE::VesselNode& nodeB);
38
41MLGRAPHUTILITIES_EXPORT void removeValency2Nodes(VESSELGRAPH_NAMESPACE::Graph& graph);
42
44MLGRAPHUTILITIES_EXPORT void resampleEdges(VESSELGRAPH_NAMESPACE::Graph& graph, double resolution);
45
46#ifndef MLGRAPHUTILITIES_USE_MPIF
47
50MLGRAPHUTILITIES_EXPORT std::vector<VESSELGRAPH_NAMESPACE::VesselNode*>
51findShortestPath(VESSELGRAPH_NAMESPACE::Graph* graph, VESSELGRAPH_NAMESPACE::VesselNode* startNode,
52 VESSELGRAPH_NAMESPACE::VesselNode* endNode);
53
57MLGRAPHUTILITIES_EXPORT std::vector<VESSELGRAPH_NAMESPACE::Skeleton*>
58findShortestPath(VESSELGRAPH_NAMESPACE::Graph* graph, const Vector3& startPos, const Vector3& endPos);
59
60#endif
61
65MLGRAPHUTILITIES_EXPORT void createLineSkeletonsOnEdge(VESSELGRAPH_NAMESPACE::VesselEdge& edge);
66
67#ifndef VESSELGRAPH_USE_MPIF
68
71MLGRAPHUTILITIES_EXPORT void createVesselVoxels(VESSELGRAPH_NAMESPACE::VesselEdge& edge);
72
73MLGRAPHUTILITIES_EXPORT VESSELGRAPH_NAMESPACE::VesselNode* getNearestNode(Graph* graph, const Vector3& position);
74
77MLGRAPHUTILITIES_EXPORT VESSELGRAPH_NAMESPACE::Skeleton*
78getSmartSnapSkeleton(VESSELGRAPH_NAMESPACE::VesselEdge* selectedEdge, VESSELGRAPH_NAMESPACE::Skeleton* selectedSkeleton,
80
81#endif
82
84
85#endif
#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 ...
Definition mlGraph.h:64
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.