metrics_kde | R Documentation |
Kernel density estimation applied to the distribution of point cloud elevation (Z). KDE allows to create a probability density function (using a Guassian kernel). The density function is then used to detect peaks (function maxima). Based on similar metric available in Fusion (see references), with significant differences in the list of output statistics as well as the default bandwidth used when estimating kernel density.
metrics_kde(z, bw = 2, zmin = NA, npeaks = 4, ...)
.metrics_kde
z |
Z coordinate of the point cloud (point heights) |
bw |
Numeric. Smoothing bandwidth of the |
zmin |
numeric. Minimum |
npeaks |
Numeric. Maximum number of recorded peaks. If the number of detected peaks is larger
than |
... |
Other parameters of the |
An object of class formula
of length 2.
A list. Number of peaks, elevation, and density value of each peak, distance (height difference) between peaks
McGaughey, R.J., 2021. FUSION/LDV: Software for LIDAR Data Analysis and Visualization. http://forsys.cfr.washington.edu/software/fusion/FUSION_manual.pdf
library(lidR)
library(lidRmetrics)
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las <- readLAS(LASfile, select = "*", filter = "-keep_random_fraction 0.5")
m1 <- cloud_metrics(las, ~metrics_kde(z = Z))
m2 <- pixel_metrics(las, ~metrics_kde(z = Z), res = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.