VTK  9.3.20240424
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
50#ifndef vtkImageAnisotropicDiffusion2D_h
51#define vtkImageAnisotropicDiffusion2D_h
52
54#include "vtkImagingGeneralModule.h" // For export macro
55VTK_ABI_NAMESPACE_BEGIN
56class VTKIMAGINGGENERAL_EXPORT vtkImageAnisotropicDiffusion2D : public vtkImageSpatialAlgorithm
57{
58public:
61 void PrintSelf(ostream& os, vtkIndent indent) override;
62
69 void SetNumberOfIterations(int num);
70
72
75 vtkGetMacro(NumberOfIterations, int);
77
79
86 vtkSetMacro(DiffusionThreshold, double);
87 vtkGetMacro(DiffusionThreshold, double);
89
91
96 vtkSetMacro(DiffusionFactor, double);
97 vtkGetMacro(DiffusionFactor, double);
99
101
104 vtkSetMacro(Faces, vtkTypeBool);
105 vtkGetMacro(Faces, vtkTypeBool);
106 vtkBooleanMacro(Faces, vtkTypeBool);
107 vtkSetMacro(Edges, vtkTypeBool);
108 vtkGetMacro(Edges, vtkTypeBool);
109 vtkBooleanMacro(Edges, vtkTypeBool);
110 vtkSetMacro(Corners, vtkTypeBool);
111 vtkGetMacro(Corners, vtkTypeBool);
112 vtkBooleanMacro(Corners, vtkTypeBool);
114
116
119 vtkSetMacro(GradientMagnitudeThreshold, vtkTypeBool);
120 vtkGetMacro(GradientMagnitudeThreshold, vtkTypeBool);
121 vtkBooleanMacro(GradientMagnitudeThreshold, vtkTypeBool);
123
124protected:
127
131 // to determine which neighbors to diffuse
135 // What threshold to use
137
139 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
140 int outExt[6], int id) override;
142 vtkImageData* in, vtkImageData* out, double ar0, double ar1, int* coreExtent, int count);
143
144private:
146 void operator=(const vtkImageAnisotropicDiffusion2D&) = delete;
147};
148
149VTK_ABI_NAMESPACE_END
150#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
Filters that operate on pixel neighborhoods.
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