34 float *x12,
float *x22,
float *x32,
float *x13,
float *x23,
float *x33 )
58 sum += ( *x11 - *x22 ) * ( *x11 - *x22 );
62 sum += ( *x21 - *x22 ) * ( *x21 - *x22 );
66 sum += ( *x31 - *x22 ) * ( *x31 - *x22 );
70 sum += ( *x12 - *x22 ) * ( *x12 - *x22 );
74 sum += ( *x32 - *x22 ) * ( *x32 - *x22 );
78 sum += ( *x13 - *x22 ) * ( *x13 - *x22 );
82 sum += ( *x23 - *x22 ) * ( *x23 - *x22 );
86 sum += ( *x33 - *x22 ) * ( *x33 - *x22 );
89 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...