Filter points of interest with matching conditions
Filter points of interest (POI) from a LAS object where conditions are true.
filter_poi(las, ...)
las |
An object of class |
... |
Logical predicates. Multiple conditions are combined with '&' or ',' |
An object of class LAS
Other filters:
filter_duplicates(),
filter_surfacepoints(),
filters
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
lidar = readLAS(LASfile)
# Select the first returns classified as ground
firstground = filter_poi(lidar, Classification == 2L & ReturnNumber == 1L)
# Multiple arguments are equivalent to &
firstground = filter_poi(lidar, Classification == 2L, ReturnNumber == 1L)
# Multiple criteria
first_or_ground = filter_poi(lidar, Classification == 2L | ReturnNumber == 1L)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.