VTK
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 
47 
48 #include "vtkImagingGeneralModule.h" // For export macro
50 
51 class VTKIMAGINGGENERAL_EXPORT vtkImageAnisotropicDiffusion3D : public vtkImageSpatialAlgorithm
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
58 
65  void SetNumberOfIterations(int num);
66 
68 
71  vtkGetMacro(NumberOfIterations,int);
73 
75 
82  vtkSetMacro(DiffusionThreshold,double);
83  vtkGetMacro(DiffusionThreshold,double);
85 
87 
90  vtkSetMacro(DiffusionFactor,double);
91  vtkGetMacro(DiffusionFactor,double);
93 
95 
98  vtkSetMacro(Faces,int);
99  vtkGetMacro(Faces,int);
100  vtkBooleanMacro(Faces,int);
101  vtkSetMacro(Edges,int);
102  vtkGetMacro(Edges,int);
103  vtkBooleanMacro(Edges,int);
104  vtkSetMacro(Corners,int);
105  vtkGetMacro(Corners,int);
106  vtkBooleanMacro(Corners,int);
108 
110 
113  vtkSetMacro(GradientMagnitudeThreshold,int);
114  vtkGetMacro(GradientMagnitudeThreshold,int);
115  vtkBooleanMacro(GradientMagnitudeThreshold,int);
117 
118 protected:
121 
125  // to determine which neighbors to diffuse
126  int Faces;
127  int Edges;
128  int Corners;
129  // What threshold to use
131 
132  void ThreadedRequestData(vtkInformation *request,
133  vtkInformationVector **inputVector,
134  vtkInformationVector *outputVector,
135  vtkImageData ***inData, vtkImageData **outData,
136  int extent[6], int id);
137  void Iterate(vtkImageData *in, vtkImageData *out,
138  double ar0, double ar1, double ar3, int *coreExtent, int count);
139 private:
141  void operator=(const vtkImageAnisotropicDiffusion3D&) VTK_DELETE_FUNCTION;
142 };
143 
144 #endif
145 
146 
147 
vtkThreadedImageAlgorithm::ThreadedRequestData
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up,...
vtkImageAnisotropicDiffusion3D::NumberOfIterations
int NumberOfIterations
Definition: vtkImageAnisotropicDiffusion3D.h:122
vtkImageAnisotropicDiffusion3D
edge preserving smoothing.
Definition: vtkImageAnisotropicDiffusion3D.h:51
vtkImageAnisotropicDiffusion3D::Edges
int Edges
Definition: vtkImageAnisotropicDiffusion3D.h:127
vtkImageAnisotropicDiffusion3D::Faces
int Faces
Definition: vtkImageAnisotropicDiffusion3D.h:126
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageAnisotropicDiffusion3D::GradientMagnitudeThreshold
int GradientMagnitudeThreshold
Definition: vtkImageAnisotropicDiffusion3D.h:130
vtkImageAnisotropicDiffusion3D::DiffusionFactor
double DiffusionFactor
Definition: vtkImageAnisotropicDiffusion3D.h:124
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImageSpatialAlgorithm::New
static vtkImageSpatialAlgorithm * New()
vtkImageAnisotropicDiffusion3D::DiffusionThreshold
double DiffusionThreshold
Definition: vtkImageAnisotropicDiffusion3D.h:123
vtkImageSpatialAlgorithm.h
vtkImageSpatialAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkImageAnisotropicDiffusion3D::~vtkImageAnisotropicDiffusion3D
~vtkImageAnisotropicDiffusion3D()
Definition: vtkImageAnisotropicDiffusion3D.h:120
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkImageSpatialAlgorithm
Filters that operate on pixel neighborhoods.
Definition: vtkImageSpatialAlgorithm.h:34
vtkImageAnisotropicDiffusion3D::Corners
int Corners
Definition: vtkImageAnisotropicDiffusion3D.h:128