Object Detection  5.0
Image Processing Using Qt and Opencv
detectcircle.cpp
1 #include "detectcircle.h"
2 #include "impl/detectcircleimpl.h"
3 using namespace ImageProcessor;
4 
5 int DetectCircle::getMinDist() const
6 {
7  return _pimpl->getMinDist();
8 }
14 void DetectCircle::setMinDist(int value)
15 {
16  _pimpl->setMinDist(value);
17 }
18 
19 int DetectCircle::getParam2() const
20 {
21  return _pimpl->getParam2();
22 }
23 
24 void DetectCircle::setParam2(int value)
25 {
26  _pimpl->setParam2(value);
27 }
28 
29 int DetectCircle::getParam1() const
30 {
31  return _pimpl->getParam1();
32 }
33 
34 void DetectCircle::setParam1(int value)
35 {
36  _pimpl->setParam1(value);
37 }
52 {
53  return _pimpl->processImage();
54 }
55 
56 DetectCircle::DetectCircle(QObject *parent) : AbstractImageProcessor(parent),
57  _pimpl{INIT_UNIQUE_PTR(DetectCircle::_DetectCircleImpl, this)}
58 {
59 
60 }
66 std::vector<cv::Vec3f> DetectCircle::detectCircle() const{
67  return _pimpl->detectCircle();
68 }
69 
70 DetectCircle::~DetectCircle()
71 {
72 
73 }
74 
75 
AbstractImageProcessor(QObject *parent=nullptr)
accpets A pointer To the Parent Class For The Qt Meta-object Model See Qt Meta-Object ...
void setMinDist(int value)
sets the minimum value between two circles
std::vector< cv::Vec3f > detectCircle() const
this helper Function is used to detect circles in an Image using HoughCircle Algorithm.
Common Namespace for all Image Processor Algorithms.
QVariant processImage() override
reimplemented Function.