pub struct PointMap { /* private fields */ }Expand description
Dense per-pixel XYZ point map. Non-finite triples represent invalid points.
Implementations§
Source§impl PointMap
impl PointMap
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>
Creates a point map and rejects infinite components.
Sourcepub fn valid_mask(&self) -> VisionResult<BinaryMask>
pub fn valid_mask(&self) -> VisionResult<BinaryMask>
Returns a mask where all XYZ components are finite.
Trait Implementations§
impl StructuralPartialEq for PointMap
Auto Trait Implementations§
impl Freeze for PointMap
impl RefUnwindSafe for PointMap
impl Send for PointMap
impl Sync for PointMap
impl Unpin for PointMap
impl UnsafeUnpin for PointMap
impl UnwindSafe for PointMap
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