metrics_HOME | R Documentation |
The function provided here aims to mimic the HOME metric, which is a metric typically used with full-waveform lidar. HOME is calculated by identifying an elevation that splits the total intensity into two equal parts. Function is based on a similar metric implemented in LAStools.
metrics_HOME(z, i, zmin = NA)
.metrics_HOME
z |
Z coordinate of the point cloud (point heights) |
i |
Intensity |
zmin |
numeric. Minimum |
An object of class formula
of length 2.
Height of median energy
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_HOME(z = Z, i = Intensity))
m2 <- grid_metrics(las, ~metrics_HOME(z = Z, i = Intensity), res = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.