Webcam Tracker
V1.0
Using openCV and an Arduino Uno
|
Child-classe, implements OpenCV's GaussianBlur. More...
#include <Blur.h>
Public Member Functions | |
Blur (const cv::String name) | |
Constructor. More... | |
void | setAction (void *data) |
sets the output of the action More... | |
void | showWindow () |
shows the action to the user More... | |
![]() | |
PipeLineAction () | |
Default constructor. | |
PipeLineAction (const cv::String name) | |
Constructor. More... | |
virtual void * | getAction () |
gets the output of the action More... | |
void | hideWindow () |
hides the action to the user More... | |
cv::String | getName () |
gets the pipeline action name More... | |
Static Public Member Functions | |
static void | onChange (int, void *data) |
Handles the change trackbar event. More... | |
Private Attributes | |
const int | maxValue = 20 |
maximum value of the associated trackbar | |
int | slider |
current value of the associated trackba | |
float | sigma |
Gaussian kernel standard deviation in X and Y direction. | |
int | kernelSize |
Gaussian kernel size in X and Y direction. | |
Additional Inherited Members | |
![]() | |
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 | |
Child-classe, implements OpenCV's GaussianBlur.
Blur::Blur | ( | const cv::String | name | ) |
Constructor.
name | (screen)name of blur action |
|
virtual |
sets the output of the action
in this case: bluring the input. The blursize is based on the trackbar value.
data | pointer to the input data, should be a OpenCV matrix |
Implements PipeLineAction.
|
virtual |
shows the action to the user
uses cv::imshow(). The name of the window is the name of the pipeline action. Trackbar is added to set the size of the Gaussion blur
Implements PipeLineAction.
|
static |
Handles the change trackbar event.
updates the kernelSize based on the trackbar position
data | pointer to the blur object associated with the trackbar |