pub struct BoxKalmanFilter {
pub std_weight_position: f64,
pub std_weight_velocity: f64,
}Expand description
Noise weights of the filter; the defaults are ByteTrack’s.
Fields§
§std_weight_position: f64Position noise as a fraction of the box height (1/20).
std_weight_velocity: f64Velocity noise as a fraction of the box height (1/160).
Implementations§
Source§impl BoxKalmanFilter
impl BoxKalmanFilter
Sourcepub fn initiate(&self, bbox: &BBox) -> BoxKalmanState
pub fn initiate(&self, bbox: &BBox) -> BoxKalmanState
A state at bbox with zero velocity.
Sourcepub fn predict(&self, state: &mut BoxKalmanState)
pub fn predict(&self, state: &mut BoxKalmanState)
Advance the state by one frame.
Sourcepub fn update(&self, state: &mut BoxKalmanState, bbox: &BBox)
pub fn update(&self, state: &mut BoxKalmanState, bbox: &BBox)
Correct the state with a measured box. A box with a non-positive height is ignored.
Trait Implementations§
Source§impl Clone for BoxKalmanFilter
impl Clone for BoxKalmanFilter
impl Copy for BoxKalmanFilter
Source§impl Debug for BoxKalmanFilter
impl Debug for BoxKalmanFilter
Source§impl Default for BoxKalmanFilter
impl Default for BoxKalmanFilter
Source§impl PartialEq for BoxKalmanFilter
impl PartialEq for BoxKalmanFilter
impl StructuralPartialEq for BoxKalmanFilter
Auto Trait Implementations§
impl Forget for BoxKalmanFilter
impl Freeze for BoxKalmanFilter
impl Move for BoxKalmanFilter
impl RefUnwindSafe for BoxKalmanFilter
impl Send for BoxKalmanFilter
impl Sync for BoxKalmanFilter
impl Unpin for BoxKalmanFilter
impl UnsafeUnpin for BoxKalmanFilter
impl UnwindSafe for BoxKalmanFilter
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
Mutably borrows from an owned value. Read more
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.