00001 /*========================================================================= 00002 00003 Library : Image Registration Toolkit (IRTK) 00004 Module : $Id: irtkConvolutionWithPadding_2D.h 2 2008-12-23 12:40:14Z dr $ 00005 Copyright : Imperial College, Department of Computing 00006 Visual Information Processing (VIP), 2008 onwards 00007 Date : $Date: 2008-12-23 12:40:14 +0000 (Tue, 23 Dec 2008) $ 00008 Version : $Revision: 2 $ 00009 Changes : $Author: dr $ 00010 00011 =========================================================================*/ 00012 00013 #ifndef _IRTKCONVOLUTIONWITHPADDING_2D_H 00014 00015 #define _IRTKCONVOLUTIONWITHPADDING_2D_H 00016 00027 template <class VoxelType> class irtkConvolutionWithPadding_2D : public irtkConvolution_2D<VoxelType> 00028 { 00029 00030 protected: 00031 00036 VoxelType _padding; 00037 00039 virtual const char *NameOfClass(); 00040 00048 virtual double Run(int, int, int, int); 00049 00050 public: 00051 00053 irtkConvolutionWithPadding_2D(VoxelType, Bool = False); 00054 00056 void PutPaddingValue(VoxelType); 00057 00059 VoxelType GetPaddingValue(); 00060 }; 00061 00062 #endif