1 /* 2 * imagesource_unsharpmask.h - Sharpen filter 3 * 4 * Copyright (c) 2008 by Alastair M. Robinson 5 * Distributed under the terms of the GNU General Public License - 6 * see the file named "COPYING" for more details. 7 * 8 */ 9 10 #ifndef IMAGESOURCE_CONVOLUTION_H 11 #define IMAGESOURCE_CONVOLUTION_H 12 13 #include "imagesource.h" 14 #include "convkernel.h" 15 16 class ISConvolution_RowCache; 17 18 class ImageSource_Convolution : public ImageSource 19 { 20 public: 21 ImageSource_Convolution(ImageSource *source,ConvKernel *kernel); 22 ~ImageSource_Convolution(); 23 ISDataType *GetRow(int row); 24 protected: 25 ImageSource *source; 26 ConvKernel *kernel; 27 int hextra,vextra; 28 ISConvolution_RowCache *cache; 29 float **tmprows; 30 friend class ISConvolution_RowCache; 31 }; 32 33 #endif 34