pub struct MlsSmoothing { /* private fields */ }Expand description
Moving Least Squares smoothing filter.
Implementations§
Source§impl MlsSmoothing
impl MlsSmoothing
Sourcepub fn smoothed_positions(
&self,
input: &PointCloud,
) -> SpatialResult<Vec<Vec3<f32>>>
pub fn smoothed_positions( &self, input: &PointCloud, ) -> SpatialResult<Vec<Vec3<f32>>>
Returns the smoothed XYZ positions, one per input point.
Shares one KD-tree between bounded scoped CPU workers using the same staging policy as neighborhood outlier filters. Small clouds and one available worker retain serial execution. Point order, neighborhood order and each fit’s floating-point operation order are preserved.
Sourcepub fn smoothed_positions_with_gpu(
&self,
runtime: &WgpuRuntime,
input: &PointCloud,
neighbor_capacity: u32,
) -> SpatialResult<GpuMlsPositionResult>
pub fn smoothed_positions_with_gpu( &self, runtime: &WgpuRuntime, input: &PointCloud, neighbor_capacity: u32, ) -> SpatialResult<GpuMlsPositionResult>
Explicitly uploads input, computes GPU radius neighborhoods, weighted frames and order-0/1/2 polynomial fits, and downloads positions/status. CPU tree construction remains; no automatic CPU fallback. Capacity includes self and must fit all radius matches. GPU configuration requires finite XYZ/extents and a positive finite nonzero f32 radius square, stricter than CPU MLS. GPU normalized f32 math/rank tests can change coordinates and fit/fallback decisions compared with CPU f64. Numerical underflow errors propagate; insufficient support and singular fits use device fallbacks.
Sourcepub fn filter_with_gpu(
&self,
runtime: &WgpuRuntime,
input: &PointCloud,
neighbor_capacity: u32,
) -> SpatialResult<GpuMlsFilterResult>
pub fn filter_with_gpu( &self, runtime: &WgpuRuntime, input: &PointCloud, neighbor_capacity: u32, ) -> SpatialResult<GpuMlsFilterResult>
Explicit GPU MLS filtering with CPU schema/attribute reconstruction. The ordinary filter trait retains CPU execution. See the position API for capacity, precision and numeric-error contracts; all payload is reported.
Trait Implementations§
Source§impl Clone for MlsSmoothing
impl Clone for MlsSmoothing
Source§fn clone(&self) -> MlsSmoothing
fn clone(&self) -> MlsSmoothing
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more