nnFilter: Nearest neighborhood point filter

Description Usage Arguments Value Examples

View source: R/methods.R

Description

Remove isolated points from a LAS point cloud based on their neighborhood distances.

Usage

1
nnFilter(las, d = 0.05, n = 2)

Arguments

las

LAS object.

d

numeric - search radius.

n

numeric - number of neighbors within d distance a point must have to be kept in the output.

Value

LAS object.

Examples

1
2
3
4
5
6
file = system.file("extdata", "spruce.laz", package="TreeLS")
tls = readTLS(file)
nrow(tls@data)

nn_tls = nnFilter(tls, 0.05, 3)
nrow(nn_tls@data)

TreeLS documentation built on Aug. 26, 2020, 5:14 p.m.