Skip to main content

spatialrust_filtering/
filter.rs

1use spatialrust_core::{PointCloud, SpatialResult};
2
3/// Point cloud filter interface.
4pub trait PointCloudFilter {
5    /// Human-readable filter name.
6    fn name(&self) -> &'static str;
7
8    /// Applies the filter and returns a new point cloud.
9    fn filter(&self, input: &PointCloud) -> SpatialResult<PointCloud>;
10}