pub struct DisparityTransform { /* private fields */ }Expand description
Creates a post processing block that provides for depth<->disparity domain transformation for stereo-based depth modules
Implementations§
Source§impl DisparityTransform
impl DisparityTransform
Sourcepub fn new(
transform_to_disparity: bool,
processing_queue_size: i32,
) -> Result<Self, ProcessingBlockConstructionError>
pub fn new( transform_to_disparity: bool, processing_queue_size: i32, ) -> Result<Self, ProcessingBlockConstructionError>
Create a new DisparityTransform processing block
§Arguments
transform_to_disparity- true = depth->disparity, false = disparity->depthprocessing_queue_size- Size of the processing queue
Sourcepub fn queue(&mut self, frame: DepthFrame) -> Result<(), ProcessFrameError>
pub fn queue(&mut self, frame: DepthFrame) -> Result<(), ProcessFrameError>
Process a depth frame with disparity transformation
Sourcepub fn wait(
&mut self,
timeout: Duration,
) -> Result<DepthFrame, ProcessFrameError>
pub fn wait( &mut self, timeout: Duration, ) -> Result<DepthFrame, ProcessFrameError>
Wait to receive the transformed results
Sourcepub fn poll(&mut self) -> Result<Poll<DepthFrame>, ProcessFrameError>
pub fn poll(&mut self) -> Result<Poll<DepthFrame>, ProcessFrameError>
Poll to receive the transformed results
Trait Implementations§
Source§impl Clone for DisparityTransform
impl Clone for DisparityTransform
Source§fn clone(&self) -> DisparityTransform
fn clone(&self) -> DisparityTransform
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 DisparityTransform
impl Debug for DisparityTransform
Auto Trait Implementations§
impl Freeze for DisparityTransform
impl RefUnwindSafe for DisparityTransform
impl !Send for DisparityTransform
impl !Sync for DisparityTransform
impl Unpin for DisparityTransform
impl UnwindSafe for DisparityTransform
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