pub struct SheetFit {
pub verdict: SheetVerdict,
pub shift_px: Option<[f64; 2]>,
pub residual_px: Option<f64>,
pub support: f64,
pub edges_seen: usize,
pub landmarks_moved: usize,
pub landmarks_visible: usize,
pub hole_found: bool,
pub correction: Option<ViewCorrection>,
pub drawn_jpeg: Vec<u8>,
}Expand description
One judgement of the camera on an empty sheet.
Fields§
§verdict: SheetVerdictWhat it came to.
shift_px: Option<[f64; 2]>The fitted translation, [dx, dy] pixels; nothing when the sheet could
not be fitted.
residual_px: Option<f64>The RMS distance of the found edges from the translated outline; nothing when the sheet could not be fitted.
support: f64The share of the in-view samples found.
edges_seen: usizeHow many edges showed enough found samples.
landmarks_moved: usizeHow many visible landmarks lie beyond the drift tolerance.
landmarks_visible: usizeHow many landmarks are visible.
hole_found: boolWhether the sheet’s hole was found.
correction: Option<ViewCorrection>The correction an aligned frame puts in force: its translation, with the landmarks found on this frame as its reference.
drawn_jpeg: Vec<u8>The frame with the projected outline, the fitted one and the found landmarks drawn, as a JPEG.
Implementations§
Trait Implementations§
impl StructuralPartialEq for SheetFit
Auto Trait Implementations§
impl Forget for SheetFit
impl Freeze for SheetFit
impl Move for SheetFit
impl RefUnwindSafe for SheetFit
impl Send for SheetFitwhere
RawVecInner: Send,
impl Sync for SheetFitwhere
RawVecInner: Sync,
impl Unpin for SheetFit
impl UnsafeUnpin for SheetFitwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ReferenceLandmark>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for SheetFitwhere
RawVecInner: UnwindSafe,
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> 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 moreimpl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.