LiveFit
Track and plot projectiles for in-class demonstration
Public Member Functions | Private Attributes | List of all members
KFPrediction Class Reference

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.
 

Detailed Description

Object which represents a prediction from the Kalman filter.

Essentially decorates state data, but also holds onto the dT from the previous timestep

Constructor & Destructor Documentation

KFPrediction::KFPrediction ( cv::Mat  kfStatePre,
cv::Mat  kfCov,
double  t,
double  dt,
bool  seen 
)
explicit

Create a KFPrediction from prediction data.

Parameters
kfStatePreKF Predicted state
kfCovKF Covariance matrix
tCurrent time state at prediction
dtPrevious change in time between states
seenWhether the ball was spotted or not

The documentation for this class was generated from the following files: