18 #ifndef QGSNINECELLFILTER_H
19 #define QGSNINECELLFILTER_H
23 #include "qgis_analysis.h"
38 QgsNineCellFilter(
const QString &inputFile,
const QString &outputFile,
const QString &outputFormat );
46 int processRaster(
QgsFeedback *feedback =
nullptr );
53 double zFactor()
const {
return mZFactor; }
79 virtual float processNineCellWindow(
float *x11,
float *x21,
float *x31,
80 float *x12,
float *x22,
float *x32,
81 float *x13,
float *x23,
float *x33 ) = 0;
93 GDALDriverH openOutputDriver();
105 int processRasterCPU(
QgsFeedback *feedback =
nullptr );
115 int processRasterGPU(
const QString &source,
QgsFeedback *feedback =
nullptr );
122 virtual void addExtraRasterParams( std::vector<float> ¶ms )
127 virtual const QString openClProgramBaseName()
const
140 double mCellSizeX = -1.0;
141 double mCellSizeY = -1.0;
143 float mInputNodataValue = -1.0;
145 float mOutputNodataValue = -1.0;
147 double mZFactor = 1.0;
150 #endif // QGSNINECELLFILTER_H