# NOT RUN {
# }
# NOT RUN {
# Establishment of working directories (optional)
# By default here we propose the current working directory of the R process
dir.data <- getwd()
dir.result <- getwd()
# Loading example data (LAS files) to dir.data
download.file("https://www.dropbox.com/s/2c3d320o3srcawb/1.las?raw=1",
destfile = file.path(dir.data, "1.las"),
method = "wininet", mode = "wb")
download.file("https://www.dropbox.com/s/9k8zn5dt0xcxfof/2.las?raw=1",
destfile = file.path(dir.data, "2.las"),
method = "wininet", mode = "wb")
# Obtaining a vector with names of LAS files located in dir.data
files <- list.files(pattern = "las$", path = dir.data)
# Tree detection
tree.list.tls <- tree.detection.multiple(files = files,
normalize.arguments = list(max.dist = 15,
min.height = 0.25,
max.height = 25),
tree.detection.arguments = list(dbh.min = 7.5,
dbh.max = 50,
breaks = 1.3,
tls.resolution = list(point.dist = 7.67,
tls.dist = 10)),
dir.data = dir.data, dir.result = dir.result)
# }
Run the code above in your browser using DataLab