sfd: Calculate the fractal dimension of a raster.

View source: R/sfd.R

sfdR Documentation

Calculate the fractal dimension of a raster.

Description

Calculates the 3D fractal dimension of a raster using the triangular prism surface area method.

Usage

sfd(x, silent = FALSE)

Arguments

x

A raster or matrix.

silent

Logical. If FALSE (default), the function will print warning messages.

Value

A numeric value representing the fractal dimension of the image.

References

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.

Examples


# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)

# calculate the fractal dimension
Sfd <- sfd(normforest)

geodiv documentation built on Oct. 6, 2023, 1:07 a.m.