Learn R Programming

CspStandSegmentation is an R-package for the segmentation of single trees from forest point clouds scanned with terrestrial, mobile or unmanned LiDAR systems

Authors: Julian Frey and Zoe Schindler, University of Freiburg, Chair of Forest Growth and Dendroecology

Installation

We are on CRAN

Copy Link

Version

Install

install.packages('CspStandSegmentation')

Monthly Downloads

234

Version

0.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Julian Frey

Last Published

February 17th, 2026

Functions in CspStandSegmentation (0.2.0)

point_center_angle

Returns the angle between the center of the circle and a point in degrees
voxelize_points_mean_attributes

helper function to voxelize a las element
find_base_coordinates_raster

Find stem base position using a density raster approach
forest_inventory

Function to perform a forest inventory based on a segmented las object (needs to contain TreeID)
eigen_decomposition

Fast Eigenvalues decomposition for k nearest neighbors using a C++ function
fast_unlist_dist

helper function to unlist distances computed by dbscan::frNN
fast_unlist

helper function to unlist IDs generated by dbscan::frNN
comparative_shortest_path

helper function for csp_cost_segemntation
fds

Farthest Distance Sampling (Farthest Point Sampling)
add_voxel_coordinates

Add voxel coordinates to a las file
find_base_coordinates_geom

Find stem base position using a geometric feature filtering and clustering approach
add_geometry

Add geometric features to a LAS object
add_las_attributes

Add all las_attributes from las@data to the header of a las element
csp_cost_segmentation

Comparative Shortest Path with cost weighting tree segmentation
plot_inventory

Function to plot the inventory results into a lidR 3d plot of the point cloud
las_merge

Makes one las-object from multiple las-objects
forest_inventory_simple

Function to perform a forest inventory based on a segmented las object (needs to contain TreeID) This version is a faster but more simplistic approach than forest_inventory() for the DBH estimates
ransac_circle_fit

RANSAC circle fitting algorithm specially adapted for tree DBH estimation
suppress_cat

Suppress only the cat() output
point_circle_distance

Helper function to compute distances from a point to the circle
p_dist

Point distance function
p_mat_dist

Point distance function