Object Detection  5.0
Image Processing Using Qt and Opencv
ImageProcessor::Dilate Class Reference

this Class is used to perform morphological dilate operation on image see Morphological Operation. More...

+ Inheritance diagram for ImageProcessor::Dilate:
+ Collaboration diagram for ImageProcessor::Dilate:

Classes

class  _DilateImpl
 

Public Slots

void setDilationSize (int value)
 sets the Dilation Size of the Morphological Operation More...
 
void setShap (const cv::MorphShapes &value)
 sets The Shape of the Dialtion pixels More...
 
- Public Slots inherited from ImageProcessor::AbstractImageProcessor
virtual void setDst (const cv::Mat &dst)
 sets The output of the operation More...
 
virtual void setImg (const cv::Mat &img)
 

Public Member Functions

 Dilate (QObject *parent=nullptr)
 
void dialteImg ()
 
int getDilationSize () const
 returns the dilation Size More...
 
cv::MorphShapes getShap () const
 
virtual QVariant processImage () override
 Pure Virtual Function representes the operation to be done on the Image to be processed. More...
 
- Public Member Functions inherited from ImageProcessor::AbstractImageProcessor
cv::Mat getImg () const
 AbstractImageProcessor::getImg. More...
 
cv::Mat getDst () const
 returns A cv::Mat Object which represents the output of the image processing operation More...
 

Additional Inherited Members

- Signals inherited from ImageProcessor::AbstractImageProcessor
void imageChanged (const cv::Mat &img)
 this Signal Is Emited When the source cv::Mat Object Changed.
 
void dstChanged (const cv::Mat &img)
 this Signal Is Emited When the destnation cv::Mat Object Changed. example: More...
 
- Protected Member Functions inherited from ImageProcessor::AbstractImageProcessor
 AbstractImageProcessor (QObject *parent=nullptr)
 accpets A pointer To the Parent Class For The Qt Meta-object Model See Qt Meta-Object More...
 

Detailed Description

this Class is used to perform morphological dilate operation on image see Morphological Operation.

Note
the image must be binary (black and white) and in grayscale.
ImageProcessor::Dialte dial{this};
dial.setImg(cv::imread(BINARY_IMG_PATH));
dial.processImage();
auto dst = dial.getDst();
cv::imshow("window", dst);
cv::waitKey(0);
Todo:
add Other Morphological Operations like erode.

Definition at line 13 of file dilate.h.

Member Function Documentation

◆ getDilationSize()

int Dilate::getDilationSize ( ) const

returns the dilation Size

Returns

Definition at line 13 of file dilate.cpp.

◆ processImage()

QVariant Dilate::processImage ( )
overridevirtual

Pure Virtual Function representes the operation to be done on the Image to be processed.

Exceptions
cv::Exception.notgarunteed to throw this exception
Warning
not exception nor thread safe.
Returns
QVariant Object which represents the output of the processing operation and it doesn't have to be cv::Mat.

Implements ImageProcessor::AbstractImageProcessor.

Definition at line 46 of file dilate.cpp.

◆ setDilationSize

void Dilate::setDilationSize ( int  value)
slot

sets the Dilation Size of the Morphological Operation

Definition at line 26 of file dilate.cpp.

◆ setShap

void Dilate::setShap ( const cv::MorphShapes &  value)
slot

sets The Shape of the Dialtion pixels

Parameters
enumof cv::MorphShapes.
See also
ImageProcessor::Dilate.

Definition at line 41 of file dilate.cpp.


The documentation for this class was generated from the following files: