Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkConvolutionImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkConvolutionImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-02-17 20:58:48 $
00007   Version:   $Revision: 1.4 $
00008 
00009   Copyright ( c ) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
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& ); //purposely not implemented
00089   void operator=( const Self& ); //purposely not implemented
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 

Generated at Thu May 28 09:44:02 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000