pub struct TrackExtensionConfig {
pub search_radius_px: f64,
pub ratio: f64,
pub max_extension: usize,
pub deduplicate: bool,
}Expand description
Configuration for extend_stereo_tracks_via_projection. Defaults are
tuned for KITTI-scale per-frame motion (~1 m/frame at stride 1, ~7 m/frame
at stride 8) and the project’s CornerFeatureExtractor descriptor scale.
Fields§
§search_radius_px: f64Maximum image-pixel distance from the projected landmark within
which to look for a matching keypoint at the next frame. Has to be
generous enough to cover VO pose noise + reprojection error from
per-frame stereo-triangulation inaccuracy, but small enough to keep
the descriptor search discriminative — 25 px works on KITTI 00.
ratio: f64Lowe’s ratio test on the within-radius descriptor search. The best match’s descriptor distance must be below this fraction of the second best’s, otherwise the track ends.
max_extension: usizeTracks may extend by this many frames past their seed before being
force-cut. Without a cap, tracks that follow distant landmarks can
span ~all frames at the cost of a quadratic match. 30 is a
reasonable upper bound for stride-1 KITTI windows.
deduplicate: boolEach (frame, left_kp_index) is consumed by at most one track —
once a feature has been added to a longer track its later
re-seeding as a new track is suppressed. Set false to allow
overlapping tracks (rarely useful).
Trait Implementations§
Source§impl Clone for TrackExtensionConfig
impl Clone for TrackExtensionConfig
Source§fn clone(&self) -> TrackExtensionConfig
fn clone(&self) -> TrackExtensionConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TrackExtensionConfig
Source§impl Debug for TrackExtensionConfig
impl Debug for TrackExtensionConfig
Source§impl Default for TrackExtensionConfig
impl Default for TrackExtensionConfig
Source§fn default() -> TrackExtensionConfig
fn default() -> TrackExtensionConfig
Source§impl PartialEq for TrackExtensionConfig
impl PartialEq for TrackExtensionConfig
impl StructuralPartialEq for TrackExtensionConfig
Auto Trait Implementations§
impl Forget for TrackExtensionConfig
impl Freeze for TrackExtensionConfig
impl Move for TrackExtensionConfig
impl RefUnwindSafe for TrackExtensionConfig
impl Send for TrackExtensionConfig
impl Sync for TrackExtensionConfig
impl Unpin for TrackExtensionConfig
impl UnsafeUnpin for TrackExtensionConfig
impl UnwindSafe for TrackExtensionConfig
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.