r-lidar / lidR

Airborne LiDAR data manipulation and visualisation for forestry application
https://CRAN.R-project.org/package=lidR
GNU General Public License v3.0
582 stars 130 forks source link

Individual tree segmentation -> dalponte2016 #713

Closed utzdrechsler closed 8 months ago

utzdrechsler commented 11 months ago

This is the code from the lidrBook that I have used.

algo <- dalponte2016(chm_p2r_05_smoothed, ttops_chm_p2r_05_smoothed)
algo <- segment_trees(las, algo) # segment point cloud
plot(algo, bg = "white", size = 4, color = "treeID") # visualize trees

The derived chm and ttop segmentation are from the chapter before and both work. When I try to run dalponte2016 I get the followin error message: Error in loadNamespace(x) : there is no package ‘future’

Anybody else got the same issue and knows what to do?

utzdrechsler commented 11 months ago

Sorry it was very simple:

install.packages("future") library(future)

Jean-Romain commented 11 months ago

Simple to solve yet there is a bug. It should work without future.

Jean-Romain commented 8 months ago

Fixed