Webcam Tracker  V1.0
Using openCV and an Arduino Uno
PipeLineAction.h
Go to the documentation of this file.
1 
8 #pragma once
9 
11 #include <opencv2/core/core.hpp>
12 #include <opencv2/highgui.hpp>
13 #include <opencv2/imgproc.hpp>
14 
16 #include <vector>
17 #include<iostream>
18 
23 {
24 protected:
25  cv::Mat img;
26  bool show;
27  cv::String name;
28 
29 public:
32 
35  PipeLineAction(const cv::String name);
36 
42  virtual void setAction(void* data) = 0;
43 
48  virtual void* getAction();
49 
53  virtual void showWindow() = 0;
54 
57  void hideWindow();
58 
61  cv::String getName();
62 };
63 
64 
65 
66 
Base-class for all OpenCV pipeline actions.
Definition: PipeLineAction.h:23
cv::String getName()
gets the pipeline action name
Definition: PipeLineAction.cpp:38
void hideWindow()
hides the action to the user
Definition: PipeLineAction.cpp:30
cv::Mat img
Matrix which holds the image of the action.
Definition: PipeLineAction.h:25
cv::String name
(screen)name of the pipeline action
Definition: PipeLineAction.h:27
virtual void * getAction()
gets the output of the action
Definition: PipeLineAction.cpp:25
bool show
Show action flag.
Definition: PipeLineAction.h:26
virtual void showWindow()=0
shows the action to the user
PipeLineAction()
Default constructor.
Definition: PipeLineAction.cpp:11
virtual void setAction(void *data)=0
sets the output of the action