# NOT RUN {
LASfile <- system.file("extdata", "Topography.laz", package="lidR")
las <- readLAS(LASfile, select = "xyzrn")
# Using the Cloth Simulation Filter
# --------------------------------------
las <- lasground(las, csf())
plot(las, color = "Classification")
# Using the Progressive Morphological Filter
# --------------------------------------
ws <- seq(3,12, 3)
th <- seq(0.1, 1.5, length.out = length(ws))
las <- lasground(las, pmf(ws, th))
plot(las, color = "Classification")
# }
Run the code above in your browser using DataLab