# NOT RUN {
#- import the tree_line_plot dataset
file <- system.file("extdata", "tree_line_plot.laz", package="viewshed3d")
tls <- lidR::readLAS(file,select="xyz")
#- remove duplicated points
tls <- lidR::filter_duplicates(tls)
#- filter noise with the quantile base method
data <- viewshed3d::denoise_scene(tls,
method="quantile",
filter=0.999,
k=5,
store_noise = TRUE)
lidR::plot(data,color="Noise",colorPalette=c("white","red")) # plot
#- filter noise with the standard deviation based method
data <- viewshed3d::denoise_scene(tls,
method="sd",
filter=4,
k=5,
store_noise = TRUE)
lidR::plot(data,color="Noise",colorPalette=c("white","red")) # plot
#- filter noise with the voxel based method
data <- viewshed3d::denoise_scene(tls,
method="voxel",
filter=0.5,
store_noise = TRUE)
lidR::plot(data,color="Noise",colorPalette=c("white","red")) # plot
# }
Run the code above in your browser using DataLab