20 #ifndef TRACKINGFILTER_HPP 21 #define TRACKINGFILTER_HPP 23 #include "KalmanFilterPlus.hpp" 104 cv::Mat mKfControlVec;
120 #endif // TRACKINGFILTER_HPP int mNotFoundCount
Number of frames we have missed this object for.
Definition: TrackingFilter.hpp:93
cv::Mat prediction()
The KF prediction of the state.
Definition: TrackingFilter.cpp:49
double mTstart
Start time of this tick (the previous timestep's time)
Definition: TrackingFilter.hpp:112
double kalmanDistance(cv::Mat measurement)
Compute the Kalman distance to a measurement vector.
Definition: TrackingFilter.cpp:32
cv::Mat mKfState
State vector of most recent state.
Definition: TrackingFilter.hpp:98
int mKfMeasLen
Length of the measurement vector; 4 <x,y,w,h>
Definition: TrackingFilter.hpp:107
bool isLost()
Whether the object is lost and we don't know anything about it.
Definition: TrackingFilter.cpp:65
void updateTimeState(double t)
Update the time state of the tracker to the current time.
Definition: TrackingFilter.cpp:59
A cv::KalmanFilter which also supports some 'forgetful' functionality.
Definition: KalmanFilterPlus.hpp:30
void updateTrackFailure()
Alert the KF that we did not track a ball this frame.
Definition: TrackingFilter.cpp:44
void flushKalman()
Reset KF state to initial values.
Definition: TrackingFilter.cpp:27
int mFoundCount
Number of frames we have tracked this object for.
Definition: TrackingFilter.hpp:100
int mBlobRad
Radius of the current state blob?
Definition: TrackingFilter.hpp:86
int mKfStateLen
Length of the state vector; 6 <x,y,dx,dy,w,h>
Definition: TrackingFilter.hpp:96
double time()
The current time state.
Definition: TrackingFilter.hpp:77
A wrapper around a KalmanFilter type object; additional logic can be provided through extension...
Definition: TrackingFilter.hpp:34
cv::Mat covariance()
The KF's covariance matrix.
Definition: TrackingFilter.cpp:54
int mLatency
Unused?
Definition: TrackingFilter.hpp:88
KalmanFilterPlus mKf
The Kalman Filter object proper.
Definition: TrackingFilter.hpp:117
bool isFound()
Whether we have found a object recently.
Definition: TrackingFilter.cpp:70
double mTstop
Stop time of this tick (the current timestate)
Definition: TrackingFilter.hpp:114
cv::Mat mKfMeas
Measurement vector of most recent state.
Definition: TrackingFilter.hpp:109
double dT()
Change in time from prior state to this one.
Definition: TrackingFilter.hpp:75