itkConvolutionImageFilter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkConvolutionImageFilter_h
00018 #define __itkConvolutionImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk {
00023
00032 template<class TInputImage, class TOutputImage = TInputImage>
00033 class ITK_EXPORT ConvolutionImageFilter
00034 : public ImageToImageFilter<TInputImage, TOutputImage>
00035 {
00036 public:
00037 typedef ConvolutionImageFilter Self;
00038 typedef ImageToImageFilter<TInputImage, TOutputImage> Superclass;
00039 typedef SmartPointer<Self> Pointer;
00040 typedef SmartPointer<const Self> ConstPointer;
00041
00043 itkNewMacro( Self );
00044
00046 itkTypeMacro( ConvolutionImageFilter, ImageToImageFilter );
00047
00049 itkStaticConstMacro( ImageDimension, unsigned int,
00050 TInputImage::ImageDimension );
00051
00052
00053 typedef TInputImage InputImageType;
00054 typedef TOutputImage OutputImageType;
00055 typedef typename InputImageType::PixelType InputPixelType;
00056 typedef typename OutputImageType::PixelType OutputPixelType;
00057 typedef typename OutputImageType::RegionType OutputRegionType;
00058
00059 itkSetInputMacro( ImageKernel, InputImageType, 1 );
00060 itkGetInputMacro( ImageKernel, InputImageType, 1 );
00061
00065 itkSetMacro( Normalize, bool );
00066 itkGetConstMacro( Normalize, bool );
00067 itkBooleanMacro( Normalize );
00069
00075 virtual void GenerateInputRequestedRegion();
00076
00077
00078 protected:
00080 ConvolutionImageFilter();
00081 ~ConvolutionImageFilter();
00083
00084 void PrintSelf( std::ostream& os, Indent indent ) const;
00085 void ThreadedGenerateData(const OutputRegionType& outputRegionForThread, int threadId);
00086
00087 private:
00088 ConvolutionImageFilter( const Self& );
00089 void operator=( const Self& );
00090
00091 private:
00092 bool m_Normalize;
00093
00094 };
00095 }
00096
00097 #ifndef ITK_MANUAL_INSTANTIATION
00098 #include "itkConvolutionImageFilter.txx"
00099 #endif
00100
00101 #endif
00102