pub struct Colorizer { /* private fields */ }Expand description
Creates Depth-Colorizer processing block that can be used to quickly visualize the depth data This block accepts depth frames as input and replaces them by depth frames with format RGB8 Non-depth frames are passed through
Implementations§
Source§impl Colorizer
impl Colorizer
Sourcepub fn new(
processing_queue_size: i32,
) -> Result<Self, ProcessingBlockConstructionError>
pub fn new( processing_queue_size: i32, ) -> Result<Self, ProcessingBlockConstructionError>
Create a new Colorizer processing block
Sourcepub fn queue(&mut self, frame: DepthFrame) -> Result<(), ProcessFrameError>
pub fn queue(&mut self, frame: DepthFrame) -> Result<(), ProcessFrameError>
Process a depth frame and colorize it
Sourcepub fn wait(
&mut self,
timeout: Duration,
) -> Result<ColorFrame, ProcessFrameError>
pub fn wait( &mut self, timeout: Duration, ) -> Result<ColorFrame, ProcessFrameError>
Wait to receive the colorized frame results
Sourcepub fn poll(&mut self) -> Result<Poll<ColorFrame>, ProcessFrameError>
pub fn poll(&mut self) -> Result<Poll<ColorFrame>, ProcessFrameError>
Poll to receive the colorized frame results
Sourcepub fn apply_options(
&mut self,
options: &ColorizerOptions,
) -> Result<(), ProcessingBlockOptionError>
pub fn apply_options( &mut self, options: &ColorizerOptions, ) -> Result<(), ProcessingBlockOptionError>
Apply options to configure the colorizer
Trait Implementations§
Source§impl OptionsExt for Colorizer
impl OptionsExt for Colorizer
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 Colorizer
impl RefUnwindSafe for Colorizer
impl !Send for Colorizer
impl !Sync for Colorizer
impl Unpin for Colorizer
impl UnwindSafe for Colorizer
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