QgsSlopeFilter class

Calculates slope values in a window of 3x3 cells based on first order derivatives in x- and y- directions.

Contents

Base classes

class QgsDerivativeFilter
Adds the ability to calculate derivatives in x- and y-directions.

Public functions

auto processNineCellWindow(float* x11, float* x21, float* x31, float* x12, float* x22, float* x32, float* x13, float* x23, float* x33) -> float override
Calculates output value from nine input values.

Function documentation

float QgsSlopeFilter::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.

The input values and the output value can be equal to the nodata value if not present or outside of the border. Must be implemented by subclasses