filter_noise: Filter noise from TLS scene

View source: R/filter_noise.R

filter_noiseR Documentation

Filter noise from TLS scene

Description

Filter noise from TLS scene

Usage

filter_noise(las, k = 6L, sigma = 2, keep_noise = FALSE)

Arguments

las

a LAS class object.

k

numeric. the number of nearest neighbors to compute distance.

sigma

numeric. The multiplier of the distance standard deviation to class points as noise.

keep_noise

logical. If TRUE the points classified as noise are kept in the point cloud and are labeled in the is.noise fields, if FALSE points classified as noise are removed.

Value

the LAS with a new field specifying if the points are noise (if keep_nois is TRUE) or the LAS without noise points (if keep_noise is FALSE).

Examples


# import data
file = system.file("extdata", "urban.las", package="lidUrb")
las = lidR::readLAS(file)

# filter noise and store it for ploting
las = lidUrb::filter_noise(las,keep_noise = TRUE)

# plot noise in red
lidR::plot(las,color="is.noise")


Blecigne/lidUrb documentation built on Feb. 19, 2024, 9:12 a.m.