pub struct VoxelGridDownsample { /* private fields */ }Expand description
Voxel-grid downsampling filter.
Implementations§
Source§impl VoxelGridDownsample
impl VoxelGridDownsample
Sourcepub const fn new(config: VoxelGridDownsampleConfig) -> Self
pub const fn new(config: VoxelGridDownsampleConfig) -> Self
Creates a filter from config.
Sourcepub const fn config(&self) -> VoxelGridDownsampleConfig
pub const fn config(&self) -> VoxelGridDownsampleConfig
Returns the filter config.
Sourcepub fn filter_with_policy(
&self,
input: &PointCloud,
policy: ExecutionPolicy,
) -> SpatialResult<PointCloud>
pub fn filter_with_policy( &self, input: &PointCloud, policy: ExecutionPolicy, ) -> SpatialResult<PointCloud>
Applies the filter using the requested execution policy.
GPU execution assigns voxel keys on wgpu, builds segments with GPU sorting, and performs centroid or approximate-first aggregation on wgpu.
ExecutionPolicy::Auto picks GPU only when the input meets
VoxelGridDownsampleConfig::gpu_min_points. An explicit GPU request is
strict and does not use the point-count heuristic; use Auto when CPU
fallback is desired.
Sourcepub fn filter_with_policy_and_receipt(
&self,
input: &PointCloud,
policy: ExecutionPolicy,
) -> SpatialResult<ExecutionOutput<PointCloud>>
pub fn filter_with_policy_and_receipt( &self, input: &PointCloud, policy: ExecutionPolicy, ) -> SpatialResult<ExecutionOutput<PointCloud>>
Applies the filter and returns execution/transfer accounting.
Trait Implementations§
Source§impl Clone for VoxelGridDownsample
impl Clone for VoxelGridDownsample
Source§fn clone(&self) -> VoxelGridDownsample
fn clone(&self) -> VoxelGridDownsample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoxelGridDownsample
impl Debug for VoxelGridDownsample
Source§impl PartialEq for VoxelGridDownsample
impl PartialEq for VoxelGridDownsample
Source§fn eq(&self, other: &VoxelGridDownsample) -> bool
fn eq(&self, other: &VoxelGridDownsample) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PointCloudFilter for VoxelGridDownsample
impl PointCloudFilter for VoxelGridDownsample
Source§fn filter(&self, input: &PointCloud) -> SpatialResult<PointCloud>
fn filter(&self, input: &PointCloud) -> SpatialResult<PointCloud>
Applies the filter and returns a new point cloud.
impl Copy for VoxelGridDownsample
impl StructuralPartialEq for VoxelGridDownsample
Auto Trait Implementations§
impl Freeze for VoxelGridDownsample
impl RefUnwindSafe for VoxelGridDownsample
impl Send for VoxelGridDownsample
impl Sync for VoxelGridDownsample
impl Unpin for VoxelGridDownsample
impl UnsafeUnpin for VoxelGridDownsample
impl UnwindSafe for VoxelGridDownsample
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more