#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv;
int main()
{
//[1]载入原始图
Mat srcImg = imread("./pic/plane.jpg");
//[2]显示原始图
imshow("均值滤波【原图】", srcImg);
//[3]进行均值滤波操作
Mat dstImg;
blur(srcImg, dstImg, Size(7, 7));
//[4]显示效果图
imshow("均值滤波【效果图】", dstImg);
waitKey(0);
}
OpenCV入门-03图像模糊
最新推荐文章于 2024-09-16 10:36:54 发布