R/fa_treepos.R
treepos_lidR.Rd
Tree top detection based on local maxima filters. There are two types of filter. The first,
called for gridded objects, works on images with a matrix-based algorithm. And the second one, called for
point clouds, works at the point cloud level without any rasterization. Jean-Romain Roussel and David Auty:
R package lidR
treepos_lidR(chm = NULL, movingWin = 7, minTreeAlt = 2)
Canopy height model in raster
, lasmetrics
, matrix
or object of class LAS
.
Should be the same that was used to create
the input for treepos
.
Size (in pixels) of the moving window to detect local maxima.
Height threshold (m) below a pixel cannot be a local maximum. Local maxima values are used to define tree tops.
raster* object