Object Detection  5.0
Image Processing Using Qt and Opencv
objectdetection.cpp
1 #include "objectdetection.h"
2 #include "impl/objectdetectionimpl.h"
3 using namespace cv;
4 using namespace ImageProcessor;
10  _pimpl {INIT_UNIQUE_PTR(_ObjectDetectionImpl, this)}
11 {
12 }
18 {
19  return _pimpl->getDiler();
20 
21 }
27 {
28  return _pimpl->getColDetector();
29 }
35 {
36  return _pimpl->getCirDetector();
37 }
42 std::vector<Vec3f> ObjectDetection::getCircles()
43 {
44  return _pimpl->getCircles();
45 }
52 {
53  _pimpl->setCirDetector(cirDetector);
54 }
60 {
61  _pimpl->setDiler(diler);
62 }
63 
64 void ObjectDetection::setColDetector(DetectColor *colDetector)
65 {
66  _pimpl->setColDetector(colDetector);
67 }
73 void ObjectDetection::addFilter(PluginSharedPointer proc)
74 {
75  _pimpl->addFilter(proc);
76 }
77 
78 std::vector<PluginSharedPointer> ObjectDetection::getFilters() const
79 {
80  return _pimpl->getFilters();
81 }
82 
83 void ObjectDetection::setFilters(const std::vector<PluginSharedPointer> &value)
84 {
85  _pimpl->setFilters(value);
86 }
87 
88 QVariant ObjectDetection::getResults() const
89 {
90  return _pimpl->getResults();
91 }
92 
93 void ObjectDetection::setResults(QVariant res)
94 {
95  _pimpl->setResults(res);
96 }
105 {
106  return _pimpl->applyFilters(dst);
107 }
108 ObjectDetection::~ObjectDetection()
109 {
110 
111 }
112 
114 {
115  return _pimpl->processImage();
116 }
void addFilter(PluginSharedPointer proc)
ObjectDetection::addFilter adds a filter from a plugin.
std::vector< cv::Vec3f > getCircles()
ObjectDetection::getCircles.
virtual QVariant processImage() override
Pure Virtual Function representes the operation to be done on the Image to be processed.
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
this class is used to Detect Color given it&#39;s range(min, max) of hsv colors.
Definition: detectcolor.h:13
void setCirDetector(DetectCircle *cirDetector)
ObjectDetection::setCirDetector sets the circleDetector.
DetectColor * getColDetector() const
ObjectDetection::getColDetector.
DetectCircle * getCirDetector() const
ObjectDetection::getCirDetector.
ObjectDetection(QObject *parent=nullptr)
ObjectDetection::ObjectDetection.
void setDiler(Dilate *diler)
ObjectDetection::setDiler sets the dilate object.
Common Namespace for all Image Processor Algorithms.
Dilate * getDiler() const
ObjectDetection::getDiler.
this Class is used to perform morphological dilate operation on image see Morphological Operation...
Definition: dilate.h:13
cv::Mat applyFilters(cv::Mat dst) const
ObjectDetection::applyFilters applies filters to the image.