1 #ifndef COLORDETECTORCONTROLLER_H 2 #define COLORDETECTORCONTROLLER_H 5 #include "ImageProcessor/abstractimageprocessor.h" 6 #include "ImageProcessor/objectdetection.h" 8 #include "Utilities/utils.h" 17 int getDilationSize()
const;
18 int getThickCircle()
const;
19 cv::Scalar getMinColor()
const;
20 cv::Scalar getMaxColor()
const;
21 int getParam1()
const;
22 int getParam2()
const;
23 int getMinDist()
const;
24 cv::Scalar getCircleColor()
const;
25 void setCircleColor(
const cv::Scalar &value);
27 int getThickness()
const;
31 void setParam1(
int value);
32 void setParam2(
int value);
33 void setMinDist(
int value);
34 void setThickness(
int value);
39 void dilationSizeChanged(
int);
40 void minColorChanged(
const cv::Scalar&);
41 void maxColorChanged(
const cv::Scalar&);
42 void param1Changed(
int);
43 void param2Changed(
int);
44 void minDistChanged(
int);
45 void xyrChanged(
int,
int,
int);
49 cv::Scalar circleColor = cv::Scalar(0, 255, 0);
52 int param1, param2, minDist, dilationSize;
55 void addFilter(PluginSharedPointer filter);
56 void setDilationSize(
int value);
57 void setMinColor(
const cv::Scalar &value);
58 void setMaxColor(
const cv::Scalar &value);
59 Q_INVOKABLE QImage detectObject(
const cv::Mat &t);
63 #endif // COLORDETECTORCONTROLLER_H this class is used to detect a a colored circle object(s)