Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

manual

Individual Tree Detection Algorithm


Description

This function is made to be used in find_trees. It implements an algorithm for manual tree detection. Users can pinpoint the tree top positions manually and interactively using the mouse. This is only suitable for small-sized plots. First the point cloud is displayed, then the user is invited to select a rectangular region of interest in the scene using the right mouse button. Within the selected region the highest point will be flagged as 'tree top' in the scene. Once all the trees are labeled the user can exit the tool by selecting an empty region. Points can also be unflagged. The goal of this tool is mainly for minor correction of automatically-detected tree outputs.

Usage

manual(detected = NULL, radius = 0.5, color = "red", ...)

Arguments

detected

SpatialPointsDataFrame of already found tree tops that need manual correction.

radius

numeric. Radius of the spheres displayed on the point cloud (aesthetic purposes only).

color

character. Color of the spheres displayed on the point cloud (aesthetic purposes only).

...

supplementary parameters to be passed to plot.

See Also

Other individual tree detection algorithms: lmf()

Examples

## Not run: 
LASfile <- system.file("extdata", "MixedConifer.laz", package="lidR")
las = readLAS(LASfile)

# Full manual tree detection
ttops = find_trees(las, manual())

# Automatic detection with manual correction
ttops = find_trees(las, lmf(5))
ttops = find_trees(las, manual(ttops))

## End(Not run)

lidR

Airborne LiDAR Data Manipulation and Visualization for Forestry Applications

v3.1.2
GPL-3
Authors
Jean-Romain Roussel [aut, cre, cph], David Auty [aut, ctb] (Reviews the documentation), Florian De Boissieu [ctb] (Fixed bugs and improved catalog features), Andrew Sánchez Meador [ctb] (Implemented wing2015() for segment_snags()), Bourdon Jean-François [ctb] (Contributed to Roussel2020() for track_sensor()), Gatziolis Demetrios [ctb] (Implemented Gatziolis2019() for track_sensor())
Initial release
2021-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.