pub struct PassThrough { /* private fields */ }Expand description
Keeps (or drops) points whose value in a named field falls within a range.
Implementations§
Source§impl PassThrough
impl PassThrough
Sourcepub fn new(field: impl Into<String>, min: f32, max: f32) -> Self
pub fn new(field: impl Into<String>, min: f32, max: f32) -> Self
Keeps points whose field value is within [min, max] (inclusive).
Sourcepub fn inverted(field: impl Into<String>, min: f32, max: f32) -> Self
pub fn inverted(field: impl Into<String>, min: f32, max: f32) -> Self
Drops points whose field value is within [min, max].
Sourcepub fn keep_mask(&self, input: &PointCloud) -> SpatialResult<Vec<bool>>
pub fn keep_mask(&self, input: &PointCloud) -> SpatialResult<Vec<bool>>
Computes the keep mask for input.
Trait Implementations§
Source§impl Clone for PassThrough
impl Clone for PassThrough
Source§fn clone(&self) -> PassThrough
fn clone(&self) -> PassThrough
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 PassThrough
impl Debug for PassThrough
Source§impl PartialEq for PassThrough
impl PartialEq for PassThrough
Source§impl PointCloudFilter for PassThrough
impl PointCloudFilter for PassThrough
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 StructuralPartialEq for PassThrough
Auto Trait Implementations§
impl Freeze for PassThrough
impl RefUnwindSafe for PassThrough
impl Send for PassThrough
impl Sync for PassThrough
impl Unpin for PassThrough
impl UnsafeUnpin for PassThrough
impl UnwindSafe for PassThrough
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