Object Detection  5.0
Image Processing Using Qt and Opencv
detectcolor.cpp
1 #include "detectcolor.h"
2 #include "impl/detectcolorimpl.h"
3 using namespace ImageProcessor;
4 DetectColor::DetectColor(QObject *parent) : AbstractImageProcessor(parent),
5  _pimpl{INIT_UNIQUE_PTR(_DetectColorImpl, this)}
6 {
7 
8 }
13 cv::Scalar DetectColor::getMinColor() const
14 {
15  return _pimpl->getMinColor();
16 }
21 void DetectColor::setMinColor(const cv::Scalar &value)
22 {
23  _pimpl->setMinColor(value);
24 }
29 cv::Scalar DetectColor::getMaxColor() const
30 {
31  return _pimpl->getMaxColor();
32 }
33 
34 DetectColor::~DetectColor()
35 {
36 
37 }
43 void DetectColor::setMaxColor(const cv::Scalar &value)
44 {
45  _pimpl->setMaxColor(value);
46 }
47 
49 {
50 
51  return _pimpl->processImage();
52 }
60  return _pimpl->detectColor();
61 }
62 
void setMinColor(const cv::Scalar &value)
sets The Minimum hsv color for the Detector
Definition: detectcolor.cpp:21
cv::Scalar getMinColor() const
returns the Minimum HSV Color space Of Threshold Detector
Definition: detectcolor.cpp:13
The ImageProcessor::AbstractImageProcessor is an Abstract Base Class For All Image Processor Classes...
Common Namespace for all Image Processor Algorithms.
void setMaxColor(const cv::Scalar &value)
sets The maximum hsv color for the Detector
Definition: detectcolor.cpp:43
void detectColor()
Helper Function Used To Detect Color.
Definition: detectcolor.cpp:59
virtual QVariant processImage() override
Pure Virtual Function representes the operation to be done on the Image to be processed.
Definition: detectcolor.cpp:48
cv::Scalar getMaxColor() const
returns the maximum HSV Color space Of Threshold Detector
Definition: detectcolor.cpp:29