VTK
vtkImageGaussianSmooth.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageGaussianSmooth.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 =========================================================================*/
25 #ifndef __vtkImageGaussianSmooth_h
26 #define __vtkImageGaussianSmooth_h
27 
28 
30 
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
40  static vtkImageGaussianSmooth *New();
41 
42 
44 
45  vtkSetVector3Macro(StandardDeviations, double);
46  void SetStandardDeviation(double std)
47  {this->SetStandardDeviations(std,std,std);}
48  void SetStandardDeviations(double a,double b)
49  {this->SetStandardDeviations(a,b,0.0);}
50  vtkGetVector3Macro(StandardDeviations, double);
52 
54 
56  void SetStandardDeviation(double a,double b)
57  {this->SetStandardDeviations(a,b,0.0);}
58  void SetStandardDeviation(double a,double b,double c)
59  {this->SetStandardDeviations(a,b,c);}
61 
63 
66  vtkSetVector3Macro(RadiusFactors, double);
67  void SetRadiusFactors(double f, double f2) {
68  this->SetRadiusFactors(f,f2,1.5);}
69  void SetRadiusFactor(double f) {this->SetRadiusFactors(f, f, f);}
70  vtkGetVector3Macro(RadiusFactors, double);
72 
74 
76  vtkSetMacro(Dimensionality, int);
77  vtkGetMacro(Dimensionality, int);
79 
80 protected:
83 
85  double StandardDeviations[3];
86  double RadiusFactors[3];
87 
88  void ComputeKernel(double *kernel, int min, int max, double std);
90  void InternalRequestUpdateExtent(int *, int*);
91  void ExecuteAxis(int axis, vtkImageData *inData, int inExt[6],
92  vtkImageData *outData, int outExt[6],
93  int *pcycle, int target, int *pcount, int total,
94  vtkInformation *inInfo);
95  void ThreadedRequestData(vtkInformation *request,
96  vtkInformationVector **inputVector,
97  vtkInformationVector *outputVector,
98  vtkImageData ***inData, vtkImageData **outData,
99  int outExt[6], int id);
100 
101 private:
102  vtkImageGaussianSmooth(const vtkImageGaussianSmooth&); // Not implemented.
103  void operator=(const vtkImageGaussianSmooth&); // Not implemented.
104 };
105 
106 #endif
107 
108 
109 
110 
111 
112 
113 
114 
115 
116 
void SetStandardDeviations(double a, double b)
void SetStandardDeviation(double a, double b, double c)
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Store vtkAlgorithm input/output information.
void SetRadiusFactors(double f, double f2)
void SetStandardDeviation(double std)
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Performs a gaussian convolution.
Generic filter that has one input..
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_IMAGING_EXPORT
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void SetStandardDeviation(double a, double b)
#define max(a, b)