Package: SurfRough 0.0.1.2

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.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.

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

SurfRough_0.0.1.2.tar.gz
SurfRough_0.0.1.2.zip(r-4.7-x86_64)SurfRough_0.0.1.2.zip(r-4.7-arm64)SurfRough_0.0.1.2.zip(r-4.6-x86_64)SurfRough_0.0.1.2.zip(r-4.6-arm64)SurfRough_0.0.1.2.zip(r-4.5-x86_64)
SurfRough_0.0.1.2.tgz(r-4.6-x86_64)SurfRough_0.0.1.2.tgz(r-4.6-arm64)SurfRough_0.0.1.2.tgz(r-4.5-x86_64)SurfRough_0.0.1.2.tgz(r-4.5-arm64)
SurfRough_0.0.1.2.tar.gz(r-4.7-arm64)SurfRough_0.0.1.2.tar.gz(r-4.7-x86_64)SurfRough_0.0.1.2.tar.gz(r-4.6-arm64)SurfRough_0.0.1.2.tar.gz(r-4.6-x86_64)
SurfRough_0.0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
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
  • k1ck4 - Basic kernels
  • k2c - Basic kernels
  • k2ck2 - Basic kernels
  • k4c - Basic kernels
  • k6c - Basic kernels
  • k8c - Basic kernels

On CRAN:

Conda:

cpp

3.18 score 1 stars 1 scripts 256 downloads 17 exports 2 dependencies

Last updated from:3bb7dbcffc. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK152
linux-devel-x86_64OK172
source / vignettesOK171
linux-release-arm64OK141
linux-release-x86_64OK172
macos-release-arm64OK156
macos-release-x86_64OK451
macos-oldrel-arm64OK148
macos-oldrel-x86_64OK635
windows-devel-arm64OK387
windows-devel-x86_64OK199
windows-release-arm64OK386
windows-release-x86_64OK160
windows-oldrel-x86_64OK173
wasm-releaseOK111

Exports:circularDispersionGVcircularDispersionNViqrSTKernelCircularKernelRectangularMadscanMadscanLMeanscanRRIRRIcoreRRIK3RRIk4RRIMaxRRIMinstdSTTRIbiTrik2

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
iqrST: interquartile range in a moving windowiqrST
basic kernelsk05ck2
basic kernelsk1c
basic kernelsk1ck2
basic kernelsk1ck4
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 indicesMadscan
Calculate MAD basic indices (version for large files)MadscanL
Calculate less robust geostatistical indices (mean of absolute differences raised to an exponent)Meanscan
RRI: Radial Roughness indexRRI RRI.numeric RRI.SpatRaster
RRIcore: RRI using only the four inner second order directional differences of the RRI kernelRRIcore RRIcore.numeric RRIcore.SpatRaster
RRIK3: Radial Roughness index with differences of order 3RRIK3 RRIK3.numeric RRIK3.SpatRaster
RRIk4: Radial Roughness index with fourth order differencesRRIk4 RRIk4.numeric RRIk4.SpatRaster
RRIMax: Maximum Radial Roughness indexRRIMax RRIMax.numeric RRIMax.SpatRaster
RRIMin: Minimum Radial Roughness indexRRIMin RRIMin.numeric RRIMin.SpatRaster
stdST: standard deviation in a moving windowstdST
TRIbi: TRI with bilinear interpolation along diagonalsTRIbi TRIbi.numeric TRIbi.SpatRaster
Improved TRI (with differences of order 2), reducing/removing slope dependence (for testing purposes)Trik2
Improved TRI (with differences of order 2), reducing/removing slope dependence (for testing purposes)Trik2.numeric
Improved TRI (with differences of order 2), reducing/removing slope dependence (for testing purposes).Trik2.SpatRaster