pub struct PointCloud { /* private fields */ }Expand description
Creates Point-Cloud processing block. This block accepts depth frames and outputs Points frames In addition, given non-depth frame, the block will align texture coordinate to the non-depth stream
Implementations§
Source§impl PointCloud
impl PointCloud
Sourcepub fn new(
processing_queue_size: i32,
) -> Result<Self, ProcessingBlockConstructionError>
pub fn new( processing_queue_size: i32, ) -> Result<Self, ProcessingBlockConstructionError>
Create a new PointCloud processing block
Sourcepub fn queue(&mut self, frame: DepthFrame) -> Result<(), ProcessFrameError>
pub fn queue(&mut self, frame: DepthFrame) -> Result<(), ProcessFrameError>
Process a depth frame to generate point cloud
Sourcepub fn wait(
&mut self,
timeout: Duration,
) -> Result<PointsFrame, ProcessFrameError>
pub fn wait( &mut self, timeout: Duration, ) -> Result<PointsFrame, ProcessFrameError>
Wait to receive the point cloud results
Sourcepub fn poll(&mut self) -> Result<Poll<PointsFrame>, ProcessFrameError>
pub fn poll(&mut self) -> Result<Poll<PointsFrame>, ProcessFrameError>
Poll to receive the point cloud results
Trait Implementations§
Source§impl Clone for PointCloud
impl Clone for PointCloud
Source§fn clone(&self) -> PointCloud
fn clone(&self) -> PointCloud
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 PointCloud
impl Debug for PointCloud
Auto Trait Implementations§
impl Freeze for PointCloud
impl RefUnwindSafe for PointCloud
impl !Send for PointCloud
impl !Sync for PointCloud
impl Unpin for PointCloud
impl UnwindSafe for PointCloud
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