simplify_skeleton | R Documentation |
Simplify a skeleton by removing unnecessary cylinders
simplify_skeleton(aRchi, seg_length = 0.1) ## S4 method for signature 'aRchi' simplify_skeleton(aRchi, seg_length = 0.1)
aRchi |
an object of class aRchi containing at least a QSM. |
seg_length |
numeric. The target maximal cylinder length. See details. |
Simplifies a QSM by merging short cylinders into longer cylinders with a length close to a user defined target length. Note that short cylinders are kept if they support a branching point so that the overall QSM geometry is not affected by the simplification process.
a aRchi file with the simplified QSM.
# import a point cloud tls=system.file("extdata","Tree_2_point_cloud.las",package = "aRchi") tls = lidR::readLAS(tls) aRchi = aRchi::build_aRchi() aRchi = aRchi::add_pointcloud(aRchi,point_cloud = tls) # build a skeleton from the point cloud aRchi = aRchi::skeletonize_pc(aRchi) # simplyfy the skeleton aRchi = aRchi::simplify_skeleton(aRchi,seg_length = 0.05) # plot the simplifyed skeleton plot(aRchi,show_point_cloud = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.