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 =========================================================================*/
43 #ifndef vtkImageAnisotropicDiffusion3D_h
44 #define vtkImageAnisotropicDiffusion3D_h
45 
46 
47 #include "vtkImagingGeneralModule.h" // For export macro
49 
51 {
52 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
57 
63  void SetNumberOfIterations(int num);
64 
66 
67  vtkGetMacro(NumberOfIterations,int);
69 
71 
76  vtkSetMacro(DiffusionThreshold,double);
77  vtkGetMacro(DiffusionThreshold,double);
79 
81 
82  vtkSetMacro(DiffusionFactor,double);
83  vtkGetMacro(DiffusionFactor,double);
85 
87 
88  vtkSetMacro(Faces,int);
89  vtkGetMacro(Faces,int);
90  vtkBooleanMacro(Faces,int);
91  vtkSetMacro(Edges,int);
92  vtkGetMacro(Edges,int);
93  vtkBooleanMacro(Edges,int);
94  vtkSetMacro(Corners,int);
95  vtkGetMacro(Corners,int);
96  vtkBooleanMacro(Corners,int);
98 
100 
102  vtkSetMacro(GradientMagnitudeThreshold,int);
103  vtkGetMacro(GradientMagnitudeThreshold,int);
104  vtkBooleanMacro(GradientMagnitudeThreshold,int);
106 
107 protected:
110 
114  // to determine which neighbors to diffuse
115  int Faces;
116  int Edges;
117  int Corners;
118  // What threshold to use
120 
121  void ThreadedRequestData(vtkInformation *request,
122  vtkInformationVector **inputVector,
123  vtkInformationVector *outputVector,
124  vtkImageData ***inData, vtkImageData **outData,
125  int extent[6], int id);
126  void Iterate(vtkImageData *in, vtkImageData *out,
127  double ar0, double ar1, double ar3, int *coreExtent, int count);
128 private:
130  void operator=(const vtkImageAnisotropicDiffusion3D&); // Not implemented.
131 };
132 
133 #endif
134 
135 
136 
void PrintSelf(ostream &os, vtkIndent indent)
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
Filters that operate on pixel neighborhoods.
#define VTKIMAGINGGENERAL_EXPORT
Store zero or more vtkInformation instances.
static vtkImageSpatialAlgorithm * New()