Alida-C++ 0.1
|
Demo operator wrapping OpenCV functions. More...
#include <DemoOperatorOpenCV.h>
Public Member Functions | |
DemoOperatorOpenCV () | |
Default constructor. | |
virtual | ~DemoOperatorOpenCV () |
Default destructor. | |
void | operate () |
Method to implement the operator's functionality. |
Demo operator wrapping OpenCV functions.
This operator class demonstrates how OpenCV functions can be wrapped to make use of Alida's capabilites, particularly the generic user interface generation.
The operator currently wraps the OpenCV function cvSmooth(), i.e. allows to apply Gaussian blur of a specified variance to an input image.
Definition at line 53 of file DemoOperatorOpenCV.h.
DemoOperatorOpenCV::DemoOperatorOpenCV | ( | ) |
Default constructor.
virtual DemoOperatorOpenCV::~DemoOperatorOpenCV | ( | ) | [inline, virtual] |
Default destructor.
Definition at line 61 of file DemoOperatorOpenCV.h.
void DemoOperatorOpenCV::operate | ( | ) | [virtual] |
Method to implement the operator's functionality.
This function implements its abstract counterpart from the operator base class and contains the functional core of this operator.
Here it applies the OpenCV function cvSmooth() to the given input image adopting the specified standard deviation.
In this specific example the function does nothing reasonable, but just demonstrates how to access defined input parameters, and how to correctly fill the operator's output parameters.
Implements Alida::ALDOperator.
Definition at line 83 of file DemoOperatorOpenCV.cc.
References Alida::ALDOperator::getParameter(), and Alida::ALDOperator::setParameter().