sfd_: Calculate the fractal dimension of a raster (C function).

Description Usage Arguments Value References Examples

View source: R/RcppExports.R

Description

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

Usage

1
sfd_(mat)

Arguments

mat

A matrix.

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

1
2
3
4
5
6
7
8
# import raster image
data(normforest)

# convert to matrix
mat <- raster::as.matrix(normforest)

# calculate the fractal dimension
Sfd <- sfd_(mat)

geodiv documentation built on Sept. 5, 2021, 5:26 p.m.