MeVisLab Toolbox Reference
|
The class maintains a graph for applying a shortest path algorithm on. More...
#include <CSOLiveWireGraph.h>
Public Member Functions | |
CSOLiveWireGraph (float *imageData, unsigned int sizex, unsigned int sizey, bool useCostsDirectly, float voxelSizeX=1.0f, float voxelSizeY=1.0f) | |
Constructor, takes an array with image values and the image's size as arguments. | |
~CSOLiveWireGraph () | |
Standard destructor. | |
void | setStartPosition (VoxelPos startVoxelPos) |
Sets the starting position. | |
void | getShortestPathToStart (VoxelPos endPos, std::vector< VoxelPos > &intermediatePositions, CSOLiveWireNeighborhoodMode neighborhoodMode, bool reverse=true) |
Computes the shortest path from the given endPos to the graph's internal start position. | |
void | setWeights (float weightGradient, float weightLaplace, float weightDirection) |
Sets the weights for individual costs (only used if useCostsDirectly == false) | |
Protected Attributes | |
CSOLiveWireGraphBase * | _impl |
The class maintains a graph for applying a shortest path algorithm on.
Definition at line 41 of file CSOLiveWireGraph.h.
ml::CSOLiveWireGraph::CSOLiveWireGraph | ( | float * | imageData, |
unsigned int | sizex, | ||
unsigned int | sizey, | ||
bool | useCostsDirectly, | ||
float | voxelSizeX = 1.0f, | ||
float | voxelSizeY = 1.0f ) |
Constructor, takes an array with image values and the image's size as arguments.
ml::CSOLiveWireGraph::~CSOLiveWireGraph | ( | ) |
Standard destructor.
void ml::CSOLiveWireGraph::getShortestPathToStart | ( | VoxelPos | endPos, |
std::vector< VoxelPos > & | intermediatePositions, | ||
CSOLiveWireNeighborhoodMode | neighborhoodMode, | ||
bool | reverse = true ) |
Computes the shortest path from the given endPos to the graph's internal start position.
The voxel positions of the computed path are filled into the given vector 'intermediatePositions'. The given neighborhood mode sets if whether a 4- or a 8-neighborhood should be searched. reverse indicates that the path should go from end to start instead of start to end
void ml::CSOLiveWireGraph::setWeights | ( | float | weightGradient, |
float | weightLaplace, | ||
float | weightDirection ) |
Sets the weights for individual costs (only used if useCostsDirectly == false)
|
protected |
Definition at line 64 of file CSOLiveWireGraph.h.