filter_noise | R Documentation |
Filter noise from TLS scene
filter_noise(las, k = 6L, sigma = 2, keep_noise = FALSE)
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. |
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).
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.