pub struct ThresholdFilter { /* private fields */ }Expand description
Threshold filter
This filter removes depth values outside the specified range.
Implementations§
Source§impl ThresholdFilter
impl ThresholdFilter
Sourcepub fn new() -> Result<Self, OrbbecError>
pub fn new() -> Result<Self, OrbbecError>
Create a new threshold filter.
Sourcepub fn set_min_depth(&mut self, min_depth: u16) -> Result<(), OrbbecError>
pub fn set_min_depth(&mut self, min_depth: u16) -> Result<(), OrbbecError>
Set the minimum depth value (in millimeters).
§Arguments
min_depth- The minimum depth value to keep, must be between 0 and 16000.
Sourcepub fn set_max_depth(&mut self, max_depth: u16) -> Result<(), OrbbecError>
pub fn set_max_depth(&mut self, max_depth: u16) -> Result<(), OrbbecError>
Set the maximum depth value (in millimeters).
§Arguments
max_depth- The maximum depth value to keep, must be between 0 and 16000.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThresholdFilter
impl RefUnwindSafe for ThresholdFilter
impl !Send for ThresholdFilter
impl !Sync for ThresholdFilter
impl Unpin for ThresholdFilter
impl UnwindSafe for ThresholdFilter
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