Object Detection  5.0
Image Processing Using Qt and Opencv
All Classes Namespaces Functions Pages
detectcolor.h
1 #ifndef DETECTCOLOR_H
2 #define DETECTCOLOR_H
3 
4 #include "ImageProcessor/abstractimageprocessor.h"
5 //TODO Use PIMPL C++ Idiom
6 #include <QObject>
7 #include <headers.h>
8 namespace ImageProcessor {
9 class IMG_PROC_LIB DetectColor;
10 }
11 using namespace ImageProcessor;
12 
14 {
15  Q_OBJECT
16  private:
17  class _DetectColorImpl;
18  std::unique_ptr<_DetectColorImpl> _pimpl;
19 public:
20  explicit DetectColor(QObject *parent = nullptr);
21  void detectColor();
22  cv::Scalar getMinColor() const;
23  cv::Scalar getMaxColor() const;
24  virtual ~DetectColor();
25 public slots:
26  void setMinColor(const cv::Scalar &value);
27  void setMaxColor(const cv::Scalar &value);
28 signals:
29 
30 
31  // ImageProcessor::AbstractImageProcessor interface
32 public:
33  virtual QVariant processImage() override;
34 };
35 
36 #endif // DETECTCOLOR_H
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...
this class is used to Detect Color given it&#39;s range(min, max) of hsv colors.
Definition: detectcolor.h:13
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