VTK  9.2.6
vtkDijkstraImageGeodesicPath.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDijkstraImageGeodesicPath.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
53#ifndef vtkDijkstraImageGeodesicPath_h
54#define vtkDijkstraImageGeodesicPath_h
55
57#include "vtkFiltersModelingModule.h" // For export macro
58
59class vtkImageData;
60
61class VTKFILTERSMODELING_EXPORT vtkDijkstraImageGeodesicPath : public vtkDijkstraGraphGeodesicPath
62{
63public:
68
70
74 void PrintSelf(ostream& os, vtkIndent indent) override;
76
78
84
86
89 void SetImageWeight(double);
90 vtkGetMacro(ImageWeight, double);
92
94
97 void SetEdgeLengthWeight(double);
98 vtkGetMacro(EdgeLengthWeight, double);
100
102
105 vtkSetClampMacro(CurvatureWeight, double, 0.0, 1.0);
106 vtkGetMacro(CurvatureWeight, double);
108
109protected:
112
113 int FillInputPortInformation(int port, vtkInformation* info) override;
115
116 // Build a graph description of the image
117 void BuildAdjacency(vtkDataSet* inData) override;
118
119 // Update static costs without rebuilding adjacencyh when static weights change
121
122 // Override parent class methods.
125
126 double PixelSize;
131
132private:
134 void operator=(const vtkDijkstraImageGeodesicPath&) = delete;
135};
136
137#endif
general representation of visualization data
Definition: vtkDataObject.h:66
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
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
Definition: vtkImageData.h:54
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:332