LiveFit
Track and plot projectiles for in-class demonstration
|
Object which represents a prediction from the Kalman filter. More...
#include <KFPrediction.hpp>
Public Member Functions | |
KFPrediction (cv::Mat kfStatePre, cv::Mat kfCov, double t, double dt, bool seen) | |
Create a KFPrediction from prediction data. More... | |
KFPrediction (const KFPrediction &k) | |
Copy constructor. | |
QRectF | bbox () const |
Get the bounding box. | |
QPointF | jet () const |
Get the jet. | |
double | dt () const |
Get the timestep change. | |
double | t () const |
Get the time of prediction. | |
bool | seen () const |
Get whether the ball was seen. | |
double | confidence () const |
Get the confidence of this prediction. | |
void | setCenter (QPointF pos) |
Set the center of the bounding box of this prediction. | |
void | setTopLeft (QPointF pos) |
Set the top left of the bounding box. | |
void | setBottomRight (QPointF pos) |
Set the bottom right of the bounding box. | |
Private Attributes | |
QRectF | mBbox |
Bounding box of this prediction. | |
QPointF | mJet |
<dx/dt, dy/dt> vector | |
double | mT |
Time at which this prediction was recorded. | |
double | mDt |
Change in time from step prior to detection. | |
bool | mSeen |
Whether this prediction is based on a track or not. | |
double | mConfidence |
Measure of confidence; KF distance to expected location. | |
Object which represents a prediction from the Kalman filter.
Essentially decorates state data, but also holds onto the dT from the previous timestep
|
explicit |
Create a KFPrediction from prediction data.
kfStatePre | KF Predicted state |
kfCov | KF Covariance matrix |
t | Current time state at prediction |
dt | Previous change in time between states |
seen | Whether the ball was spotted or not |