Webcam Tracker
V1.0
Using openCV and an Arduino Uno
|
Base-class for all OpenCV pipeline actions. More...
#include <PipeLineAction.h>
Public Member Functions | |
PipeLineAction () | |
Default constructor. | |
PipeLineAction (const cv::String name) | |
Constructor. More... | |
virtual void | setAction (void *data)=0 |
sets the output of the action More... | |
virtual void * | getAction () |
gets the output of the action More... | |
virtual void | showWindow ()=0 |
shows the action to the user More... | |
void | hideWindow () |
hides the action to the user More... | |
cv::String | getName () |
gets the pipeline action name More... | |
Protected Attributes | |
cv::Mat | img |
Matrix which holds the image of the action. | |
bool | show |
Show action flag. | |
cv::String | name |
(screen)name of the pipeline action | |
Base-class for all OpenCV pipeline actions.
openCV include files c++ include files
PipeLineAction::PipeLineAction | ( | const cv::String | name | ) |
Constructor.
name | (screen)name of the pipeline action |
|
pure virtual |
sets the output of the action
The parameter type is kept open, this provides the possibility to change the order of the pipeline and the type of parameter which is inserted. Special precautions have been taken to check if the parameter type is suitable for the action.
data | pointer to the input data |
Implemented in Moment, Mask, ConvertColorSpace, Contour, and Blur.
|
virtual |
|
pure virtual |
shows the action to the user
uses cv::imshow(). The name of the window is the name of the pipeline action. it is possible to add trackbars to the implentations.
Implemented in Moment, Mask, ConvertColorSpace, Contour, and Blur.
void PipeLineAction::hideWindow | ( | ) |
cv::String PipeLineAction::getName | ( | ) |
gets the pipeline action name