Description Usage Arguments Value Examples
'ForestTools' segmentation of individual tree crowns based on a canopy height model and initial seeding points (trees). Very fast algorithm based on the imagr watershed algorithm. Andrew Plowright: R package 'ForestTools'
1 2 3 4 5 6 7 8 |
treepos |
|
chm |
raster*. Canopy height model in |
minTreeAlt |
numeric. The minimum height value for a |
format |
character. Format of the function's output. Can be set to either 'raster' or 'polygons'. |
winRadius |
numeric the fixed radius written in the SPDF of the tree top file if not generated by Foresttools |
verbose |
to be quiet FALSE |
sp* object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | require(uavRst)
## get the data
data(chm_seg)
data(trp_seg)
## you may create the Foresttools tree tops
## otherwise the raster is transformed to a SPDF according to the FT format
#trp <- ForestTools::vwf(chm_seg[[1]], winFun = function(x){x * 0.06 + 0.5}, minHeight = 2)
## segmentation
crownsFT <- chmseg_FT(chm = chm_seg[[1]],
treepos = trp_seg[[1]],
format = "polygons",
minTreeAlt = 23,
winRadius = 1.5,
verbose = FALSE)
## Visualisation
raster::plot(crownsFT)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.