View source: R/voxel_array_from_point_cloud_function.R
voxel_array_from_point_cloud | R Documentation |
Function that takes a point cloud in XYZ-data.frame format and returns a 3D array of custom horizontal and vertical voxel resolution.
voxel_array_from_point_cloud(
XYZ.df,
global.h.max = NA,
res.xy = 5,
res.z = 5,
value.var = "Z",
func = "count"
)
XYZ.df |
Lidar point cloud in XYZ-data.frame format |
global.h.max |
Maximal Z of the array (if not set, the maximal Z of the point cloud is taken) |
res.xy |
Horizontal sidelength of the voxels |
res.z |
Vertical sidelength of the voxels |
value.var |
Variable (data.frame column) from which to derive the voxel values |
fun |
Aggregation function ("bool", "count", "min", "mean", "max", "sum") |
3D array
Nikolai Knapp
arr <- voxel.array.from.point.cloud(XYZ.df=pc, res.xy=10, res.z=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.