cloud2vox: Voxel grid reduction of a point cloud.

Description Usage Arguments Value Author(s) Examples

View source: R/cloud2vox.R

Description

Converts point cloud (x y z) to a voxel grid with defined voxel size.

Usage

1
cloud2vox(input_cloud = "*.xyz", voxel_size = 0.03, set_z_to_zero = FALSE)

Arguments

input_cloud

A file or data.frame containing a tree point cloud with x y z. If file, it assumes first three columns to be x y z without header. Futher columns are ignored.

voxel_size

Size of the voxels (in meter) in the reduced (gridded) point cloud. Default 0.03

set_z_to_zero

Set lowest tree point (z axis) to zero. Default to FALSE.

Value

The reduced point cloud voxel grid as data.frame with column names x y z.

Author(s)

Matthias Kunz, last updated: 27.04.2019

Examples

1
cloud2vox("tree1.xyz", 0.03) # 0.7853982

spatial-mk/tre3d documentation built on April 1, 2020, 5:26 p.m.