chmseg_RL: Watershed segmentation based on 'rLiDAR'

Description Usage Arguments Value Examples

View source: R/fa_crownseg.R

Description

'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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
## 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)
 
## End(Not run) 

uavRst documentation built on Dec. 30, 2019, 5:06 p.m.