VTK  9.3.0
vtkDijkstraImageGeodesicPath.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
41#ifndef vtkDijkstraImageGeodesicPath_h
42#define vtkDijkstraImageGeodesicPath_h
43
45#include "vtkFiltersModelingModule.h" // For export macro
46
47VTK_ABI_NAMESPACE_BEGIN
48class vtkImageData;
49
50class VTKFILTERSMODELING_EXPORT vtkDijkstraImageGeodesicPath : public vtkDijkstraGraphGeodesicPath
51{
52public:
57
59
63 void PrintSelf(ostream& os, vtkIndent indent) override;
65
67
73
75
78 void SetImageWeight(double);
79 vtkGetMacro(ImageWeight, double);
81
83
86 void SetEdgeLengthWeight(double);
87 vtkGetMacro(EdgeLengthWeight, double);
89
91
94 vtkSetClampMacro(CurvatureWeight, double, 0.0, 1.0);
95 vtkGetMacro(CurvatureWeight, double);
97
98protected:
101
102 int FillInputPortInformation(int port, vtkInformation* info) override;
104
105 // Build a graph description of the image
106 void BuildAdjacency(vtkDataSet* inData) override;
107
108 // Update static costs without rebuilding adjacencyh when static weights change
110
111 // Override parent class methods.
114
115 double PixelSize;
120
121private:
123 void operator=(const vtkDijkstraImageGeodesicPath&) = delete;
124};
125
126VTK_ABI_NAMESPACE_END
127#endif
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:53
Dijkstra algorithm to compute the graph geodesic.
Dijkstra algorithm to compute the graph geodesic.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
double CalculateStaticEdgeCost(vtkDataSet *inData, vtkIdType u, vtkIdType v) override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double CalculateDynamicEdgeCost(vtkDataSet *inData, vtkIdType u, vtkIdType v) override
~vtkDijkstraImageGeodesicPath() override
vtkImageData * GetInputAsImageData()
Specify the image object which is used as a cost function.
void SetImageWeight(double)
Image cost weight.
void SetEdgeLengthWeight(double)
Edge length cost weight.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for printing and determining type information.
static vtkDijkstraImageGeodesicPath * New()
Instantiate the class.
void SetInputData(vtkDataObject *)
Specify the image object which is used as a cost function.
void UpdateStaticCosts(vtkImageData *image)
void BuildAdjacency(vtkDataSet *inData) override
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkIdType
Definition vtkType.h:315