VisionBehavior< T > Class Template Reference

Interface for any vision computations. More...

#include <visionbehavior.hpp>

Inheritance diagram for VisionBehavior< T >:

LkTracking

List of all members.

Public Member Functions

 VisionBehavior ()
virtual ~VisionBehavior ()
 Destructor, used to free results.
void doComputations (const IplImage &img)
virtual void writeOn (IplImage &img) const =0
 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 T & getResult ()=0
 Returns the results of the computations.
void switchOnOff ()

Protected Attributes

bool enabled

Static Protected Attributes

static bool debug = DEBUG

Private Member Functions

virtual void emptyResult ()=0
virtual void compute (const IplImage &img)=0
 Fullfill this function which would be called according to the delay of the Vision class.


Detailed Description

template<class T>
class VisionBehavior< T >

Interface for any vision computations.

This interface is templated with the result of the computation.


Constructor & Destructor Documentation

template<class T>
VisionBehavior< T >::VisionBehavior (  )  [inline]

template<class T>
virtual VisionBehavior< T >::~VisionBehavior (  )  [inline, virtual]

Destructor, used to free results.


Member Function Documentation

template<class T>
void VisionBehavior< T >::doComputations ( const IplImage &  img  )  [inline]

template<class T>
virtual void VisionBehavior< T >::writeOn ( IplImage &  img  )  const [pure virtual]

This function draws the results of the computations on the picture. It means that 'writeOn()' is called more often than 'compute()'.

Implemented in HoughCircles, HoughLines, LkTracking, and Squares.

template<class T>
virtual void VisionBehavior< T >::actOnKeyPressed ( char &  key  )  [inline, virtual]

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

Reimplemented in LkTracking, and Squares.

template<class T>
virtual T& VisionBehavior< T >::getResult (  )  [pure virtual]

Returns the results of the computations.

Implemented in HoughCircles, HoughLines, LkTracking, and Squares.

template<class T>
void VisionBehavior< T >::switchOnOff (  )  [inline]

template<class T>
virtual void VisionBehavior< T >::emptyResult (  )  [private, pure virtual]

Implemented in HoughCircles, HoughLines, LkTracking, and Squares.

template<class T>
virtual void VisionBehavior< T >::compute ( const IplImage &  img  )  [private, pure virtual]

Fullfill this function which would be called according to the delay of the Vision class.

Implemented in HoughCircles, HoughLines, LkTracking, and Squares.


Member Data Documentation

template<class T>
bool VisionBehavior< T >::debug = DEBUG [inline, static, protected]

template<class T>
bool VisionBehavior< T >::enabled [protected]


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