pub struct LoopClosureVerification {
pub verified: bool,
pub correspondence_count: usize,
pub inlier_count: usize,
pub inlier_ratio: f64,
pub mean_sampson_error: f64,
pub score: f64,
pub failure_reason: Option<LoopClosureVerificationFailureReason>,
pub relative_pose: Option<SE3>,
pub mean_reprojection_error_px: Option<f64>,
}Expand description
Output of running a LoopClosureVerifier on a candidate.
Fields§
§verified: bool§correspondence_count: usize§inlier_count: usize§inlier_ratio: f64§mean_sampson_error: f64Mean Sampson distance reported by an essential-matrix verifier (in
normalized image-plane units). 0.0 and uninformative for
PnP-based verifiers; check Self::mean_reprojection_error_px in
that case.
score: f64§failure_reason: Option<LoopClosureVerificationFailureReason>§relative_pose: Option<SE3>Recovered relative pose (older keyframe → current frame) when the
underlying RANSAC converged. Some even for non-verified cases as
long as a pose was recovered; consult verified and failure_reason
before consuming. For essential-matrix verifiers the translation is
scaled by LoopClosureVerifierConfig::default_translation_scale;
for PnP verifiers it is in metric units (the keyframe pose carries
the world scale).
mean_reprojection_error_px: Option<f64>Mean reprojection error (in pixels) reported by a PnP-based verifier.
None for essential-matrix verifiers.
Trait Implementations§
Source§impl Clone for LoopClosureVerification
impl Clone for LoopClosureVerification
Source§fn clone(&self) -> LoopClosureVerification
fn clone(&self) -> LoopClosureVerification
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 LoopClosureVerification
impl Debug for LoopClosureVerification
Source§impl PartialEq for LoopClosureVerification
impl PartialEq for LoopClosureVerification
impl StructuralPartialEq for LoopClosureVerification
Auto Trait Implementations§
impl Forget for LoopClosureVerification
impl Freeze for LoopClosureVerification
impl Move for LoopClosureVerification
impl RefUnwindSafe for LoopClosureVerification
impl Send for LoopClosureVerification
impl Sync for LoopClosureVerification
impl Unpin for LoopClosureVerification
impl UnsafeUnpin for LoopClosureVerification
impl UnwindSafe for LoopClosureVerification
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.