VTK  9.3.0
vtkImageAnisotropicDiffusion2D.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
40 #ifndef vtkImageAnisotropicDiffusion2D_h
41 #define vtkImageAnisotropicDiffusion2D_h
42 
44 #include "vtkImagingGeneralModule.h" // For export macro
45 VTK_ABI_NAMESPACE_BEGIN
46 class VTKIMAGINGGENERAL_EXPORT vtkImageAnisotropicDiffusion2D : public vtkImageSpatialAlgorithm
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
59  void SetNumberOfIterations(int num);
60 
62 
65  vtkGetMacro(NumberOfIterations, int);
67 
69 
76  vtkSetMacro(DiffusionThreshold, double);
77  vtkGetMacro(DiffusionThreshold, double);
79 
81 
86  vtkSetMacro(DiffusionFactor, double);
87  vtkGetMacro(DiffusionFactor, double);
89 
91 
94  vtkSetMacro(Faces, vtkTypeBool);
95  vtkGetMacro(Faces, vtkTypeBool);
96  vtkBooleanMacro(Faces, vtkTypeBool);
97  vtkSetMacro(Edges, vtkTypeBool);
98  vtkGetMacro(Edges, vtkTypeBool);
99  vtkBooleanMacro(Edges, vtkTypeBool);
100  vtkSetMacro(Corners, vtkTypeBool);
101  vtkGetMacro(Corners, vtkTypeBool);
102  vtkBooleanMacro(Corners, vtkTypeBool);
104 
106 
109  vtkSetMacro(GradientMagnitudeThreshold, vtkTypeBool);
110  vtkGetMacro(GradientMagnitudeThreshold, vtkTypeBool);
111  vtkBooleanMacro(GradientMagnitudeThreshold, vtkTypeBool);
113 
114 protected:
116  ~vtkImageAnisotropicDiffusion2D() override = default;
117 
121  // to determine which neighbors to diffuse
125  // What threshold to use
127 
129  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
130  int outExt[6], int id) override;
131  void Iterate(
132  vtkImageData* in, vtkImageData* out, double ar0, double ar1, int* coreExtent, int count);
133 
134 private:
136  void operator=(const vtkImageAnisotropicDiffusion2D&) = delete;
137 };
138 
139 VTK_ABI_NAMESPACE_END
140 #endif
void SetNumberOfIterations(int num)
This method sets the number of iterations which also affects the input neighborhood needed to compute...
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int id) override
If the subclass does not define an Execute method, then the task will be broken up,...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Iterate(vtkImageData *in, vtkImageData *out, double ar0, double ar1, int *coreExtent, int count)
static vtkImageAnisotropicDiffusion2D * New()
~vtkImageAnisotropicDiffusion2D() override=default
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
Filters that operate on pixel neighborhoods.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:64