#include <iostream>
#include <opencv2\opencv.hpp>
#include <math.h>
using namespace cv;
using namespace std;
int main()
{
//原图
Mat src = imread("E:\\3.jpg",IMREAD_UNCHANGED), dst;
if (!src.data) {
cout << "failed!" << endl;
return 0;
}
namedWindow("input_image", WINDOW_AUTOSIZE);
namedWindow("output_image", WINDOW_AUTOSIZE);
// 在窗口中显示图片
imshow("input_image", src);
dst = Mat::zeros(src.size(), src.type());
/*高斯滤波*/
/*GaussianBlur(src, dst, Size(11, 11), 5);*/
/*均值滤波*/
blur(src, dst, Size(11, 11), Point(0, 0));
//输出结果
imshow("output_image", dst);
waitKey(0);
return 0;
}