pub struct DepthOutput {
pub depth: Vec<f32>,
pub width: usize,
pub height: usize,
pub letterbox: Option<Letterbox>,
}Expand description
Image → objects (Diana). What a depth engine returns: a dense map plus what is needed to place it back on the source image.
Fields§
§depth: Vec<f32>Row-major depth, height * width values, in metres.
width: usize§height: usize§letterbox: Option<Letterbox>The letterbox that produced this map, when one was applied — the same
role it plays in DetectOutput, and needed for the same reason: the
map is in letterboxed space and means nothing without it.
Implementations§
Source§impl DepthOutput
impl DepthOutput
Trait Implementations§
Source§impl Clone for DepthOutput
impl Clone for DepthOutput
Source§fn clone(&self) -> DepthOutput
fn clone(&self) -> DepthOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DepthOutput
impl RefUnwindSafe for DepthOutput
impl Send for DepthOutput
impl Sync for DepthOutput
impl Unpin for DepthOutput
impl UnsafeUnpin for DepthOutput
impl UnwindSafe for DepthOutput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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