pub struct DepthMap { /* private fields */ }Expand description
Metric or relative dense depth map. Non-positive and non-finite values are invalid.
Implementations§
Source§impl DepthMap
impl DepthMap
Sourcepub fn try_new(
width: usize,
height: usize,
data: Vec<f32>,
) -> VisionResult<Self>
pub fn try_new( width: usize, height: usize, data: Vec<f32>, ) -> VisionResult<Self>
Wraps a depth image and marks its semantic metadata.
Sourcepub fn valid_mask(
&self,
min_depth: f32,
max_depth: f32,
) -> VisionResult<BinaryMask>
pub fn valid_mask( &self, min_depth: f32, max_depth: f32, ) -> VisionResult<BinaryMask>
Builds a validity mask for an inclusive depth range.
Trait Implementations§
impl StructuralPartialEq for DepthMap
Auto Trait Implementations§
impl Freeze for DepthMap
impl RefUnwindSafe for DepthMap
impl Send for DepthMap
impl Sync for DepthMap
impl Unpin for DepthMap
impl UnsafeUnpin for DepthMap
impl UnwindSafe for DepthMap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more