srw | R Documentation |
Calculates the dominant radial wavelength, radial wavelength index, and mean half wavelength of the radial Fourier spectrum. See Kedron et al. (2018) for more detailed description.
srw(x, create_plot = FALSE, option = c(1, 2, 3))
x |
A raster or matrix. |
create_plot |
Logical. If |
option |
Numeric. Code for which output metric(s) to return. 1 = Srw, 2 = Srwi, 3 = Shw. |
A vector containing numeric values for the dominant radial wavelength, radial wavelength index, and mean half wavelength.
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# calculate metrics
srwvals <- srw(normforest)
# extract each value
Srw <- srwvals[1]
Srwi <- srwvals[2]
Shw <- srwvals[3]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.