#include <opencv2/opencv.hpp>
#include <iostream>
#include <opencv2/core/utils/logger.hpp>
using namespace std;
using namespace cv;
int main(int argc, const char* argv[])
{
utils::logging::setLogLevel(utils::logging::LOG_LEVEL_SILENT); //设置日志输出
Mat src = imread("E:/picture/9.jpg");
Mat dst = Mat::zeros(src.size(), src.type());
putText(src, "OpenCv_vigny", Point(20, 50), FONT_HERSHEY_COMPLEX, 1.0,
Scalar(12, 12, 127), 1, LINE_8, false);
//blur(src, dst, Size(5, 5), Point(-1, -1), 4); //均值滤波
GaussianBlur(src, dst, Size(5, 5), 3, 3, 4); //Gaussian滤波
imshow("input", src);
imshow("output", dst);
waitKey(0);
destroyAllWindows();
return 0;
}
OpenCV.图像模糊(均值滤波、Guassian滤波)
最新推荐文章于 2024-08-24 00:28:01 发布
关键词由CSDN通过智能技术生成