VTK  9.3.20240327
vtkImageEuclideanDistance.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
36 #ifndef vtkImageEuclideanDistance_h
37 #define vtkImageEuclideanDistance_h
38 
40 #include "vtkImagingGeneralModule.h" // For export macro
41 
42 #define VTK_EDT_SAITO_CACHED 0
43 #define VTK_EDT_SAITO 1
44 
45 VTK_ABI_NAMESPACE_BEGIN
46 class VTKIMAGINGGENERAL_EXPORT vtkImageEuclideanDistance : public vtkImageDecomposeFilter
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
60  vtkSetMacro(Initialize, vtkTypeBool);
61  vtkGetMacro(Initialize, vtkTypeBool);
62  vtkBooleanMacro(Initialize, vtkTypeBool);
64 
66 
70  vtkSetMacro(ConsiderAnisotropy, vtkTypeBool);
71  vtkGetMacro(ConsiderAnisotropy, vtkTypeBool);
72  vtkBooleanMacro(ConsiderAnisotropy, vtkTypeBool);
74 
76 
80  vtkSetMacro(MaximumDistance, double);
81  vtkGetMacro(MaximumDistance, double);
83 
85 
91  vtkSetMacro(Algorithm, int);
92  vtkGetMacro(Algorithm, int);
93  void SetAlgorithmToSaito() { this->SetAlgorithm(VTK_EDT_SAITO); }
94  void SetAlgorithmToSaitoCached() { this->SetAlgorithm(VTK_EDT_SAITO_CACHED); }
96 
98 
99 protected:
101  ~vtkImageEuclideanDistance() override = default;
102 
107 
108  // Replaces "EnlargeOutputUpdateExtent"
109  virtual void AllocateOutputScalars(vtkImageData* outData, int outExt[6], vtkInformation* outInfo);
110 
113 
114 private:
116  void operator=(const vtkImageEuclideanDistance&) = delete;
117 };
118 
119 VTK_ABI_NAMESPACE_END
120 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:155
Filters that execute axes in series.
virtual void AllocateOutputScalars(vtkImageData *outData, int outExt[6], vtkInformation *outInfo)
void SetAlgorithmToSaitoCached()
Selects a Euclidean DT algorithm.
~vtkImageEuclideanDistance() override=default
int IterativeRequestUpdateExtent(vtkInformation *in, vtkInformation *out) override
void SetAlgorithmToSaito()
Selects a Euclidean DT algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Construct an instance of vtkImageDecomposeFilter filter with default dimensionality 3.
int IterativeRequestInformation(vtkInformation *in, vtkInformation *out) override
static vtkImageEuclideanDistance * New()
int IterativeRequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:64
#define VTK_EDT_SAITO
#define VTK_EDT_SAITO_CACHED