How r-lidar/arbor works
Arbor is an R-accessible C++ pipeline that turns forest mobile-laser-scanning point clouds into ground, semantic and individual-tree classifications, then reconstructs quantitative structure models (QSMs). The README’s example establishes the user-facing stage order; source excerpts and the index support the point-cloud, graph, fitting and QSM internals shown here. Some documented stages are represented by their existing source directories because their implementation files were not sampled. Edges reflect documented workflow or visible source references; unsampled internals are not inferred.
Main entry points: arbor.h Arbor API · segment_semantic_api.cpp Semantic segmentation · GraphBuilder.cpp Neighborhood graph · R R interface
Components 19
API and point clouds
- R interface
src/R - Arbor API
src/api/arbor.h - Point cloud
src/pointcloud/PointCloud.h
Point-cloud classification
- Ground segmentation
src/segment - Wood likelihood
src/segment - Semantic segmentation
src/segment/segment_semantic_api.cpp - Neighborhood graph
src/segment/GraphBuilder.cpp - Tree seeds
src/seed/SeedDetector.cpp - Instance segmentation
src/segment
QSM reconstruction
- QSM model
src/qsm/QSM.h - QSM builder
src/qsm/QSMbuilder.h - Radius fitting
src/qsm/QSMbuilder_radius.cpp - QSM collection
src/qsf/QSF.h
Shared algorithms
- Geometric fitting
src/fitting - Allometry
src/utils/allometry.h - 3D grid
src/utils/Grid3D.h - Runtime services
src/utils/services.cpp - KD-tree search
src/nanoflann/nanoflann.h
Other components
- R user
Connections 20
- R user → R interface: calls
- R interface → Ground segmentation: runs
src/R/RcppApi_tools.cpp - Ground segmentation → Wood likelihood: then computes
- Wood likelihood → Semantic segmentation: then segments
src/segment/segment_semantic_api.cpp - Semantic segmentation → Tree seeds: then finds
- Tree seeds → Instance segmentation: then segments
- Instance segmentation → QSM builder: then reconstructs
- R interface → Arbor API: uses API
src/R/RcppApi_params.h - Arbor API → Point cloud: uses
src/api/arbor.h - Arbor API → QSM model: uses
src/api/arbor.h - Arbor API → QSM collection: uses
src/api/arbor.h - Neighborhood graph → Point cloud: queries
src/segment/GraphBuilder.cpp - Neighborhood graph → KD-tree search: searches via
- Semantic segmentation → Neighborhood graph: uses
src/segment/segment_semantic_api.cpp - Semantic segmentation → 3D grid: uses
src/segment/segment_semantic_api.cpp - QSM builder → QSM model: builds
src/qsm/QSMbuilder.h - Radius fitting → Geometric fitting: fits with
src/qsm/QSMbuilder_radius.cpp - Radius fitting → Allometry: estimates with
src/qsm/QSMbuilder_radius.cpp - Neighborhood graph → Runtime services: logs via
src/segment/GraphBuilder.cpp - QSM builder → Point cloud: accepts