| std | R Documentation | 
Calculates the angle of dominating texture and the texture direction index of the Fourier spectrum image calculated from a raster image (see Kedron et al. 2018).
std(x, create_plot = FALSE, option = c(1, 2))
x | 
 A raster or matrix.  | 
create_plot | 
 Logical. If   | 
option | 
 Numeric. Code for which output metric(s) to return. 1 = Std, 2 = Stdi.  | 
A vector containing numeric values for the angle of dominating texture and the texture direction index.
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# calculate Std and Stdi
stdvals <- std(normforest)
# extract each value
Std <- stdvals[1]
Stdi <- stdvals[2]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.