Learn R Programming

TreeLS (version 1.0)

tlsSample: Resample a point cloud

Description

Applies an algorithm that returns a thinned point cloud.

Usage

tlsSample(las, method = voxelize())

Arguments

las

LAS object.

method

point sampling algorithm - currently available: voxelize or randomize

Value

LAS object.

Examples

Run this code
# NOT RUN {
file = system.file("extdata", "pine.laz", package="TreeLS")
tls = readTLS(file)
summary(tls)

## sample points systematically in 3D
vx = tlsSample(tls, voxelize(0.05))
summary(vx)

## sample points randomly
rd = tlsSample(tls, randomize(0.5))
summary(rd)

# }

Run the code above in your browser using DataLab