pub struct Decimation { /* private fields */ }Expand description
Applies decimation filter and plots modified params. Note that due to the modified frame size, the decimated frame replaces the original one.
Implementations§
Source§impl Decimation
impl Decimation
Sourcepub fn new(
processing_queue_size: i32,
) -> Result<Self, ProcessingBlockConstructionError>
pub fn new( processing_queue_size: i32, ) -> Result<Self, ProcessingBlockConstructionError>
Create a new Decimation object
Sourcepub fn queue(&mut self, frame: DepthFrame) -> Result<(), ProcessFrameError>
pub fn queue(&mut self, frame: DepthFrame) -> Result<(), ProcessFrameError>
Own and process the composite frame and return the decimated frames.
Sourcepub fn wait(
&mut self,
timeout: Duration,
) -> Result<DepthFrame, ProcessFrameError>
pub fn wait( &mut self, timeout: Duration, ) -> Result<DepthFrame, ProcessFrameError>
Wait to receive the results of the processing block
Sourcepub fn poll(&mut self) -> Result<Poll<DepthFrame>, ProcessFrameError>
pub fn poll(&mut self) -> Result<Poll<DepthFrame>, ProcessFrameError>
Poll to receive the results of the processing block
Sourcepub fn apply_options(
&mut self,
options: &DecimationOptions,
) -> Result<(), ProcessingBlockOptionError>
pub fn apply_options( &mut self, options: &DecimationOptions, ) -> Result<(), ProcessingBlockOptionError>
Apply options to configure the decimation filter
Trait Implementations§
Source§impl Clone for Decimation
impl Clone for Decimation
Source§fn clone(&self) -> Decimation
fn clone(&self) -> Decimation
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 Decimation
impl Debug for Decimation
Source§impl Drop for Decimation
impl Drop for Decimation
Source§impl OptionsExt for Decimation
impl OptionsExt for Decimation
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 Decimation
impl RefUnwindSafe for Decimation
impl !Send for Decimation
impl !Sync for Decimation
impl Unpin for Decimation
impl UnwindSafe for Decimation
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