treepos_RL: 'rLiDAR' based tree detection of a LiDAR-derived Canopy...

Description Usage Arguments Value Examples

View source: R/fa_treepos.R

Description

Detects and computes the location and height of individual trees within the LiDAR-derived Canopy Height Model (CHM). The algorithm implemented in this function is local maximum with a fixed window size. Carlos A. Silva et all.: R package rLiDAR

Usage

1
treepos_RL(chm = NULL, movingWin = 7, minTreeAlt = 2)

Arguments

chm

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

movingWin

Size (in pixels) of the moving window to detect local maxima.

minTreeAlt

Height threshold (m) below a pixel cannot be a local maximum. Local maxima values are used to define tree tops.

Value

raster* object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
## required packages
require(uavRst)

## load data
data(chm_seg)

## find trees
tPosRL <- treepos_RL(chm = chm_seg[[1]],
                    movingWin = 3,
                    minTreeAlt = 10)
## visualisation
raster::plot(tPosRL)

## End(Not run)

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