VTK  9.1.0
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=========================================================================*/
59#ifndef vtkImageAnisotropicDiffusion2D_h
60#define vtkImageAnisotropicDiffusion2D_h
61
63#include "vtkImagingGeneralModule.h" // For export macro
64class VTKIMAGINGGENERAL_EXPORT vtkImageAnisotropicDiffusion2D : public vtkImageSpatialAlgorithm
65{
66public:
69 void PrintSelf(ostream& os, vtkIndent indent) override;
70
77 void SetNumberOfIterations(int num);
78
80
83 vtkGetMacro(NumberOfIterations, int);
85
87
94 vtkSetMacro(DiffusionThreshold, double);
95 vtkGetMacro(DiffusionThreshold, double);
97
99
104 vtkSetMacro(DiffusionFactor, double);
105 vtkGetMacro(DiffusionFactor, double);
107
109
112 vtkSetMacro(Faces, vtkTypeBool);
113 vtkGetMacro(Faces, vtkTypeBool);
114 vtkBooleanMacro(Faces, vtkTypeBool);
115 vtkSetMacro(Edges, vtkTypeBool);
116 vtkGetMacro(Edges, vtkTypeBool);
117 vtkBooleanMacro(Edges, vtkTypeBool);
118 vtkSetMacro(Corners, vtkTypeBool);
119 vtkGetMacro(Corners, vtkTypeBool);
120 vtkBooleanMacro(Corners, vtkTypeBool);
122
124
127 vtkSetMacro(GradientMagnitudeThreshold, vtkTypeBool);
128 vtkGetMacro(GradientMagnitudeThreshold, vtkTypeBool);
129 vtkBooleanMacro(GradientMagnitudeThreshold, vtkTypeBool);
131
132protected:
135
139 // to determine which neighbors to diffuse
143 // What threshold to use
145
147 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
148 int outExt[6], int id) override;
150 vtkImageData* in, vtkImageData* out, double ar0, double ar1, int* coreExtent, int count);
151
152private:
154 void operator=(const vtkImageAnisotropicDiffusion2D&) = delete;
155};
156
157#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:157
Filters that operate on pixel neighborhoods.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69