pub struct FarthestPointSampling { /* private fields */ }Expand description
Farthest Point Sampling downsampler.
Implementations§
Source§impl FarthestPointSampling
impl FarthestPointSampling
Sourcepub const fn new(config: FarthestPointSamplingConfig) -> Self
pub const fn new(config: FarthestPointSamplingConfig) -> Self
Creates a sampler from config.
Sourcepub const fn config(&self) -> FarthestPointSamplingConfig
pub const fn config(&self) -> FarthestPointSamplingConfig
Returns the sampler config.
Sourcepub fn select(&self, input: &PointCloud) -> SpatialResult<Vec<usize>>
pub fn select(&self, input: &PointCloud) -> SpatialResult<Vec<usize>>
Returns the selected point indices in selection order.
Trait Implementations§
Source§impl Clone for FarthestPointSampling
impl Clone for FarthestPointSampling
Source§fn clone(&self) -> FarthestPointSampling
fn clone(&self) -> FarthestPointSampling
Returns a duplicate of the value. Read more
1.0.0 · 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 FarthestPointSampling
impl Debug for FarthestPointSampling
Source§impl PartialEq for FarthestPointSampling
impl PartialEq for FarthestPointSampling
Source§impl PointCloudFilter for FarthestPointSampling
impl PointCloudFilter for FarthestPointSampling
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 FarthestPointSampling
impl StructuralPartialEq for FarthestPointSampling
Auto Trait Implementations§
impl Freeze for FarthestPointSampling
impl RefUnwindSafe for FarthestPointSampling
impl Send for FarthestPointSampling
impl Sync for FarthestPointSampling
impl Unpin for FarthestPointSampling
impl UnsafeUnpin for FarthestPointSampling
impl UnwindSafe for FarthestPointSampling
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