52 sum += 2 * ( x32 - x12 );
57 sum += 2 * ( x22 - x12 );
62 sum += 2 * ( x32 - x22 );
102 sum += ( x11 - x13 );
107 sum += ( x12 - x13 );
112 sum += ( x11 - x12 );
119 sum += 2 * ( x21 - x23 );
124 sum += 2 * ( x22 - x23 );
129 sum += 2 * ( x21 - x22 );
136 sum += ( x31 - x33 );
141 sum += ( x32 - x33 );
146 sum += ( x31 - x32 );
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 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).
double mOutputNodataValue
The nodata value of the output layer.
double mInputNodataValue
The nodata value of the input layer.
double mZFactor
Scale factor for z-value if x-/y- units are different to z-units (111120 for degree->meters and 37040...