TrackerPsa implements a very simple PSA tracker More...
#include <TrackerPsa.h>
Public Member Functions | |
virtual void | Compensate (double *x, double *y) |
double | Track (IplImage *img) |
Track using PSA. | |
TrackerPsa (int _max_shift=50) | |
Constructor. | |
~TrackerPsa () | |
Destructor. | |
Public Attributes | |
double | xd |
Track result x-translation in pixels | |
double | yd |
Track result y-translation in pixels | |
Protected Attributes | |
long | framecount |
long * | hor |
long * | horprev |
int | max_shift |
long * | ver |
long * | verprev |
int | x_res |
int | y_res |
TrackerPsa implements a very simple PSA tracker
(See Drab, Stephan A. & Artner, Nicole M. "Motion Detection as Interaction Technique for Games & Applications on Mobile Devices" PERMID 2005)
Definition at line 42 of file TrackerPsa.h.
alvar::TrackerPsa::TrackerPsa | ( | int | _max_shift = 50 | ) |
Constructor.
Definition at line 31 of file TrackerPsa.cpp.
Destructor.
Definition at line 39 of file TrackerPsa.cpp.
void alvar::TrackerPsa::Compensate | ( | double * | x, |
double * | y | ||
) | [virtual] |
Reimplemented from alvar::Tracker.
Reimplemented in alvar::TrackerPsaRot.
Definition at line 144 of file TrackerPsa.cpp.
double alvar::TrackerPsa::Track | ( | IplImage * | img | ) | [virtual] |
Track using PSA.
Implements alvar::Tracker.
Reimplemented in alvar::TrackerPsaRot.
Definition at line 46 of file TrackerPsa.cpp.
long alvar::TrackerPsa::framecount [protected] |
Definition at line 48 of file TrackerPsa.h.
long* alvar::TrackerPsa::hor [protected] |
Definition at line 46 of file TrackerPsa.h.
long * alvar::TrackerPsa::horprev [protected] |
Definition at line 46 of file TrackerPsa.h.
int alvar::TrackerPsa::max_shift [protected] |
Definition at line 44 of file TrackerPsa.h.
long* alvar::TrackerPsa::ver [protected] |
Definition at line 47 of file TrackerPsa.h.
long * alvar::TrackerPsa::verprev [protected] |
Definition at line 47 of file TrackerPsa.h.
int alvar::TrackerPsa::x_res [protected] |
Definition at line 45 of file TrackerPsa.h.
double alvar::TrackerPsa::xd |
Track result x-translation in pixels
Definition at line 52 of file TrackerPsa.h.
int alvar::TrackerPsa::y_res [protected] |
Definition at line 45 of file TrackerPsa.h.
double alvar::TrackerPsa::yd |
Track result y-translation in pixels
Definition at line 54 of file TrackerPsa.h.