当前位置:网站首页>初识Opencv4.X----均值滤波
初识Opencv4.X----均值滤波
2022-07-25 09:22:00 【F l e】
//均值滤波
#include <stdio.h>
#include <iostream>
#include <string>
#include <opencv2\opencv.hpp>
using namespace std;
using namespace cv;
int main()
{
//均值滤波
Mat img_gaussion = imread("gaussion.jpg");
Mat img_salt = imread("salt.jpg");
Mat gaussion_result, salt_result;
blur(img_gaussion, gaussion_result, Size(3, 3));
blur(img_salt, salt_result, Size(3, 3));
imshow("img_gaussion", img_gaussion);
imshow("gaussion_result", gaussion_result);
imshow("img_salt", img_salt);
imshow("salt_result", salt_result);
waitKey(0);
return 0;
}


边栏推荐
猜你喜欢

类(2) 和 协议

用kotlin怎么写Android切换界面

微信小程序初步了解及实现底部导航栏

Swagger2 shows that there is a problem with the get interface, which can be solved with annotations

UI——无限轮播图和分栏控制器

*6-2 CCF 2015-03-3 节日

Definition of cell

Data control language (DCL)

@3-1 CCF 2020-09-1 scale detection point query
![[gplt] 2022 popular lover (Floyd)](/img/30/c96306ca0a93f22598cec80edabd6b.png)
[gplt] 2022 popular lover (Floyd)
随机推荐
作业7.15 shell脚本
2022年的个人技术选型梳理
Voice chat app source code - produced by NASS network source code
OC--Foundation--字符串+日期和时间
如何将Jar包部署到服务器,注:启动命令有无nohup有很大关系
main函数的一些操作
【代码源】每日一题 算的我头都大啦
自定义Dialog 实现 仿网易云音乐的隐私条款声明弹框
【代码源】每日一题 分割(nlogn&n解法)
[code source] I have a big head for a problem every day
语音聊天app源码-钠斯网络源码出品
梦想启航(第一篇博客)
How to customize the title content of uni app applet (how to solve the problem that the title of applet is not centered)
UI原型资源
Learn redis Linux and install redis
【代码源】每日一题 树
Assignment 7.21 Joseph Ring problem and decimal conversion
OC -- Foundation -- Collection
关于C和OC
OC--继承和多态and指针