53 sum += 2 * ( x32 - x12 );
58 sum += 2 * ( x22 - x12 );
63 sum += 2 * ( x32 - x22 );
103 sum += ( x11 - x13 );
108 sum += ( x12 - x13 );
113 sum += ( x11 - x12 );
120 sum += 2 * ( x21 - x23 );
125 sum += 2 * ( x22 - x23 );
130 sum += 2 * ( x21 - x22 );
137 sum += ( x31 - x33 );
142 sum += ( x32 - x33 );
147 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...