VTK  9.5.20250715
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
44#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_5_0
46#include "vtkFiltersModelingModule.h" // For export macro
47
48VTK_ABI_NAMESPACE_BEGIN
49class vtkImageData;
50
51class VTKFILTERSMODELING_EXPORT vtkDijkstraImageGeodesicPath : public vtkDijkstraGraphGeodesicPath
52{
53public:
58
60
64 void PrintSelf(ostream& os, vtkIndent indent) override;
66
68
73 VTK_DEPRECATED_IN_9_5_0("Use GetImageDataInput() instead.")
74 vtkImageData* GetInputAsImageData() { return this->GetImageDataInput(); }
76
78
81 void SetImageWeight(double);
82 vtkGetMacro(ImageWeight, double);
84
86
89 void SetEdgeLengthWeight(double);
90 vtkGetMacro(EdgeLengthWeight, double);
92
94
97 vtkSetClampMacro(CurvatureWeight, double, 0.0, 1.0);
98 vtkGetMacro(CurvatureWeight, double);
100
101protected:
104
105 int FillInputPortInformation(int port, vtkInformation* info) override;
107
108 // Build a graph description of the image
109 void BuildAdjacency(vtkDataSet* inData) override;
110
111 // Update static costs without rebuilding adjacencyh when static weights change
113
114 // Override parent class methods.
117
118 double PixelSize;
123
124private:
126 void operator=(const vtkDijkstraImageGeodesicPath&) = delete;
127};
128
129VTK_ABI_NAMESPACE_END
130#endif
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
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
void SetImageWeight(double)
Image cost weight.
void SetEdgeLengthWeight(double)
Edge length cost weight.
vtkImageData * GetImageDataInput()
Specify the image object which is used as a cost function.
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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
#define VTK_DEPRECATED_IN_9_5_0(reason)
int vtkIdType
Definition vtkType.h:332