lidR tree detection not working
Ludwigm6 opened this issue · 1 comments
Ludwigm6 commented
Line 252 in d14e91b
The lidR tree_detection function changed and should now look something like this:
treepos_lidR <- function(las =NULL,
movingWin = 7,
minTreeAlt = 2) {
# if (class(treepos) %in% c("RasterLayer", "RasterStack", "RasterBrick")) {
# chm <- raster::raster(chm)
# }
localmaxima <- lidR::tree_detection(las = las, algorithm = lmf(ws = movingWin, hmin = minTreeAlt))
projection(localmaxima) <- chm@crs
return(localmaxima)
}