#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv;
int main()
{
Mat srcimage = imread("test.jpg");
imshow("test", srcimage);
Mat element = getStructuringElement(MORPH_RECT, Size(15, 15));
Mat dstimage;
erode(srcimage, dstimage, element);
imshow("处理后",dstimage);
waitKey(0);
return 0;
}
第二个程序;图像腐蚀
最新推荐文章于 2023-09-08 14:21:50 发布