VTK  9.2.6
vtkImageAnisotropicDiffusion3D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageAnisotropicDiffusion3D.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=========================================================================*/
44#ifndef vtkImageAnisotropicDiffusion3D_h
45#define vtkImageAnisotropicDiffusion3D_h
46
48#include "vtkImagingGeneralModule.h" // For export macro
49
50class VTKIMAGINGGENERAL_EXPORT vtkImageAnisotropicDiffusion3D : public vtkImageSpatialAlgorithm
51{
52public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
63 void SetNumberOfIterations(int num);
64
66
69 vtkGetMacro(NumberOfIterations, int);
71
73
80 vtkSetMacro(DiffusionThreshold, double);
81 vtkGetMacro(DiffusionThreshold, double);
83
85
88 vtkSetMacro(DiffusionFactor, double);
89 vtkGetMacro(DiffusionFactor, double);
91
93
96 vtkSetMacro(Faces, vtkTypeBool);
97 vtkGetMacro(Faces, vtkTypeBool);
98 vtkBooleanMacro(Faces, vtkTypeBool);
99 vtkSetMacro(Edges, vtkTypeBool);
100 vtkGetMacro(Edges, vtkTypeBool);
101 vtkBooleanMacro(Edges, vtkTypeBool);
102 vtkSetMacro(Corners, vtkTypeBool);
103 vtkGetMacro(Corners, vtkTypeBool);
104 vtkBooleanMacro(Corners, vtkTypeBool);
106
108
111 vtkSetMacro(GradientMagnitudeThreshold, vtkTypeBool);
112 vtkGetMacro(GradientMagnitudeThreshold, vtkTypeBool);
113 vtkBooleanMacro(GradientMagnitudeThreshold, vtkTypeBool);
115
116protected:
119
123 // to determine which neighbors to diffuse
127 // What threshold to use
129
131 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
132 int outExt[6], int id) override;
133 void Iterate(vtkImageData* in, vtkImageData* out, double ar0, double ar1, double ar2,
134 int* coreExtent, int count);
135
136private:
138 void operator=(const vtkImageAnisotropicDiffusion3D&) = delete;
139};
140
141#endif
static vtkImageAnisotropicDiffusion3D * New()
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, double ar2, int *coreExtent, int count)
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,...
~vtkImageAnisotropicDiffusion3D() override=default
topologically and geometrically regular array of data
Definition: vtkImageData.h:54
Filters that operate on pixel neighborhoods.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69