Skip to main content

sylva_rs/
lib.rs

1//! sylva-rs: LiDAR processing for forest ecology and remote sensing research.
2//!
3//! Copyright (C) 2026 Tim Devereux, The University of Queensland. Free
4//! software under the GNU General Public License v3.0 or later; see the
5//! LICENSE file. There is no warranty, to the extent permitted by law.
6//!
7//! The crate is organised around two data models:
8//!
9//! * [`PointCloud`] — an `(N, 3)` set of coordinates plus named per-point
10//!   attributes, the unit of exchange with LAS/LAZ/PLY/text files.
11//! * [`Shots`] — pulse-centric data (per-pulse origin and direction, with a
12//!   CSR list of echoes), which is what ray-based canopy metrics need.
13//!
14//! Algorithms are grouped by topic: [`filters`], [`cluster`], [`ground`],
15//! [`canopy`], [`voxel`], [`trees`], [`registration`] and [`qsm`].
16
17pub mod als;
18pub mod canopy;
19pub mod change;
20pub mod cluster;
21pub mod coreg;
22pub mod error;
23pub mod filters;
24pub mod fusion;
25pub mod geo;
26pub mod ground;
27pub mod io;
28pub mod leaves;
29pub mod pointcloud;
30pub mod qsm;
31pub mod quality;
32pub mod raster;
33pub mod registration;
34pub mod riscan;
35pub mod shots;
36pub mod synthetic;
37pub mod transform;
38pub mod trees;
39pub mod util;
40pub mod voxel;
41pub mod waveform;
42
43pub use error::{Error, Result};
44pub use pointcloud::{Attr, PointCloud};
45pub use raster::Raster;
46pub use shots::Shots;
47pub use transform::Transform;
48
49/// A 3-D point.
50pub type Point = [f64; 3];