pub struct TrackerConfig {
pub distance_function: DistanceFunction,
pub distance_threshold: f64,
pub hit_counter_max: i32,
pub initialization_delay: i32,
pub pointwise_hit_counter_max: i32,
pub detection_threshold: f64,
pub filter_factory: FilterFactoryEnum,
pub past_detections_length: usize,
pub reid_distance_function: Option<DistanceFunction>,
pub reid_distance_threshold: f64,
pub reid_hit_counter_max: Option<i32>,
}Expand description
Configuration for the tracker.
Fields§
§distance_function: DistanceFunctionDistance function for matching detections to objects (enum-based static dispatch).
distance_threshold: f64Maximum distance threshold for valid matches.
hit_counter_max: i32Maximum hit counter value (frames to keep object alive without detections).
initialization_delay: i32Frames before an object becomes “initialized” (gets permanent ID).
pointwise_hit_counter_max: i32Maximum hit counter for individual points.
detection_threshold: f64Minimum score for a detection point to be considered.
filter_factory: FilterFactoryEnumFactory for creating Kalman filters (enum-based static dispatch).
past_detections_length: usizeNumber of past detections to store for re-identification.
reid_distance_function: Option<DistanceFunction>Optional distance function for re-identification.
reid_distance_threshold: f64Distance threshold for re-identification.
reid_hit_counter_max: Option<i32>Maximum hit counter for re-identification phase.
Implementations§
Source§impl TrackerConfig
impl TrackerConfig
Sourcepub fn new(distance_function: DistanceFunction, distance_threshold: f64) -> Self
pub fn new(distance_function: DistanceFunction, distance_threshold: f64) -> Self
Create a new tracker configuration with enum-based dispatch.
§Arguments
distance_function- Distance function for matchingdistance_threshold- Maximum match distance
Sourcepub fn from_distance_name(name: &str, distance_threshold: f64) -> Self
pub fn from_distance_name(name: &str, distance_threshold: f64) -> Self
Create configuration from a distance function name.
Trait Implementations§
Source§impl Clone for TrackerConfig
impl Clone for TrackerConfig
Source§fn clone(&self) -> TrackerConfig
fn clone(&self) -> TrackerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for TrackerConfig
impl RefUnwindSafe for TrackerConfig
impl Send for TrackerConfig
impl Sync for TrackerConfig
impl Unpin for TrackerConfig
impl UnwindSafe for TrackerConfig
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<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.