29 float *x12,
float *x22,
float *x32,
float *x13,
float *x23,
float *x33 )
53 sum += ( *x11 - *x22 ) * ( *x11 - *x22 );
57 sum += ( *x21 - *x22 ) * ( *x21 - *x22 );
61 sum += ( *x31 - *x22 ) * ( *x31 - *x22 );
65 sum += ( *x12 - *x22 ) * ( *x12 - *x22 );
69 sum += ( *x32 - *x22 ) * ( *x32 - *x22 );
73 sum += ( *x13 - *x22 ) * ( *x13 - *x22 );
77 sum += ( *x23 - *x22 ) * ( *x23 - *x22 );
81 sum += ( *x33 - *x22 ) * ( *x33 - *x22 );
84 return std::sqrt( sum );
float processNineCellWindow(float *x11, float *x21, float *x31, float *x12, float *x22, float *x32, float *x13, float *x23, float *x33) override
Calculates output value from nine input values.
QgsRuggednessFilter(const QString &inputFile, const QString &outputFile, const QString &outputFormat)
float mOutputNodataValue
The nodata value of the output layer.
float mInputNodataValue
The nodata value of the input layer.
Base class for raster analysis methods that work with a 3x3 cell filter and calculate the value of ea...