00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00054 #ifndef __vtkImageGaussianSmooth_h
00055 #define __vtkImageGaussianSmooth_h
00056
00057
00058 #include "vtkImageToImageFilter.h"
00059
00060 class VTK_IMAGING_EXPORT vtkImageGaussianSmooth : public vtkImageToImageFilter
00061 {
00062 public:
00063 vtkTypeMacro(vtkImageGaussianSmooth,vtkImageToImageFilter);
00064 void PrintSelf(ostream& os, vtkIndent indent);
00065
00069 static vtkImageGaussianSmooth *New();
00070
00071
00073
00074 vtkSetVector3Macro(StandardDeviations, float);
00075 void SetStandardDeviation(float std)
00076 {this->SetStandardDeviations(std,std,std);}
00077 void SetStandardDeviations(float a,float b)
00078 {this->SetStandardDeviations(a,b,0.0);}
00079 vtkGetVector3Macro(StandardDeviations, float);
00081
00083
00085 void SetStandardDeviation(float a,float b)
00086 {this->SetStandardDeviations(a,b,0.0);}
00087 void SetStandardDeviation(float a,float b,float c)
00088 {this->SetStandardDeviations(a,b,c);}
00090
00092
00095 vtkSetVector3Macro(RadiusFactors, float);
00096 void SetRadiusFactors(float f, float f2) {this->SetRadiusFactors(f,f2,1.5);}
00097 void SetRadiusFactor(float f) {this->SetRadiusFactors(f, f, f);}
00098 vtkGetVector3Macro(RadiusFactors, float);
00100
00102
00104 vtkSetMacro(Dimensionality, int);
00105 vtkGetMacro(Dimensionality, int);
00107
00108 protected:
00109 vtkImageGaussianSmooth();
00110 ~vtkImageGaussianSmooth();
00111
00112 int Dimensionality;
00113 float StandardDeviations[3];
00114 float RadiusFactors[3];
00115
00116 void ComputeKernel(double *kernel, int min, int max, double std);
00117 void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00118 void ExecuteAxis(int axis, vtkImageData *inData, int inExt[6],
00119 vtkImageData *outData, int outExt[6],
00120 int *pcycle, int target, int *pcount, int total);
00121 void ThreadedExecute(vtkImageData *inData,
00122 vtkImageData *outData, int outExt[6], int id);
00123
00124 private:
00125 vtkImageGaussianSmooth(const vtkImageGaussianSmooth&);
00126 void operator=(const vtkImageGaussianSmooth&);
00127 };
00128
00129 #endif
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139