pub struct CuDepthInteger<T, S>(/* private fields */);Expand description
Compact unsigned-integer depth encoding with a compile-time physical scale.
Zero represents an invalid measurement. The sample width and resolution are
independent: for example, CuDepthInteger<u16, CuDepthDecimeter> covers
depths in 10-centimeter increments.
A 200-meter camera with 10-centimeter increments can use:
use cu_sensor_payloads::{
CuDepthInteger, CuDepthMap, CuDepthScaleRatio,
};
type LongRangeDepth =
CuDepthMap<Vec<u16>, CuDepthInteger<u16, CuDepthScaleRatio<1, 10>>>;Trait Implementations§
impl<T: Copy, S: Copy> Copy for CuDepthInteger<T, S>
Source§impl<T, S> CuDepthEncoding for CuDepthInteger<T, S>where
T: CuDepthIntegerSample,
S: CuDepthScale,
impl<T, S> CuDepthEncoding for CuDepthInteger<T, S>where
T: CuDepthIntegerSample,
S: CuDepthScale,
const DESCRIPTOR: CuDepthEncodingDescriptor
const SERIALIZED_MAP_SCHEMA: &'static str = INTEGER_DEPTH_MAP_SERIALIZED_SCHEMA
const TYPE_PATH: &'static str = "cu_sensor_payloads::CuDepthMapInteger"
const SHORT_TYPE_PATH: &'static str = "CuDepthMapInteger"
const TYPE_IDENT: &'static str = "CuDepthMapInteger"
type Sample = T
Auto Trait Implementations§
impl<T, S> Freeze for CuDepthInteger<T, S>
impl<T, S> RefUnwindSafe for CuDepthInteger<T, S>
impl<T, S> Send for CuDepthInteger<T, S>
impl<T, S> Sync for CuDepthInteger<T, S>
impl<T, S> Unpin for CuDepthInteger<T, S>
impl<T, S> UnsafeUnpin for CuDepthInteger<T, S>
impl<T, S> UnwindSafe for CuDepthInteger<T, S>
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,
impl<T> GetTypeRegistration for T
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