Object Detection  5.0
Image Processing Using Qt and Opencv
detectcircle.h
1 #ifndef DETECTCIRCLE_H
2 #define DETECTCIRCLE_H
3 
4 #include <QObject>
5 #include <headers.h>
6 #include <ImageProcessor/abstractimageprocessor.h>
7 using namespace ImageProcessor;
8 namespace ImageProcessor {
9  class IMG_PROC_LIB DetectCircle;
10 }
11 Q_DECLARE_METATYPE(std::vector<cv::Vec3f>)
13 {
14  Q_OBJECT
15 private:
16  class _DetectCircleImpl;
17  std::unique_ptr<_DetectCircleImpl> _pimpl;
18 public:
19  explicit DetectCircle(QObject *parent = nullptr);
20  std::vector<cv::Vec3f> detectCircle()const;
21  virtual ~DetectCircle();
22  int getMinDist() const;
23 
24  int getParam2() const;
25 
26  int getParam1() const;
27 
28 signals:
29  void circlesDetected(const std::vector<cv::Vec3f>&);
30 public slots:
31  void setMinDist(int value);
32  void setParam2(int value);
33  void setParam1(int value);
34 
35 
36 
37  // ImageProcessor::AbstractImageProcessor interface
38 public:
39  QVariant processImage() override;
40 };
41 
42 
43 #endif // DETECTCIRCLE_H
The ImageProcessor::AbstractImageProcessor is an Abstract Base Class For All Image Processor Classes...
this class is used To Detect circles in an image
Definition: detectcircle.h:12
Common Namespace for all Image Processor Algorithms.