View source: R/geom_features.R
geom_features | R Documentation |
Compute local geometric features of the point cloud based on the eigenvalues of the points covariance matrix. This function uses the python implementation provided in jakteristics.
geom_features(las, search_radius, features_list)
las |
a LAS file. |
search_radius |
numeric. The search distance to retrieve point neighborhood. |
features_list |
(optional) character. A vector containing the list of the geometric features to compute. Can be: "Eigenvalue_sum","Omnivariance", "Eigenentropy","Anisotropy","Planarity", "Linearity","PCA1","PCA2","Surface_variation","Sphericity","Verticality", "Nx","Ny","Nz". |
The LAS file with the geometric features added as new columns in the slot data. NOTE: the names of the features is a contraction of the feature name and search_radius.
# import data
file = system.file("extdata", "urban.las", package="lidUrb")
las = lidR::readLAS(file)
# compute all features
las = lidUrb::geom_features(las,search_radius = 0.1)
# plot Planarity and Linearity
lidR::plot(las,color="Planarity")
lidR::plot(las,color="Linearity")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.