SurfRough0.0.1.2 package

Calculate Surface/Image Texture Indexes

anisoDir

Calculate the direction of maximum continuity considering 4 directions

anisoDirL

Calculate the direction of maximum continuity considering 4 directions

anisoR

Calculate the index of anisotropy considering the spatial variability ...

anisoRL

Calculate the index of anisotropy considering the spatial variability ...

CalcMeans

Calculate the mean of absolute values raised to an exponent found in a...

CalcMedians

Calculate the median of absolute values found in a search window for e...

circularDispersionGV

Compute circular variance of aspect (i.e. of the gradient vector)

circularDispersionNV

Compute circular variance of normal vectors to surface

circularEigenNV

Compute circular variance of normal vectors to surface

iqrST

iqrST: interquartile range in a moving window

k05ck2

basic kernels

k1c

basic kernels

k1ck2

basic kernels

RRIMax

RRIMax: Maximum Radial Roughness index

k1ck4

basic kernels

k2c

basic kernels

k2ck2

basic kernels

k4c

basic kernels

RRIMin

RRIMin: Minimum Radial Roughness index

k6c

basic kernels

k8c

basic kernels

KernelCircular

Build a circular moving window

KernelRectangular

Build a rectangular kernel of size X x Y

Madscan

Calculate MAD basic indices

MadscanL

Calculate MAD basic indices (version for large files)

Meanscan

Calculate less robust geostatistical indices (mean of absolute differe...

RRI

RRI: Radial Roughness index

RRIcore

RRIcore: RRI using only the four inner second order directional differ...

RRIK3

RRIK3: Radial Roughness index with differences of order 3

RRIk4

RRIk4: Radial Roughness index with fourth order differences

stdST

stdST: standard deviation in a moving window

TRIbi

TRIbi: TRI with bilinear interpolation along diagonals

Trik2.numeric

Improved TRI (with differences of order 2), reducing/removing slope de...

Trik2

Improved TRI (with differences of order 2), reducing/removing slope de...

Trik2.SpatRaster

Improved TRI (with differences of order 2), reducing/removing slope de...

Methods for the computation of surface/image texture indices using a geostatistical based approach (Trevisani et al. (2023) <doi:10.1016/j.catena.2023.106927> and Trevisani and Guth (2025) <doi:10.3390/rs17233864>). It provides various functions for the computation of surface texture indices (e.g., omnidirectional roughness and roughness anisotropy), including the ones based on the robust MAD estimator. The kernels included in the software permit also to calculate the surface/image texture indices directly from the input surface (i.e., without de-trending) using increments of order 2 and of order 4. It also provides the new radial roughness index (RRI), representing the improvement of the popular topographic roughness index (TRI). The framework can be easily extended with ad-hoc surface/image texture indices.

  • Maintainer: Sebastiano Trevisani
  • License: MIT + file LICENSE
  • Last published: 2026-01-27