#include <lktracking.hh>
Public Member Functions | |
LkTracking () | |
virtual | ~LkTracking () |
virtual void | writeOn (IplImage &img) const |
This function draws the results of the computations on the picture. It means that 'writeOn()' is called more often than 'compute()'. | |
virtual void | actOnKeyPressed (char &key) |
This function is used to change the 'writeOn' behaviour. | |
virtual CvPoints & | getResult () |
Returns the results of the computations. | |
void | addPointsToTrack (CvPoints &) |
Replace the list of the points to track. | |
Private Member Functions | |
virtual void | emptyResult () |
virtual void | compute (const IplImage &img) |
Fullfill this function which would be called according to the delay of the Vision class. | |
Private Attributes | |
CvPoints | result |
IplImage * | image |
IplImage * | grey |
IplImage * | prev_grey |
IplImage * | pyramid |
IplImage * | prev_pyramid |
IplImage * | swap_temp |
int | win_size |
CvPoint2D32f * | points [2] |
CvPoint2D32f * | swap_points |
char * | status |
int | count |
int | need_to_init |
int | night_mode |
int | flags |
int | add_remove_pt |
CvPoint | pt |
CvPoints | ptsToAdd |
LkTracking::LkTracking | ( | ) |
LkTracking::~LkTracking | ( | ) | [virtual] |
void LkTracking::writeOn | ( | IplImage & | img | ) | const [virtual] |
This function draws the results of the computations on the picture. It means that 'writeOn()' is called more often than 'compute()'.
Implements VisionBehavior< T >.
void LkTracking::actOnKeyPressed | ( | char & | key | ) | [virtual] |
CvPoints & LkTracking::getResult | ( | ) | [virtual] |
void LkTracking::addPointsToTrack | ( | CvPoints & | cP | ) |
Replace the list of the points to track.
void LkTracking::emptyResult | ( | ) | [private, virtual] |
Implements VisionBehavior< T >.
void LkTracking::compute | ( | const IplImage & | img | ) | [private, virtual] |
Fullfill this function which would be called according to the delay of the Vision class.
Implements VisionBehavior< T >.
CvPoints LkTracking::result [private] |
IplImage* LkTracking::image [private] |
IplImage* LkTracking::grey [private] |
IplImage* LkTracking::prev_grey [private] |
IplImage* LkTracking::pyramid [private] |
IplImage* LkTracking::prev_pyramid [private] |
IplImage* LkTracking::swap_temp [private] |
int LkTracking::win_size [private] |
CvPoint2D32f* LkTracking::points[2] [private] |
CvPoint2D32f* LkTracking::swap_points [private] |
char* LkTracking::status [private] |
int LkTracking::count [private] |
int LkTracking::need_to_init [private] |
int LkTracking::night_mode [private] |
int LkTracking::flags [private] |
int LkTracking::add_remove_pt [private] |
CvPoint LkTracking::pt [private] |
CvPoints LkTracking::ptsToAdd [private] |