VTK  9.2.6
vtkImageAnisotropicDiffusion2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageAnisotropicDiffusion2D.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 =========================================================================*/
62 #ifndef vtkImageAnisotropicDiffusion2D_h
63 #define vtkImageAnisotropicDiffusion2D_h
64 
66 #include "vtkImagingGeneralModule.h" // For export macro
67 class VTKIMAGINGGENERAL_EXPORT vtkImageAnisotropicDiffusion2D : public vtkImageSpatialAlgorithm
68 {
69 public:
72  void PrintSelf(ostream& os, vtkIndent indent) override;
73 
80  void SetNumberOfIterations(int num);
81 
83 
86  vtkGetMacro(NumberOfIterations, int);
88 
90 
97  vtkSetMacro(DiffusionThreshold, double);
98  vtkGetMacro(DiffusionThreshold, double);
100 
102 
107  vtkSetMacro(DiffusionFactor, double);
108  vtkGetMacro(DiffusionFactor, double);
110 
112 
115  vtkSetMacro(Faces, vtkTypeBool);
116  vtkGetMacro(Faces, vtkTypeBool);
117  vtkBooleanMacro(Faces, vtkTypeBool);
118  vtkSetMacro(Edges, vtkTypeBool);
119  vtkGetMacro(Edges, vtkTypeBool);
120  vtkBooleanMacro(Edges, vtkTypeBool);
121  vtkSetMacro(Corners, vtkTypeBool);
122  vtkGetMacro(Corners, vtkTypeBool);
123  vtkBooleanMacro(Corners, vtkTypeBool);
125 
127 
130  vtkSetMacro(GradientMagnitudeThreshold, vtkTypeBool);
131  vtkGetMacro(GradientMagnitudeThreshold, vtkTypeBool);
132  vtkBooleanMacro(GradientMagnitudeThreshold, vtkTypeBool);
134 
135 protected:
137  ~vtkImageAnisotropicDiffusion2D() override = default;
138 
142  // to determine which neighbors to diffuse
146  // What threshold to use
148 
150  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
151  int outExt[6], int id) override;
152  void Iterate(
153  vtkImageData* in, vtkImageData* out, double ar0, double ar1, int* coreExtent, int count);
154 
155 private:
157  void operator=(const vtkImageAnisotropicDiffusion2D&) = delete;
158 };
159 
160 #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:163
Filters that operate on pixel neighborhoods.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69