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 =========================================================================*/
48 #ifndef vtkImageEuclideanDistance_h
49 #define vtkImageEuclideanDistance_h
50 
51 #include "vtkImagingGeneralModule.h" // For export macro
53 
54 #define VTK_EDT_SAITO_CACHED 0
55 #define VTK_EDT_SAITO 1
56 
57 class VTKIMAGINGGENERAL_EXPORT vtkImageEuclideanDistance : public vtkImageDecomposeFilter
58 {
59 public:
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
65 
71  vtkSetMacro(Initialize, vtkTypeBool);
72  vtkGetMacro(Initialize, vtkTypeBool);
73  vtkBooleanMacro(Initialize, vtkTypeBool);
75 
77 
81  vtkSetMacro(ConsiderAnisotropy, vtkTypeBool);
82  vtkGetMacro(ConsiderAnisotropy, vtkTypeBool);
83  vtkBooleanMacro(ConsiderAnisotropy, vtkTypeBool);
85 
87 
91  vtkSetMacro(MaximumDistance, double);
92  vtkGetMacro(MaximumDistance, double);
94 
96 
102  vtkSetMacro(Algorithm, int);
103  vtkGetMacro(Algorithm, int);
105  { this->SetAlgorithm(VTK_EDT_SAITO); }
107  { this->SetAlgorithm(VTK_EDT_SAITO_CACHED); }
109 
112  vtkInformationVector*) override;
113 
114 protected:
117 
122 
123  // Replaces "EnlargeOutputUpdateExtent"
124  virtual void AllocateOutputScalars(vtkImageData *outData,
125  int outExt[6],
126  vtkInformation* outInfo);
127 
129  vtkInformation* out) override;
131  vtkInformation* out) override;
132 
133 private:
135  void operator=(const vtkImageEuclideanDistance&) = delete;
136 };
137 
138 #endif
139 
140 
141 
142 
143 
144 
145 
146 
147 
148 
Store vtkAlgorithm input/output information.
computes 3D Euclidean DT
void SetAlgorithmToSaitoCached()
Selects a Euclidean DT algorithm.
int vtkTypeBool
Definition: vtkABI.h:69
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:39
void SetAlgorithmToSaito()
Selects a Euclidean DT algorithm.
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
#define VTK_EDT_SAITO
virtual int IterativeRequestInformation(vtkInformation *in, vtkInformation *out)
virtual int IterativeRequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
#define VTK_EDT_SAITO_CACHED
Filters that execute axes in series.
virtual int IterativeRequestUpdateExtent(vtkInformation *in, vtkInformation *out)