18#ifndef QGSDERIVATIVEFILTER_H
19#define QGSDERIVATIVEFILTER_H
21#include "qgis_analysis.h"
33 QgsDerivativeFilter(
const QString &inputFile,
const QString &outputFile,
const QString &outputFormat );
35 float processNineCellWindow(
float *x11,
float *x21,
float *x31,
float *x12,
float *x22,
float *x32,
float *x13,
float *x23,
float *x33 )
override = 0;
39 float calcFirstDerX(
float x11,
float x21,
float x31,
float x12,
float x22,
float x32,
float x13,
float x23,
float x33 )
const;
41 float calcFirstDerY(
float x11,
float x21,
float x31,
float x12,
float x22,
float x32,
float x13,
float x23,
float x33 )
const;
QgsDerivativeFilter(const QString &inputFile, const QString &outputFile, const QString &outputFormat)
float calcFirstDerY(float x11, float x21, float x31, float x12, float x22, float x32, float x13, float x23, float x33) const
Calculates the first order derivative in y-direction according to Horn (1981).
float processNineCellWindow(float *x11, float *x21, float *x31, float *x12, float *x22, float *x32, float *x13, float *x23, float *x33) override=0
Calculates output value from nine input values.
float calcFirstDerX(float x11, float x21, float x31, float x12, float x22, float x32, float x13, float x23, float x33) const
Calculates the first order derivative in x-direction according to Horn (1981).
QgsNineCellFilter(const QString &inputFile, const QString &outputFile, const QString &outputFormat)
Constructor that takes input file, output file and output format (GDAL string).