VTK
vtkImageEuclideanDistance.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageEuclideanDistance.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 =========================================================================*/
45 #ifndef vtkImageEuclideanDistance_h
46 #define vtkImageEuclideanDistance_h
47 
48 #include "vtkImagingGeneralModule.h" // For export macro
50 
51 #define VTK_EDT_SAITO_CACHED 0
52 #define VTK_EDT_SAITO 1
53 
54 class VTKIMAGINGGENERAL_EXPORT vtkImageEuclideanDistance : public vtkImageDecomposeFilter
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
60 
62 
68  vtkSetMacro(Initialize, int);
69  vtkGetMacro(Initialize, int);
70  vtkBooleanMacro(Initialize, int);
72 
74 
78  vtkSetMacro(ConsiderAnisotropy, int);
79  vtkGetMacro(ConsiderAnisotropy, int);
80  vtkBooleanMacro(ConsiderAnisotropy, int);
82 
84 
88  vtkSetMacro(MaximumDistance, double);
89  vtkGetMacro(MaximumDistance, double);
91 
93 
99  vtkSetMacro(Algorithm, int);
100  vtkGetMacro(Algorithm, int);
102  { this->SetAlgorithm(VTK_EDT_SAITO); }
104  { this->SetAlgorithm(VTK_EDT_SAITO_CACHED); }
106 
109  vtkInformationVector*) VTK_OVERRIDE;
110 
111 protected:
113  ~vtkImageEuclideanDistance()VTK_OVERRIDE {}
114 
119 
120  // Replaces "EnlargeOutputUpdateExtent"
121  virtual void AllocateOutputScalars(vtkImageData *outData,
122  int outExt[6],
123  vtkInformation* outInfo);
124 
126  vtkInformation* out) VTK_OVERRIDE;
128  vtkInformation* out) VTK_OVERRIDE;
129 
130 private:
131  vtkImageEuclideanDistance(const vtkImageEuclideanDistance&) VTK_DELETE_FUNCTION;
132  void operator=(const vtkImageEuclideanDistance&) VTK_DELETE_FUNCTION;
133 };
134 
135 #endif
136 
137 
138 
139 
140 
141 
142 
143 
144 
145 
Store vtkAlgorithm input/output information.
computes 3D Euclidean DT
void SetAlgorithmToSaitoCached()
Selects a Euclidean DT algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3...
a simple class to control print indentation
Definition: vtkIndent.h:33
void SetAlgorithmToSaito()
Selects a Euclidean DT algorithm.
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
#define VTK_EDT_SAITO
virtual int IterativeRequestInformation(vtkInformation *in, vtkInformation *out)
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int IterativeRequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
#define VTK_EDT_SAITO_CACHED
Filters that execute axes in series.
virtual int IterativeRequestUpdateExtent(vtkInformation *in, vtkInformation *out)