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
587 stars 132 forks source link

Watershed #662

Closed felipenorconsult closed 1 year ago

felipenorconsult commented 1 year ago

Hi,

I've been using your R package for tree segmentation quite some time, but suddenly it wouldn’t work for any reason:

algo <- watershed(chm_s, th_tree = 4) Error in watershed(chm_s, th_tree = 4) : unused argument (th = 4)

Jean-Romain commented 1 year ago

Weird. I don't think it comes from lidR. Do you have another package loaded that provides a function named watershed? What if you write lidR::watershed(chm_s, th_tree = 4)

felipenorconsult commented 1 year ago

Hi JR

Thanks a lot, that did the trick. 😊