#include <opencv2\core\core.hpp>
#include <opencv2\highgui\highgui.hpp>
#include <opencv2\imgproc\imgproc.hpp>
using namespace cv;
int main()
{
Mat img1,img2;
img1=imread(“4.jpg”);
namedWindow(“高斯滤波的原图”);
namedWindow(“高斯滤波之后的图像”);

imshow(“高斯滤波的原图”,img1);
GaussianBlur(img1,img2,Size(3,3),0,0); //高斯函数滤波的调用函数方式
imshow(“高斯滤波之后的图像”,img2);
waitKey(0);
}

更多文章请关注《万象专栏》