OpenCV简单操作-图像均值滤波

运行结果:

OpenCV简单操作-图像均值滤波

程序代码:

#include <opencv2/opencv.hpp>
#include <iostream>
using namespace std;
using namespace cv;
int main(int argc, char* argv[])
{
const char* imagename = "C://Users/long/Pictures/long.jpg";
Mat srcimg = imread(imagename);
imshow("[原图]", srcimg);
/***均值滤波***/
Mat dstimg;
blur(srcimg,dstimg,Size(7,7));
imshow("[图像均值滤波效果图]", dstimg);
waitKey();
return 0;
}

相关文章:

  • 2021-04-16
  • 2021-10-20
  • 2021-12-18
  • 2021-07-27
  • 2021-12-08
  • 2021-10-12
  • 2021-11-03
  • 2021-12-02
猜你喜欢
  • 2021-12-12
  • 2021-09-27
  • 2022-02-10
  • 2022-02-07
  • 2021-07-01
  • 2021-10-15
  • 2022-12-23
相关资源
相似解决方案