VTK
dox/Imaging/General/vtkImageSeparableConvolution.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageSeparableConvolution.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00031 #ifndef __vtkImageSeparableConvolution_h
00032 #define __vtkImageSeparableConvolution_h
00033 
00034 
00035 #include "vtkImagingGeneralModule.h" // For export macro
00036 #include "vtkImageDecomposeFilter.h"
00037 
00038 class vtkFloatArray;
00039 
00040 class VTKIMAGINGGENERAL_EXPORT vtkImageSeparableConvolution : public vtkImageDecomposeFilter
00041 {
00042 public:
00043   static vtkImageSeparableConvolution *New();
00044   vtkTypeMacro(vtkImageSeparableConvolution,vtkImageDecomposeFilter);
00045 
00046 
00047   // Set the X convolution kernel, a null value indicates no convolution to
00048   // be done.  The kernel must be of odd length
00049   virtual void SetXKernel(vtkFloatArray*);
00050   vtkGetObjectMacro ( XKernel, vtkFloatArray );
00051 
00052   // Set the Y convolution kernel, a null value indicates no convolution to
00053   // be done The kernel must be of odd length
00054   virtual void SetYKernel(vtkFloatArray*);
00055   vtkGetObjectMacro ( YKernel, vtkFloatArray );
00056 
00057   // Set the Z convolution kernel, a null value indicates no convolution to
00058   // be done The kernel must be of odd length
00059   virtual void SetZKernel(vtkFloatArray*);
00060   vtkGetObjectMacro ( ZKernel, vtkFloatArray );
00061 
00062   void PrintSelf(ostream& os, vtkIndent indent);
00063 
00066   unsigned long int GetMTime();
00067 
00068 protected:
00069   vtkImageSeparableConvolution();
00070   ~vtkImageSeparableConvolution();
00071 
00072   vtkFloatArray* XKernel;
00073   vtkFloatArray* YKernel;
00074   vtkFloatArray* ZKernel;
00075 
00076   virtual int IterativeRequestData(vtkInformation*,
00077                                    vtkInformationVector**,
00078                                    vtkInformationVector*);
00079 
00080   virtual int IterativeRequestInformation(vtkInformation* in,
00081                                           vtkInformation* out);
00082   virtual int IterativeRequestUpdateExtent(vtkInformation* in,
00083                                            vtkInformation* out);
00084 
00085 private:
00086   vtkImageSeparableConvolution(const vtkImageSeparableConvolution&);  // Not implemented.
00087   void operator=(const vtkImageSeparableConvolution&);  // Not implemented.
00088 };
00089 
00090 #endif
00091 
00092 
00093 
00094 
00095 
00096 
00097 
00098 
00099 
00100