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 =========================================================================*/
52 #ifndef __vtkDijkstraImageGeodesicPath_h
53 #define __vtkDijkstraImageGeodesicPath_h
54 
56 
57 class vtkImageData;
58 
61 {
62 public:
63 
66 
68 
70  void PrintSelf( ostream& os, vtkIndent indent );
72 
74 
75  void SetInput( vtkDataObject* );
76  vtkImageData* GetInputAsImageData();
78 
80 
81  void SetImageWeight( double );
82  vtkGetMacro( ImageWeight, double );
84 
86 
87  void SetEdgeLengthWeight( double );
88  vtkGetMacro( EdgeLengthWeight, double );
90 
92 
93  vtkSetClampMacro( CurvatureWeight, double, 0.0, 1.0 );
94  vtkGetMacro( CurvatureWeight, double );
96 
97 protected:
100 
104 
105  // Build a graph description of the image
106  virtual void BuildAdjacency( vtkDataSet *inData );
107 
108  // Update static costs without rebuilding adjacencyh when static weights change
109  void UpdateStaticCosts( vtkImageData *image );
110 
111  // Override parent class methods.
112  virtual double CalculateStaticEdgeCost( vtkDataSet *inData , vtkIdType u, vtkIdType v);
113  virtual double CalculateDynamicEdgeCost( vtkDataSet *inData , vtkIdType u, vtkIdType v);
114 
115  double PixelSize;
116  double ImageWeight;
120 
121 private:
123  void operator=(const vtkDijkstraImageGeodesicPath&); // Not implemented.
124 
125 };
126 
127 #endif
128 
#define VTK_GRAPHICS_EXPORT
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
void SetInput(vtkDataObject *)
virtual void BuildAdjacency(vtkDataSet *inData)
int vtkIdType
Definition: vtkType.h:255
void PrintSelf(ostream &os, vtkIndent indent)
Dijkstra algorithm to compute the graph geodesic.
virtual double CalculateStaticEdgeCost(vtkDataSet *inData, vtkIdType u, vtkIdType v)
static vtkDijkstraGraphGeodesicPath * New()
a simple class to control print indentation
Definition: vtkIndent.h:37
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
virtual double CalculateDynamicEdgeCost(vtkDataSet *, vtkIdType, vtkIdType)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:70
Dijkstra algorithm to compute the graph geodesic.