treepos_lidR: tree top detection based on local maxima filters as provided...

Description Usage Arguments Value Examples

View source: R/fa_treepos.R

Description

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

Usage

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

Arguments

chm

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.

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
16
## Not run: 
require(uavRst)
## required packages
require(uavRst)

 data(chm_seg)

## find trees
tPoslidR <- treepos_lidR(chm = chm_seg[[1]],
                    movingWin = 3,
                    minTreeAlt = 15)
## visualisation
# mapview::mapview(tPoslidR)
raster::plot(tPoslidR)

## End(Not run)

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