Object Detection  5.0
Image Processing Using Qt and Opencv
abstractimageprocessor.cpp
1 #include "abstractimageprocessor.h"
2 #include "impl/abstractimageprocessorimpl.h"
3 #include <iostream>
4 using namespace ImageProcessor;
9 AbstractImageProcessor::AbstractImageProcessor(QObject *parent) : QObject(parent),
10  _pimpl(INIT_UNIQUE_PTR(AbstractImageProcessor::_AbstractImageProcessorImpl))
11 {
12 
13 }
14 
15 
21 {
22  return _pimpl->getDst();
23 }
24 
25 
30 void AbstractImageProcessor::setDst(const cv::Mat &dst)
31 {
32  _pimpl->setDst(dst);
33  emit dstChanged(dst);
34 }
47 {
48  return _pimpl->getImg();
49 }
50 
51 AbstractImageProcessor::~AbstractImageProcessor()
52 {
53 
54 }
55 
56 void AbstractImageProcessor::setImg(const cv::Mat &img)
57 {
58  _pimpl->setImg(img);
59  emit imageChanged(img);
60 
61 }
62 
63 
64 
void dstChanged(const cv::Mat &img)
this Signal Is Emited When the destnation cv::Mat Object Changed. example:
The ImageProcessor::AbstractImageProcessor is an Abstract Base Class For All Image Processor Classes...
AbstractImageProcessor(QObject *parent=nullptr)
accpets A pointer To the Parent Class For The Qt Meta-object Model See Qt Meta-Object ...
cv::Mat getImg() const
AbstractImageProcessor::getImg.
virtual void setDst(const cv::Mat &dst)
sets The output of the operation
cv::Mat getDst() const
returns A cv::Mat Object which represents the output of the image processing operation ...
Common Namespace for all Image Processor Algorithms.
void imageChanged(const cv::Mat &img)
this Signal Is Emited When the source cv::Mat Object Changed.