1 #include "erodeplugin.h" 2 #include <opencv2/imgproc.hpp> 4 ErodePlugin::ErodePlugin(QObject *parent): QObject(parent)
9 QString ErodePlugin::filterName()
const 11 return "Erode Plugin";
14 cv::Mat ErodePlugin::filter(cv::Mat src)
const 16 cv::Mat element = getStructuringElement(cv::MORPH_RECT,
17 cv::Size( 2 * 4 + 1, 2 * 4 + 1 ),
19 cv::erode( src, src, element);
23 QString ErodePlugin::filterDescription()
const 25 return "Applies Erode Operation on Image( Must Be Black and white)";
28 QString ErodePlugin::author()
const 30 return "Mohamed Khaled";