nnFilter: Nearest neighborhood point filter

View source: R/methods.R

nnFilterR Documentation

Nearest neighborhood point filter

Description

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

Usage

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

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)

tiagodc/TreeLS documentation built on June 29, 2023, 7:40 p.m.