pub struct TrackResult {
pub pos: (f32, f32),
pub status: TrackStatus,
pub error: f32,
}Expand description
Per-point result of calc_optical_flow_ex.
§Coordinate convention
Positions are in level-0 (full resolution) pixel coordinates. The origin is
the center of the top-left pixel, x grows to the right and y downwards; this
matches crate::good_features_to_track and bilinear sampling throughout
the crate.
Fields§
§pos: (f32, f32)Tracked position in the next frame.
status: TrackStatusWhy tracking ended the way it did.
error: f32Mean absolute photometric residual over the window at the final position, in 8-bit intensity units.
Comparable across points regardless of window_size; intended for
downstream outlier gating. It is f32::INFINITY when no residual
could be measured (the window was out of bounds).
Trait Implementations§
Source§impl Clone for TrackResult
impl Clone for TrackResult
Source§fn clone(&self) -> TrackResult
fn clone(&self) -> TrackResult
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 moreimpl Copy for TrackResult
Source§impl Debug for TrackResult
impl Debug for TrackResult
Source§impl PartialEq for TrackResult
impl PartialEq for TrackResult
Source§fn eq(&self, other: &TrackResult) -> bool
fn eq(&self, other: &TrackResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TrackResult
Auto Trait Implementations§
impl Freeze for TrackResult
impl RefUnwindSafe for TrackResult
impl Send for TrackResult
impl Sync for TrackResult
impl Unpin for TrackResult
impl UnsafeUnpin for TrackResult
impl UnwindSafe for TrackResult
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