pub struct KeyframePolicyConfig {
pub min_frame_id_gap: u64,
pub max_frame_id_gap: Option<u64>,
pub min_translation: f64,
pub select_relocalized_frames: bool,
pub tracked_landmark_keyframe_ratio: Option<f64>,
pub min_tracked_landmarks_for_quality_keyframe: usize,
pub min_inliers: Option<usize>,
pub min_inlier_ratio: Option<f64>,
}Fields§
§min_frame_id_gap: u64§max_frame_id_gap: Option<u64>Force a new keyframe once this many frame ids have elapsed, even when
estimated translation remains below min_translation. The optional
tracking-quality floors still apply, preventing a weak localization
from being promoted merely because it is old.
min_translation: f64§select_relocalized_frames: bool§tracked_landmark_keyframe_ratio: Option<f64>§min_tracked_landmarks_for_quality_keyframe: usize§min_inliers: Option<usize>When Some(n), a frame that would otherwise be promoted to a
keyframe (i.e. it already cleared the frame-id-gap and translation
gates) is instead rejected with
KeyframeDecisionReason::InsufficientTrackingQuality if its PnP
inlier count is below n. Guards against promoting a keyframe from
a marginal localization (e.g. a handful of inliers surviving a
tracking failure) that would poison the covisibility graph and
local map for subsequent frames. None (the default) preserves
legacy always-promote behaviour.
min_inlier_ratio: Option<f64>Companion to min_inliers: when Some(r), also requires the PnP
inlier ratio to be at least r. Either configured threshold not
being met rejects the promotion. None (the default) preserves
legacy always-promote behaviour.
Trait Implementations§
Source§impl Clone for KeyframePolicyConfig
impl Clone for KeyframePolicyConfig
Source§impl Debug for KeyframePolicyConfig
impl Debug for KeyframePolicyConfig
Source§impl Default for KeyframePolicyConfig
impl Default for KeyframePolicyConfig
Source§impl PartialEq for KeyframePolicyConfig
impl PartialEq for KeyframePolicyConfig
impl StructuralPartialEq for KeyframePolicyConfig
Auto Trait Implementations§
impl Forget for KeyframePolicyConfig
impl Freeze for KeyframePolicyConfig
impl Move for KeyframePolicyConfig
impl RefUnwindSafe for KeyframePolicyConfig
impl Send for KeyframePolicyConfig
impl Sync for KeyframePolicyConfig
impl Unpin for KeyframePolicyConfig
impl UnsafeUnpin for KeyframePolicyConfig
impl UnwindSafe for KeyframePolicyConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.