VTK
|
Dijkstra algorithm to compute the graph geodesic. More...
#include <vtkDijkstraImageGeodesicPath.h>
Dijkstra algorithm to compute the graph geodesic.
Takes as input a polyline and an image representing a 2D cost function and performs a single source shortest path calculation. Dijkstra's algorithm is used. The implementation is similar to the one described in Introduction to Algorithms (Second Edition) by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Cliff Stein, published by MIT Press and McGraw-Hill. Some minor enhancement are added though. All vertices are not pushed on the heap at start, instead a front set is maintained. The heap is implemented as a binary heap. The output of the filter is a set of lines describing the shortest path from StartVertex to EndVertex. See parent class vtkDijkstraGraphGeodesicPath for the implementation.
Definition at line 60 of file vtkDijkstraImageGeodesicPath.h.
Standard methids for printing and determining type information.
Reimplemented from vtkDijkstraGraphGeodesicPath.
Definition at line 70 of file vtkDijkstraImageGeodesicPath.h.
vtkDijkstraImageGeodesicPath::vtkDijkstraImageGeodesicPath | ( | ) | [protected] |
vtkDijkstraImageGeodesicPath::~vtkDijkstraImageGeodesicPath | ( | ) | [protected] |
static vtkDijkstraImageGeodesicPath* vtkDijkstraImageGeodesicPath::New | ( | ) | [static] |
Instantiate the class
Reimplemented from vtkDijkstraGraphGeodesicPath.
static int vtkDijkstraImageGeodesicPath::IsTypeOf | ( | const char * | type | ) | [static] |
Standard methids for printing and determining type information.
Reimplemented from vtkDijkstraGraphGeodesicPath.
virtual int vtkDijkstraImageGeodesicPath::IsA | ( | const char * | type | ) | [virtual] |
Standard methids for printing and determining type information.
Reimplemented from vtkDijkstraGraphGeodesicPath.
static vtkDijkstraImageGeodesicPath* vtkDijkstraImageGeodesicPath::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Standard methids for printing and determining type information.
Reimplemented from vtkDijkstraGraphGeodesicPath.
virtual vtkObjectBase* vtkDijkstraImageGeodesicPath::NewInstanceInternal | ( | ) | const [protected, virtual] |
Standard methids for printing and determining type information.
Reimplemented from vtkDijkstraGraphGeodesicPath.
Standard methids for printing and determining type information.
Reimplemented from vtkDijkstraGraphGeodesicPath.
void vtkDijkstraImageGeodesicPath::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Standard methids for printing and determining type information.
Reimplemented from vtkDijkstraGraphGeodesicPath.
Specify the image object which is used as a cost function.
Reimplemented from vtkPolyDataAlgorithm.
Specify the image object which is used as a cost function.
Image cost weight.
virtual double vtkDijkstraImageGeodesicPath::GetImageWeight | ( | ) | [virtual] |
Image cost weight.
Edge length cost weight.
virtual double vtkDijkstraImageGeodesicPath::GetEdgeLengthWeight | ( | ) | [virtual] |
Edge length cost weight.
virtual void vtkDijkstraImageGeodesicPath::SetCurvatureWeight | ( | double | ) | [virtual] |
Curvature cost weight.
virtual double vtkDijkstraImageGeodesicPath::GetCurvatureWeight | ( | ) | [virtual] |
Curvature cost weight.
virtual int vtkDijkstraImageGeodesicPath::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkGeodesicPath.
virtual int vtkDijkstraImageGeodesicPath::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkDijkstraGraphGeodesicPath.
virtual void vtkDijkstraImageGeodesicPath::BuildAdjacency | ( | vtkDataSet * | inData | ) | [protected, virtual] |
Reimplemented from vtkDijkstraGraphGeodesicPath.
void vtkDijkstraImageGeodesicPath::UpdateStaticCosts | ( | vtkImageData * | image | ) | [protected] |
virtual double vtkDijkstraImageGeodesicPath::CalculateStaticEdgeCost | ( | vtkDataSet * | inData, |
vtkIdType | u, | ||
vtkIdType | v | ||
) | [protected, virtual] |
Reimplemented from vtkDijkstraGraphGeodesicPath.
virtual double vtkDijkstraImageGeodesicPath::CalculateDynamicEdgeCost | ( | vtkDataSet * | inData, |
vtkIdType | u, | ||
vtkIdType | v | ||
) | [protected, virtual] |
Reimplemented from vtkDijkstraGraphGeodesicPath.
double vtkDijkstraImageGeodesicPath::PixelSize [protected] |
Definition at line 116 of file vtkDijkstraImageGeodesicPath.h.
double vtkDijkstraImageGeodesicPath::ImageWeight [protected] |
Definition at line 117 of file vtkDijkstraImageGeodesicPath.h.
double vtkDijkstraImageGeodesicPath::EdgeLengthWeight [protected] |
Definition at line 118 of file vtkDijkstraImageGeodesicPath.h.
double vtkDijkstraImageGeodesicPath::CurvatureWeight [protected] |
Definition at line 119 of file vtkDijkstraImageGeodesicPath.h.
bool vtkDijkstraImageGeodesicPath::RebuildStaticCosts [protected] |
Definition at line 120 of file vtkDijkstraImageGeodesicPath.h.