Learn R Programming

CspStandSegmentation (version 0.2.0)

voxelize_points_mean_attributes: helper function to voxelize a las element

Description

Calculate voxel mean values for all numeric attributes in the las@data table including the XYZ-coordinates.

Usage

voxelize_points_mean_attributes(las, res)

Value

a las element with XYZ-coordinates as the voxel center and X_gr,Y_gr,Z_gr as the center of gravity (mean point coordinates) as well as all other numeric columns voxel mean values with their original name.

Arguments

las

a lidR::LAS element

res

voxel resolution in meter

Author

Julian Frey <julian.frey@wwd.uni-freiburg.de>

See Also

voxelize_points

Examples

Run this code

# read example data
file = system.file("extdata", "beech.las", package="CspStandSegmentation")
las = lidR::readTLSLAS(file)
vox <- las |> voxelize_points_mean_attributes(1)


Run the code above in your browser using DataLab