LkTracking Class Reference

VisionBehavior 's implementation of the LK-Optical Flow (Lucas and Kanade) used to do blob-tracking in an image. More...

#include <lktracking.hh>

Inheritance diagram for LkTracking:

VisionBehavior< T >

List of all members.

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 CvPointsgetResult ()
 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


Detailed Description

VisionBehavior 's implementation of the LK-Optical Flow (Lucas and Kanade) used to do blob-tracking in an image.

Constructor & Destructor Documentation

LkTracking::LkTracking (  ) 

LkTracking::~LkTracking (  )  [virtual]


Member Function Documentation

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]

This function is used to change the 'writeOn' behaviour.

Reimplemented from VisionBehavior< T >.

CvPoints & LkTracking::getResult (  )  [virtual]

Returns the results of the computations.

Implements VisionBehavior< T >.

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 >.


Member Data Documentation

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]


The documentation for this class was generated from the following files:
Generated on Mon Dec 31 13:33:37 2007 for Vision by  doxygen 1.5.3