VTK  9.3.0
vtkImageGaussianSmooth.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
26 #ifndef vtkImageGaussianSmooth_h
27 #define vtkImageGaussianSmooth_h
28 
29 #include "vtkImagingGeneralModule.h" // For export macro
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKIMAGINGGENERAL_EXPORT vtkImageGaussianSmooth : public vtkThreadedImageAlgorithm
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
45 
47 
50  vtkSetVector3Macro(StandardDeviations, double);
51  void SetStandardDeviation(double std) { this->SetStandardDeviations(std, std, std); }
52  void SetStandardDeviations(double a, double b) { this->SetStandardDeviations(a, b, 0.0); }
53  vtkGetVector3Macro(StandardDeviations, double);
55 
60  void SetStandardDeviation(double a, double b) { this->SetStandardDeviations(a, b, 0.0); }
61  void SetStandardDeviation(double a, double b, double c) { this->SetStandardDeviations(a, b, c); }
62 
64 
69  vtkSetVector3Macro(RadiusFactors, double);
70  void SetRadiusFactors(double f, double f2) { this->SetRadiusFactors(f, f2, 1.5); }
71  void SetRadiusFactor(double f) { this->SetRadiusFactors(f, f, f); }
72  vtkGetVector3Macro(RadiusFactors, double);
74 
76 
80  vtkSetMacro(Dimensionality, int);
81  vtkGetMacro(Dimensionality, int);
83 
84 protected:
87 
89  double StandardDeviations[3];
90  double RadiusFactors[3];
91 
92  void ComputeKernel(double* kernel, int min, int max, double std);
94  void InternalRequestUpdateExtent(int*, int*);
95  void ExecuteAxis(int axis, vtkImageData* inData, int inExt[6], vtkImageData* outData,
96  int outExt[6], int* pcycle, int target, int* pcount, int total, vtkInformation* inInfo);
98  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
99  int outExt[6], int id) override;
100 
101 private:
103  void operator=(const vtkImageGaussianSmooth&) = delete;
104 };
105 
106 VTK_ABI_NAMESPACE_END
107 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
Performs a gaussian convolution.
static vtkImageGaussianSmooth * New()
Creates an instance of vtkImageGaussianSmooth with the following defaults: Dimensionality 3,...
void SetStandardDeviation(double a, double b)
Sets/Gets the Standard deviation of the gaussian in pixel units.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkImageGaussianSmooth() override
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
void ExecuteAxis(int axis, vtkImageData *inData, int inExt[6], vtkImageData *outData, int outExt[6], int *pcycle, int target, int *pcount, int total, vtkInformation *inInfo)
void SetRadiusFactor(double f)
Sets/Gets the Radius Factors of the gaussian (no unit).
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,...
void InternalRequestUpdateExtent(int *, int *)
void ComputeKernel(double *kernel, int min, int max, double std)
void SetStandardDeviation(double a, double b, double c)
void SetRadiusFactors(double f, double f2)
Sets/Gets the Radius Factors of the gaussian (no unit).
void SetStandardDeviation(double std)
Sets/Gets the Standard deviation of the gaussian in pixel units.
void SetStandardDeviations(double a, double b)
Sets/Gets the Standard deviation of the gaussian in pixel units.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define max(a, b)