Object Detection  5.0
Image Processing Using Qt and Opencv
dilate.cpp
1 #include "dilate.h"
2 #include "impl/dilateimpl.h"
3 using namespace ImageProcessor;
4 Dilate::Dilate(QObject *parent) : AbstractImageProcessor(parent),
5  _pimpl{INIT_UNIQUE_PTR(_DilateImpl, this)}
6 {
7 
8 }
14 {
15  return _pimpl->getDilationSize();
16 }
17 
18 Dilate::~Dilate()
19 {
20 
21 }
26 void Dilate::setDilationSize(int value)
27 {
28  _pimpl->setDilationSize(value);
29 }
30 
31 cv::MorphShapes Dilate::getShap() const
32 {
33  return _pimpl->getShap();
34 }
41 void Dilate::setShap(const cv::MorphShapes &value)
42 {
43  _pimpl->setShap(value);
44 }
45 
47 {
48  return _pimpl->processImage();
49 }
50 
51 void Dilate::dialteImg(){
52  _pimpl->dilateImg();
53 
54 }
55 
56 
virtual QVariant processImage() override
Pure Virtual Function representes the operation to be done on the Image to be processed.
Definition: dilate.cpp:46
The ImageProcessor::AbstractImageProcessor is an Abstract Base Class For All Image Processor Classes...
void setDilationSize(int value)
sets the Dilation Size of the Morphological Operation
Definition: dilate.cpp:26
int getDilationSize() const
returns the dilation Size
Definition: dilate.cpp:13
void setShap(const cv::MorphShapes &value)
sets The Shape of the Dialtion pixels
Definition: dilate.cpp:41
Common Namespace for all Image Processor Algorithms.