Object Detection  5.0
Image Processing Using Qt and Opencv
detectcircleimpl.h
1 #ifndef DETECTCIRCLEIMPL_H
2 #define DETECTCIRCLEIMPL_H
3 
4 #include <QObject>
5 #include <headers.h>
6 #include <ImageProcessor/detectcircle.h>
7 class ImageProcessor::DetectCircle::_DetectCircleImpl {
8 private:
9  int param1 = 70, param2 = 30, minDist = 75;
10  DetectCircle *const ptr;
11 public:
12  _DetectCircleImpl(const _DetectCircleImpl&) = default;
13  _DetectCircleImpl(_DetectCircleImpl &&) = default;
14  _DetectCircleImpl(DetectCircle *const);
15  int getParam1() const;
16  int getParam2() const;
17  int getMinDist() const;
18  std::vector<cv::Vec3f> detectCircle()const;
19  QVariant processImage();
20 
21 public slots:
22  void setParam1(int value);
23  void setParam2(int value);
24  void setMinDist(int value);
25 };
26 #endif // DETECTCIRCLE_H
void setMinDist(int value)
sets the minimum value between two circles
this class is used To Detect circles in an image
Definition: detectcircle.h:12
std::vector< cv::Vec3f > detectCircle() const
this helper Function is used to detect circles in an Image using HoughCircle Algorithm.
QVariant processImage() override
reimplemented Function.