DFDX filter

The DFDX filter is a standard linear filter which works in a 1 by 5 environment. It calculates the first derivative in x-direction (df/dx) per pixel. The values in the matrix are:

  

1

-8

 0

 8

-1

  

Gain factor = 1/12 = 0.0833333

When using the DFDX filter on a DEM:

Tip:

To find the real first derivative (per meter), the output values have to be divided by the pixel size of the map. You can use the MapCalc expression:

  

DXOUT

=

OUTDFDX / PixSize(OUTDFDX)

See also: