pub struct ThresholdFilter { /* private fields */ }Expand description
Creates depth thresholding processing block By controlling min and max options on the block, one could filter out depth values that are either too large or too small, as a software post-processing step
Implementations§
Source§impl ThresholdFilter
impl ThresholdFilter
Sourcepub fn new(
processing_queue_size: i32,
) -> Result<Self, ProcessingBlockConstructionError>
pub fn new( processing_queue_size: i32, ) -> Result<Self, ProcessingBlockConstructionError>
Create a new ThresholdFilter processing block
Sourcepub fn queue(&mut self, frame: DepthFrame) -> Result<(), ProcessFrameError>
pub fn queue(&mut self, frame: DepthFrame) -> Result<(), ProcessFrameError>
Process a depth frame with thresholding
Sourcepub fn wait(
&mut self,
timeout: Duration,
) -> Result<DepthFrame, ProcessFrameError>
pub fn wait( &mut self, timeout: Duration, ) -> Result<DepthFrame, ProcessFrameError>
Wait to receive the thresholded results
Sourcepub fn poll(&mut self) -> Result<Poll<DepthFrame>, ProcessFrameError>
pub fn poll(&mut self) -> Result<Poll<DepthFrame>, ProcessFrameError>
Poll to receive the thresholded results
Sourcepub fn apply_options(
&mut self,
options: &ThresholdOptions,
) -> Result<(), ProcessingBlockOptionError>
pub fn apply_options( &mut self, options: &ThresholdOptions, ) -> Result<(), ProcessingBlockOptionError>
Apply options to configure the threshold filter
Trait Implementations§
Source§impl Clone for ThresholdFilter
impl Clone for ThresholdFilter
Source§fn clone(&self) -> ThresholdFilter
fn clone(&self) -> ThresholdFilter
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 ThresholdFilter
impl Debug for ThresholdFilter
Source§impl Drop for ThresholdFilter
impl Drop for ThresholdFilter
Source§impl OptionsExt for ThresholdFilter
impl OptionsExt for ThresholdFilter
Source§fn set_option(
&mut self,
option: rs2_option,
value: f32,
) -> Result<(), ProcessingBlockOptionError>
fn set_option( &mut self, option: rs2_option, value: f32, ) -> Result<(), ProcessingBlockOptionError>
Set an option value on the processing block
Source§fn get_option(
&self,
option: rs2_option,
) -> Result<f32, ProcessingBlockOptionError>
fn get_option( &self, option: rs2_option, ) -> Result<f32, ProcessingBlockOptionError>
Get the current value of an option
Source§fn supports_option(&self, option: rs2_option) -> bool
fn supports_option(&self, option: rs2_option) -> bool
Check if an option is supported
Source§fn get_option_range(
&self,
option: rs2_option,
) -> Result<(f32, f32, f32, f32), ProcessingBlockOptionError>
fn get_option_range( &self, option: rs2_option, ) -> Result<(f32, f32, f32, f32), ProcessingBlockOptionError>
Get the range of valid values for an option
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