51 sum += ( *x11 - *x22 ) * ( *x11 - *x22 );
55 sum += ( *x21 - *x22 ) * ( *x21 - *x22 );
59 sum += ( *x31 - *x22 ) * ( *x31 - *x22 );
63 sum += ( *x12 - *x22 ) * ( *x12 - *x22 );
67 sum += ( *x32 - *x22 ) * ( *x32 - *x22 );
71 sum += ( *x13 - *x22 ) * ( *x13 - *x22 );
75 sum += ( *x23 - *x22 ) * ( *x23 - *x22 );
79 sum += ( *x33 - *x22 ) * ( *x33 - *x22 );
82 return std::sqrt( sum );
Base class for raster analysis methods that work with a 3x3 cell filter and calculate the value of ea...
double mOutputNodataValue
The nodata value of the output layer.
double mInputNodataValue
The nodata value of the input layer.
QgsRuggednessFilter(const QString &inputFile, const QString &outputFile, const QString &outputFormat)
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.