opencv中图像模糊(c++)day3

#include<opencv2\opencv.hpp>
#include<iostream>


using namespace cv;
int main()
{
	Mat src=imread("aa.jpg");
	Mat dst,dst1;
	if(src.empty())
	{
		printf("加载失败\n");
		return -1;
	}
	imshow("picture",src);
	blur(src,dst,Size(15,3),Point(-1,-1));
	GaussianBlur(src,dst1,Size(5,5),11,11);
	imshow("blur",dst);
	imshow("dst1",dst1);
	waitKey(0);
	return 0;
}

猜你喜欢

转载自blog.csdn.net/suntingsheng123/article/details/87915849