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

A ball which has been tracked by the software. More...

#include <TrackingBall.hpp>

Public Member Functions

 TrackingBall ()
 Construct an empty TrackingBall.
 
 TrackingBall (std::vector< cv::Point > contour)
 Construct a TrackingBall from a measurement vector (usual method)
 
cv::Mat getMeas () const
 Get the measurement vector.
 
double x () const
 Get the x coordinate of the center.
 
double y () const
 Get the y coordinate of the center.
 
double width () const
 Get the width of the bounding rect.
 
double height () const
 Get the height of the bounding rect.
 
double r () const
 Get the radius of the bounding circle.
 
QPoint center () const
 Get the center of the ball mass.
 
QPoint tl () const
 Top left corner of the bounding rect.
 
cv::Rect rect () const
 Get the bounding rect for the ball.
 

Private Attributes

cv::Mat mMeasVec
 The measurement vector (KF spotting input)
 
cv::Point2f mCenter
 The center of the ball mass.
 
float mRadius
 The radius of the ball mass.
 
cv::Rect mRect
 A Rect which encompasses the ball mass.
 

Detailed Description

A ball which has been tracked by the software.


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