Package: SurfRough 0.0.1.1

SurfRough: Calculate Surface/Image Texture Indexes

Methods for the computation of surface/image texture indices using a geostatistical based approach (Trevisani et al. (2023) <doi:10.1016/j.geomorph.2023.108838>). 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. 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.

Authors:Sebastiano Trevisani [aut, cre], Ilich Alexander [ctb], Zakharko Taras [ctb]

SurfRough_0.0.1.1.tar.gz
SurfRough_0.0.1.1.zip(r-4.5)SurfRough_0.0.1.1.zip(r-4.4)SurfRough_0.0.1.1.zip(r-4.3)
SurfRough_0.0.1.1.tgz(r-4.5-x86_64)SurfRough_0.0.1.1.tgz(r-4.5-arm64)SurfRough_0.0.1.1.tgz(r-4.4-x86_64)SurfRough_0.0.1.1.tgz(r-4.4-arm64)SurfRough_0.0.1.1.tgz(r-4.3-x86_64)SurfRough_0.0.1.1.tgz(r-4.3-arm64)
SurfRough_0.0.1.1.tar.gz(r-4.5-noble)SurfRough_0.0.1.1.tar.gz(r-4.4-noble)
SurfRough_0.0.1.1.tgz(r-4.4-emscripten)SurfRough_0.0.1.1.tgz(r-4.3-emscripten)
SurfRough.pdf |SurfRough.html
SurfRough/json (API)

# Install 'SurfRough' in R:
install.packages('SurfRough', repos = c('https://strevisani.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/strevisani/surfrough/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • k05ck2 - Basic kernels
  • k1c - Basic kernels
  • k1ck2 - Basic kernels
  • k2c - Basic kernels
  • k2ck2 - Basic kernels
  • k4c - Basic kernels
  • k6c - Basic kernels
  • k8c - Basic kernels

On CRAN:

Conda-Forge:

cpp

3.60 score 1 stars 182 downloads 9 exports 2 dependencies

Last updated 16 hours agofrom:a76065a55e. Checks:12 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 06 2025
R-4.5-win-x86_64OKMar 06 2025
R-4.5-mac-x86_64OKMar 06 2025
R-4.5-mac-aarch64OKMar 06 2025
R-4.5-linux-x86_64OKMar 06 2025
R-4.4-win-x86_64OKMar 06 2025
R-4.4-mac-x86_64OKMar 06 2025
R-4.4-mac-aarch64OKMar 06 2025
R-4.4-linux-x86_64OKMar 06 2025
R-4.3-win-x86_64OKMar 06 2025
R-4.3-mac-x86_64OKMar 06 2025
R-4.3-mac-aarch64OKMar 06 2025

Exports:circularDispersionGVcircularDispersionNVKernelCircularKernelRectangularMadscanMeanscanRRIRRIK3Trik2

Dependencies:Rcppterra

Readme and manuals

Help Manual

Help pageTopics
Calculate the direction of maximum continuity considering 4 directionsanisoDir
Calculate the direction of maximum continuity considering 4 directionsanisoDirL
Calculate the index of anisotropy considering the spatial variability along 4 directionsanisoR
Calculate the index of anisotropy considering the spatial variability along 4 directionsanisoRL
Calculate the mean of absolute values raised to an exponent found in a search windowCalcMeans
Calculate the median of absolute values found in a search window for each raster in a listCalcMedians
Compute circular variance of aspect (i.e. of the gradient vector)circularDispersionGV
Compute circular variance of normal vectors to surfacecircularDispersionNV
Compute circular variance of normal vectors to surfacecircularEigenNV
basic kernelsk05ck2
basic kernelsk1c
basic kernelsk1ck2
basic kernelsk2c
basic kernelsk2ck2
basic kernelsk4c
basic kernelsk6c
basic kernelsk8c
Build a circular moving windowKernelCircular
Build a rectangular kernel of size X x YKernelRectangular
Calculate MAD basic indexesMadscan
Calculate less robust geostatistical indexes (mean of absolute differences raised to an exponent)Meanscan
RRI: Radial Roughness indexRRI RRI.numeric RRI.SpatRaster
RRIK3: Radial Roughness index with differences of order 3RRIK3 RRIK3.numeric RRIK3.SpatRaster
Improved TRI (with differences of order 2), reducing/removing slope dependence.Trik2
Improved TRI (with differences of order 2), reducing/removing slope dependence.Trik2.numeric
Improved TRI (with differences of order 2), reducing/removing slope dependence.Trik2.SpatRaster