View source: R/traits_from_point_cloud.R
| voxel_hull_2D | R Documentation |
This function generates an 'sf' object representing th vertical crown area of a 'LAS' object by voxelizing a 2D vertical projection.
voxel_hull_2D(las, resolution = 0.1, angle = 0)
las |
'LAS' object from 'lidR' package representing the CROWN of a tree. Crowns must be segmented using [segment_crown()]. |
resolution |
numeric - resolution of voxelization |
angle |
numeric - in degrees, rotation angle about Z axis. |
An 'sf' polygon representing the voxel-based vertical crown hull.
las = lidR::readLAS(system.file("extdata", "tree_0744.laz", package="tReeTraits"))
las = clean_las(las)
cbh = get_crown_base(las, threshold=0.25, sustain=2)
las = segment_crown(las, cbh)
get_crown_volume_voxel(las)
get_crown_volume_alpha(las)
sf::st_area(convex_hull_2D(las)) #profile area, convex hull
sf::st_area(voxel_hull_2D(las)) #profile area, voxel hull
get_lacunarity(las)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.