MeVisLab Toolbox Reference
ml::CSOLiveWireGraph Class 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
 

Detailed Description

The class maintains a graph for applying a shortest path algorithm on.

Definition at line 41 of file CSOLiveWireGraph.h.

Constructor & Destructor Documentation

◆ CSOLiveWireGraph()

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.

◆ ~CSOLiveWireGraph()

ml::CSOLiveWireGraph::~CSOLiveWireGraph ( )

Standard destructor.

Member Function Documentation

◆ getShortestPathToStart()

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

◆ setStartPosition()

void ml::CSOLiveWireGraph::setStartPosition ( VoxelPos startVoxelPos)

Sets the starting position.

◆ setWeights()

void ml::CSOLiveWireGraph::setWeights ( float weightGradient,
float weightLaplace,
float weightDirection )

Sets the weights for individual costs (only used if useCostsDirectly == false)

Member Data Documentation

◆ _impl

CSOLiveWireGraphBase* ml::CSOLiveWireGraph::_impl
protected

Definition at line 64 of file CSOLiveWireGraph.h.


The documentation for this class was generated from the following file: