VTK
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 
56 #include "vtkFiltersModelingModule.h" // For export macro
58 
59 class vtkImageData;
60 
61 class VTKFILTERSMODELING_EXPORT vtkDijkstraImageGeodesicPath :
63 {
64 public:
65 
70 
72 
76  void PrintSelf( ostream& os, vtkIndent indent ) override;
78 
80 
83  void SetInputData( vtkDataObject* );
84  vtkImageData* GetInputAsImageData();
86 
88 
91  void SetImageWeight( double );
92  vtkGetMacro( ImageWeight, double );
94 
96 
99  void SetEdgeLengthWeight( double );
100  vtkGetMacro( EdgeLengthWeight, double );
102 
104 
107  vtkSetClampMacro( CurvatureWeight, double, 0.0, 1.0 );
108  vtkGetMacro( CurvatureWeight, double );
110 
111 protected:
113  ~vtkDijkstraImageGeodesicPath() override;
114 
115  int FillInputPortInformation(int port, vtkInformation *info) override;
117  vtkInformationVector *) override;
118 
119  // Build a graph description of the image
120  void BuildAdjacency( vtkDataSet *inData ) override;
121 
122  // Update static costs without rebuilding adjacencyh when static weights change
123  void UpdateStaticCosts( vtkImageData *image );
124 
125  // Override parent class methods.
126  double CalculateStaticEdgeCost( vtkDataSet *inData , vtkIdType u, vtkIdType v) override;
127  double CalculateDynamicEdgeCost( vtkDataSet *inData , vtkIdType u, vtkIdType v) override;
128 
129  double PixelSize;
130  double ImageWeight;
134 
135 private:
137  void operator=(const vtkDijkstraImageGeodesicPath&) = delete;
138 
139 };
140 
141 #endif
142 
vtkDijkstraGraphGeodesicPath::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkX3D::image
Definition: vtkX3D.h:374
vtkDijkstraImageGeodesicPath::RebuildStaticCosts
bool RebuildStaticCosts
Definition: vtkDijkstraImageGeodesicPath.h:133
vtkDijkstraGraphGeodesicPath::CalculateDynamicEdgeCost
virtual double CalculateDynamicEdgeCost(vtkDataSet *, vtkIdType, vtkIdType)
Definition: vtkDijkstraGraphGeodesicPath.h:130
vtkX3D::port
Definition: vtkX3D.h:447
vtkDijkstraImageGeodesicPath
Dijkstra algorithm to compute the graph geodesic.
Definition: vtkDijkstraImageGeodesicPath.h:61
vtkDijkstraGraphGeodesicPath::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPolyDataAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkDijkstraImageGeodesicPath::CurvatureWeight
double CurvatureWeight
Definition: vtkDijkstraImageGeodesicPath.h:132
vtkDijkstraGraphGeodesicPath.h
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkDijkstraImageGeodesicPath::EdgeLengthWeight
double EdgeLengthWeight
Definition: vtkDijkstraImageGeodesicPath.h:131
vtkX3D::info
Definition: vtkX3D.h:376
vtkDijkstraGraphGeodesicPath::CalculateStaticEdgeCost
virtual double CalculateStaticEdgeCost(vtkDataSet *inData, vtkIdType u, vtkIdType v)
vtkDijkstraImageGeodesicPath::ImageWeight
double ImageWeight
Definition: vtkDijkstraImageGeodesicPath.h:130
vtkDijkstraGraphGeodesicPath::BuildAdjacency
virtual void BuildAdjacency(vtkDataSet *inData)
vtkDijkstraGraphGeodesicPath
Dijkstra algorithm to compute the graph geodesic.
Definition: vtkDijkstraGraphGeodesicPath.h:47
vtkDijkstraImageGeodesicPath::PixelSize
double PixelSize
Definition: vtkDijkstraImageGeodesicPath.h:129
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkDijkstraGraphGeodesicPath::New
static vtkDijkstraGraphGeodesicPath * New()
Instantiate the class.
vtkGeodesicPath::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.