00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef QGSDERIVATIVEFILTER_H
00019 #define QGSDERIVATIVEFILTER_H
00020
00021 #include "qgsninecellfilter.h"
00022
00024 class QgsDerivativeFilter: public QgsNineCellFilter
00025 {
00026 public:
00027 QgsDerivativeFilter( const QString& inputFile, const QString& outputFile, const QString& outputFormat );
00028 virtual ~QgsDerivativeFilter();
00029
00030 virtual float processNineCellWindow( float* x11, float* x21, float* x31, float* x12, float* x22, \
00031 float* x32, float* x13, float* x23, float* x33 ) = 0;
00032
00033 protected:
00035 float calcFirstDerX( float* x11, float* x21, float* x31, float* x12, float* x22, float* x32, float* x13, float* x23, float* x33 );
00037 float calcFirstDerY( float* x11, float* x21, float* x31, float* x12, float* x22, float* x32, float* x13, float* x23, float* x33 );
00038 };
00039
00040 #endif // QGSDERIVATIVEFILTER_H