VTK  9.2.6
vtkImageConvolve.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageConvolve.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=========================================================================*/
29
30#ifndef vtkImageConvolve_h
31#define vtkImageConvolve_h
32
33#include "vtkImagingGeneralModule.h" // For export macro
35
36class VTKIMAGINGGENERAL_EXPORT vtkImageConvolve : public vtkThreadedImageAlgorithm
37{
38public:
40
45 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
52 vtkGetVector3Macro(KernelSize, int);
54
56
59 void SetKernel3x3(const double kernel[9]);
60 void SetKernel5x5(const double kernel[25]);
62
63 void SetKernel7x7(const double kernel[49]);
64
66
70 void GetKernel3x3(double kernel[9]);
72 void GetKernel5x5(double kernel[25]);
74
76 void GetKernel7x7(double kernel[49]);
77
81 void SetKernel3x3x3(const double kernel[27]);
82
83 void SetKernel5x5x5(const double kernel[125]);
84 void SetKernel7x7x7(const double kernel[343]);
85
87
91 void GetKernel3x3x3(double kernel[27]);
93
95 void GetKernel5x5x5(double kernel[125]);
97 void GetKernel7x7x7(double kernel[343]);
98
99protected:
101 ~vtkImageConvolve() override;
102
104 vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
105 int outExt[6], int id) override;
106
107 void GetKernel(double* kernel);
108 double* GetKernel();
109 void SetKernel(const double* kernel, int sizeX, int sizeY, int sizeZ);
110
112 double Kernel[343];
113
114private:
115 vtkImageConvolve(const vtkImageConvolve&) = delete;
116 void operator=(const vtkImageConvolve&) = delete;
117};
118
119#endif
void SetKernel3x3x3(const double kernel[27])
Set the kernel to be a 3x3x3 or 5x5x5 or 7x7x7 kernel.
static vtkImageConvolve * New()
Construct an instance of vtkImageConvolve filter.
void SetKernel3x3(const double kernel[9])
Set the kernel to be a given 3x3 or 5x5 or 7x7 kernel.
double * GetKernel5x5()
Return an array that contains the kernel.
void SetKernel7x7(const double kernel[49])
void SetKernel5x5x5(const double kernel[125])
double * GetKernel3x3x3()
Return an array that contains the kernel.
void GetKernel(double *kernel)
double * GetKernel7x7()
void SetKernel5x5(const double kernel[25])
Set the kernel to be a given 3x3 or 5x5 or 7x7 kernel.
void SetKernel7x7x7(const double kernel[343])
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,...
double * GetKernel3x3()
Return an array that contains the kernel.
void SetKernel(const double *kernel, int sizeX, int sizeY, int sizeZ)
void PrintSelf(ostream &os, vtkIndent indent) override
Construct an instance of vtkImageConvolve filter.
double * GetKernel5x5x5()
double * GetKernel7x7x7()
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
#define VTK_SIZEHINT(...)