sfd_ | R Documentation |
Calculates the 3D fractal dimension of a raster using the triangular prism surface area method.
sfd_(mat)
mat |
A matrix. |
A numeric value representing the fractal dimension of the image.
Clarke, K.C., 1986. Computation of the fractal dimension of topographic surfaces using the triangular prism surface area method. Computers & Geosciences, 12(5), pp.713-722.
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# convert to matrix
mat <- matrix(normforest[], ncol = ncol(normforest), nrow = nrow(normforest))
# calculate the fractal dimension
Sfd <- sfd_(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.