'rLiDAR' segmentation of individual tree crowns based on a canopy height model and initial seeding points (trees). Generic segmentation algorithm Carlos A. Silva et all.: R package rLiDAR

chmseg_RL(treepos = NULL, chm = NULL, maxCrownArea = 100, exclusion = 0.2)

Arguments

treepos

numeric. matrix or data.frame with three columns (tree xy coordinates and height). number of crown segments equal to the number of treetops.

chm

raster*. Canopy height model in raster or SpatialGridDataFrame file format. Should be the same that was used to create the input for treepos.

maxCrownArea

numeric. A single value of the minimum projected tree crown area allowed. Default is 100 sqm height of treepos.

exclusion

numeric. A single value from 0 to 1 that represents the percent of pixel exclusion.

Value

sp* object

Examples

if (FALSE) {
## required packages
 require(uavRst)
## read chm and tree position data
 data(chm_seg)
 data(trp_seg)
## segmentation
 crownsRL <- chmseg_RL(chm= chm_seg[[1]],
                       treepos= trp_seg[[1]],
                       maxCrownArea = 150,
                       exclusion = 0.2)
## visualisation
 raster::plot(crownsRL)
 }