Height of median energy (HOME)
metrics_HOME.Rd
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.
Arguments
- z
Z coordinate of the point cloud (point heights)
- i
Intensity
- zmin
numeric. Minimum
z
value. If set,z
values (heights) below are ignored in calculations.
Examples
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)