pub struct CmaxResult {
pub params: Vec<f64>,
pub score: f64,
pub score_at_rest: f64,
pub iterations: usize,
}Expand description
What the optimiser found.
Fields§
§params: Vec<f64>Recovered motion, in the model’s units — px/s for translation, rad/s for rotation.
score: f64Objective value at params.
score_at_rest: f64Objective value at zero motion, for comparison. A result whose score barely exceeds this
means the optimiser found nothing — there was no coherent motion, or the slice was too short.
iterations: usizeImplementations§
Source§impl CmaxResult
impl CmaxResult
Sourcepub fn improvement(&self) -> f64
pub fn improvement(&self) -> f64
How much sharper the recovered motion is than assuming the camera was still.
The number to check before trusting params: at or below 1.0 the optimiser did not find
motion, and the parameters are wherever the search happened to stop.
Trait Implementations§
Source§impl Clone for CmaxResult
impl Clone for CmaxResult
Source§fn clone(&self) -> CmaxResult
fn clone(&self) -> CmaxResult
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 moreSource§impl Debug for CmaxResult
impl Debug for CmaxResult
Source§impl PartialEq for CmaxResult
impl PartialEq for CmaxResult
impl StructuralPartialEq for CmaxResult
Auto Trait Implementations§
impl Freeze for CmaxResult
impl RefUnwindSafe for CmaxResult
impl Send for CmaxResult
impl Sync for CmaxResult
impl Unpin for CmaxResult
impl UnsafeUnpin for CmaxResult
impl UnwindSafe for CmaxResult
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,
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