pub struct TwoViewMatchVisualOdometryFrontend { /* private fields */ }Expand description
Lightweight two-view VO frontend that turns externally supplied correspondences into a translation-only relative-pose estimate.
Note: when this frontend produces a VisualOdometryEstimate, the
estimate’s mean_reprojection_error field stores the mean inlier flow
residual in pixels around the median two-view flow, not a 3D reprojection
error. The field name is reused so callers and downstream
VisualOdometryPriorProvider consumers do not need a separate diagnostic
type; refer to the value as mean_flow_residual_px in user-facing logs and
reports for the two-view-match case.
Implementations§
Source§impl TwoViewMatchVisualOdometryFrontend
impl TwoViewMatchVisualOdometryFrontend
pub fn new(config: TwoViewMatchVisualOdometryConfig) -> Self
pub const fn config(&self) -> TwoViewMatchVisualOdometryConfig
pub fn insert_matches( &mut self, previous_frame_id: FrameId, current_frame_id: FrameId, matches: TwoViewMatchSet, )
pub fn with_matches( self, previous_frame_id: FrameId, current_frame_id: FrameId, matches: TwoViewMatchSet, ) -> Self
pub fn matches_for( &self, previous_frame_id: FrameId, current_frame_id: FrameId, ) -> Option<&TwoViewMatchSet>
Trait Implementations§
impl StructuralPartialEq for TwoViewMatchVisualOdometryFrontend
Auto Trait Implementations§
impl Forget for TwoViewMatchVisualOdometryFrontend
impl Freeze for TwoViewMatchVisualOdometryFrontend
impl Move for TwoViewMatchVisualOdometryFrontend
impl RefUnwindSafe for TwoViewMatchVisualOdometryFrontend
impl Send for TwoViewMatchVisualOdometryFrontend
impl Sync for TwoViewMatchVisualOdometryFrontend
impl Unpin for TwoViewMatchVisualOdometryFrontend
impl UnsafeUnpin for TwoViewMatchVisualOdometryFrontend
impl UnwindSafe for TwoViewMatchVisualOdometryFrontend
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<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.