if (FALSE) {
LASfile <- system.file("extdata", "Topography.laz", package="lidR")
las <- readLAS(LASfile)
dtm <- rasterize_terrain(las, algorithm = tin())
ttops <- locate_trees(las, lmf(ws = 5))
plot_dtm3d(dtm)
x <- plot(las)
add_dtm3d(x, dtm)
add_treetops3d(x, ttops)
plot(las) |> add_dtm3d(dtm) |> add_treetops3d(ttops)
}
Run the code above in your browser using DataLab