VTK
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 =========================================================================*/
26 #ifndef vtkImageConvolve_h
27 #define vtkImageConvolve_h
28 
29 #include "vtkImagingGeneralModule.h" // For export macro
31 
33 {
34 public:
36 
37  static vtkImageConvolve *New();
39  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
44  vtkGetVector3Macro(KernelSize, int);
46 
48 
49  void SetKernel3x3(const double kernel[9]);
50  void SetKernel5x5(const double kernel[25]);
51 //BTX
52  void SetKernel7x7(const double kernel[49]);
53 //ETX
55 
57 
58  double* GetKernel3x3();
59  void GetKernel3x3(double kernel[9]);
60  double* GetKernel5x5();
61  void GetKernel5x5(double kernel[25]);
62 //BTX
63  double* GetKernel7x7();
64  void GetKernel7x7(double kernel[49]);
65 //ETX
67 
69 
70  void SetKernel3x3x3(const double kernel[27]);
71 //BTX
72  void SetKernel5x5x5(const double kernel[125]);
73  void SetKernel7x7x7(const double kernel[343]);
74 //ETX
76 
78 
79  double* GetKernel3x3x3();
80  void GetKernel3x3x3(double kernel[27]);
81 //BTX
82  double* GetKernel5x5x5();
83  void GetKernel5x5x5(double kernel[125]);
84  double* GetKernel7x7x7();
85  void GetKernel7x7x7(double kernel[343]);
86 //ETX
88 
89 protected:
92 
93  void ThreadedRequestData(vtkInformation *request,
94  vtkInformationVector **inputVector,
95  vtkInformationVector *outputVector,
96  vtkImageData ***inData, vtkImageData **outData,
97  int outExt[6], int id);
98 
99  void GetKernel(double *kernel);
100  double* GetKernel();
101  void SetKernel(const double* kernel,
102  int sizeX, int sizeY, int sizeZ);
103 
104 
105  int KernelSize[3];
106  double Kernel[343];
107 private:
108  vtkImageConvolve(const vtkImageConvolve&); // Not implemented.
109  void operator=(const vtkImageConvolve&); // Not implemented.
110 };
111 
112 #endif
113 
114 
115 
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent)
Generic filter that has one input..
a simple class to control print indentation
Definition: vtkIndent.h:38
Convolution of an image with a kernel.
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)
#define VTKIMAGINGGENERAL_EXPORT
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()