#include <opencv2\opencv.hpp>
#include <iostream>
using namespace std;
using namespace cv;
int main()
{
	Mat a = imread("./a.jpg");
	int y = 9;
	int x = 9;
	//blur(a, a, Size(x,y));
	//均值图像模糊
	//x,y为两个方向上模糊的权重
	GaussianBlur(a, a, Size(x, y), 11, 11);
	//高斯模糊处理
	imshow("a",a);
	waitKey(0);
	return 0;
}

OpenCV图像模糊处理(均值模糊与高斯模糊)_opencv