pub struct CompactFeatures {
pub xy: Vec<i16>,
pub score: Vec<f32>,
pub descriptors: Vec<u32>,
}Expand description
The scan-features/<frame> row: a frame’s features as three flat arrays (analysis-pixel x, y pairs as i16,
scores as f32, eight descriptor words each).
Fields§
§xy: Vec<i16>§score: Vec<f32>§descriptors: Vec<u32>Implementations§
Source§impl CompactFeatures
impl CompactFeatures
pub fn encode(features: &[Feature]) -> CompactFeatures
Trait Implementations§
Source§impl Clone for CompactFeatures
impl Clone for CompactFeatures
Source§impl Debug for CompactFeatures
impl Debug for CompactFeatures
Source§impl PartialEq for CompactFeatures
impl PartialEq for CompactFeatures
impl StructuralPartialEq for CompactFeatures
Auto Trait Implementations§
impl Freeze for CompactFeatures
impl RefUnwindSafe for CompactFeatures
impl Send for CompactFeatures
impl Sync for CompactFeatures
impl Unpin for CompactFeatures
impl UnsafeUnpin for CompactFeatures
impl UnwindSafe for CompactFeatures
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