pub struct TrackingStats {Show 24 fields
pub first_frame_id: Option<u64>,
pub last_frame_id: Option<u64>,
pub frame_count: usize,
pub successful_frame_count: usize,
pub failed_frame_count: usize,
pub lost_count: usize,
pub relocalization_count: usize,
pub pose_prior_used_count: usize,
pub external_localization_prior_used_count: usize,
pub tracking_quality_gate_failure_count: usize,
pub pose_prior_visual_override_count: usize,
pub motion_prior_coast_count: usize,
pub temporal_landmark_attempt_count: usize,
pub temporal_landmark_success_count: usize,
pub total_inlier_count: usize,
pub total_correspondence_count: usize,
pub covisibility_local_map_used_count: usize,
pub projection_guided_attempt_count: usize,
pub projection_guided_widen_retry_count: usize,
pub projection_guided_success_count: usize,
pub projection_guided_fallback_success_count: usize,
pub local_map_refinement_correspondence_gain_total: usize,
pub local_map_refinement_accepted_count: usize,
pub local_map_refinement_rejected_count: usize,
}Fields§
§first_frame_id: Option<u64>§last_frame_id: Option<u64>§frame_count: usize§successful_frame_count: usize§failed_frame_count: usize§lost_count: usize§relocalization_count: usize§pose_prior_used_count: usize§external_localization_prior_used_count: usize§tracking_quality_gate_failure_count: usize§pose_prior_visual_override_count: usizeNumber of frames accepted only because a strong visual solution activated the bounded pose-prior translation-gate widening.
motion_prior_coast_count: usizeNumber of frames accepted by substituting the motion-model prior after visual localization / quality gates failed.
temporal_landmark_attempt_count: usizeTemporal-landmark-track attempts (previous-inlier descriptor store).
temporal_landmark_success_count: usizeTemporal-landmark-track attempts that produced a successful pose.
total_inlier_count: usize§total_correspondence_count: usize§covisibility_local_map_used_count: usize§projection_guided_attempt_count: usizeNumber of stage-1 projection-guided pose-estimation attempts made
across all frames (one per widen-retry rung tried, including the
first). Zero when projection_guided_tracking is disabled or no pose
prior was available for a frame. Populated live by Tracker; unlike
most other counters here, NOT reconstructed by
TrackingStats::from_results (the per-attempt detail is not carried
on TrackingResult).
projection_guided_widen_retry_count: usizeNumber of widen-retry rungs actually taken (i.e. attempts beyond the first that used a widened radius after the previous rung failed the quality gate).
projection_guided_success_count: usizeNumber of frames where a projection-guided attempt (at any widen rung) produced the accepted pose estimate.
projection_guided_fallback_success_count: usizeNumber of frames where every projection-guided attempt failed and the appearance-global fallback path produced the accepted pose estimate.
local_map_refinement_correspondence_gain_total: usizeSum, across frames where local-map refinement ran, of additional correspondences harvested beyond the pre-refinement correspondence count (0 when refinement harvested nothing new).
local_map_refinement_accepted_count: usizeNumber of frames where local-map refinement ran and its result was accepted (inlier count did not decrease).
local_map_refinement_rejected_count: usizeNumber of frames where local-map refinement ran but was rejected (inlier count decreased, or the refined estimate failed its own quality gate).
Implementations§
Source§impl TrackingStats
impl TrackingStats
pub fn from_results(results: &[TrackingResult]) -> TrackingStats
pub fn success_rate(&self) -> f64
pub fn failure_rate(&self) -> f64
pub fn pose_prior_usage_rate(&self) -> f64
pub fn external_localization_prior_usage_rate(&self) -> f64
pub fn overall_inlier_ratio(&self) -> f64
pub fn mean_inliers_per_successful_frame(&self) -> f64
pub fn to_json(&self) -> String
pub fn write_json(&self, path: impl AsRef<Path>) -> Result<(), Error>
pub fn evaluate( &self, config: TrackingEvaluationConfig, ) -> TrackingEvaluationResult
Trait Implementations§
Source§impl Clone for TrackingStats
impl Clone for TrackingStats
Source§fn clone(&self) -> TrackingStats
fn clone(&self) -> TrackingStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TrackingStats
impl Debug for TrackingStats
Source§impl Default for TrackingStats
impl Default for TrackingStats
Source§fn default() -> TrackingStats
fn default() -> TrackingStats
impl Eq for TrackingStats
Source§impl PartialEq for TrackingStats
impl PartialEq for TrackingStats
impl StructuralPartialEq for TrackingStats
Auto Trait Implementations§
impl Forget for TrackingStats
impl Freeze for TrackingStats
impl Move for TrackingStats
impl RefUnwindSafe for TrackingStats
impl Send for TrackingStats
impl Sync for TrackingStats
impl Unpin for TrackingStats
impl UnsafeUnpin for TrackingStats
impl UnwindSafe for TrackingStats
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,
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> ⓘ
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> ⓘ
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>
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.