Webcam Tracker  V1.0
Using openCV and an Arduino Uno
Blur.h
Go to the documentation of this file.
1 
9 #pragma once
10 #include "PipeLineAction.h"
14 class Blur : public PipeLineAction {
15 
16 private:
17  const int maxValue = 20;
18  int slider;
19  float sigma;
20  int kernelSize;
21 
22 
23 public:
26  Blur(const cv::String name);
27 
31  void setAction(void* data);
32 
36  void showWindow();
37 
41  static void onChange(int, void* data);
42 };
43 
header file of the PipeLineAction base-class
Child-classe, implements OpenCV's GaussianBlur.
Definition: Blur.h:14
void setAction(void *data)
sets the output of the action
Definition: Blur.cpp:21
int slider
current value of the associated trackba
Definition: Blur.h:18
int kernelSize
Gaussian kernel size in X and Y direction.
Definition: Blur.h:20
void showWindow()
shows the action to the user
Definition: Blur.cpp:27
float sigma
Gaussian kernel standard deviation in X and Y direction.
Definition: Blur.h:19
static void onChange(int, void *data)
Handles the change trackbar event.
Definition: Blur.cpp:37
const int maxValue
maximum value of the associated trackbar
Definition: Blur.h:17
Blur(const cv::String name)
Constructor.
Definition: Blur.cpp:14
Base-class for all OpenCV pipeline actions.
Definition: PipeLineAction.h:23
cv::String name
(screen)name of the pipeline action
Definition: PipeLineAction.h:27