#include <visionbehavior.hpp>
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. |
This interface is templated with the result of the computation.
VisionBehavior< T >::VisionBehavior | ( | ) | [inline] |
virtual VisionBehavior< T >::~VisionBehavior | ( | ) | [inline, virtual] |
Destructor, used to free results.
void VisionBehavior< T >::doComputations | ( | const IplImage & | img | ) | [inline] |
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.
virtual void VisionBehavior< T >::actOnKeyPressed | ( | char & | key | ) | [inline, virtual] |
virtual T& VisionBehavior< T >::getResult | ( | ) | [pure virtual] |
Returns the results of the computations.
Implemented in HoughCircles, HoughLines, LkTracking, and Squares.
void VisionBehavior< T >::switchOnOff | ( | ) | [inline] |
virtual void VisionBehavior< T >::emptyResult | ( | ) | [private, pure virtual] |
Implemented in HoughCircles, HoughLines, LkTracking, and Squares.
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.
bool VisionBehavior< T >::debug = DEBUG [inline, static, protected] |
bool VisionBehavior< T >::enabled [protected] |