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).
Usage
std(x, create_plot = FALSE, option = c(1, 2))
Value
A vector containing numeric values for the angle of
dominating texture and the texture direction index.
Arguments
x
A raster or matrix.
create_plot
Logical. If TRUE, returns a plot of the
amplitude spectrum with lines showing directions in which
amplitude is summed for the Std and Stdi calculations.
Plotting is not possible when input is a matrix.
option
Numeric. Code for which output metric(s) to return. 1 = Std, 2 = Stdi.