当前位置:网站首页>初识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;
}


边栏推荐
- cf #785(div2) C. Palindrome Basis
- How to write Android switching interface with kotlin
- ¥1-1 SWUST oj 941: 有序顺序表的合并操作的实现
- Some operations of main function
- Swagger2 shows that there is a problem with the get interface, which can be solved with annotations
- The shortest path problem Bellman Ford (single source shortest path) (illustration)
- How to obtain location information (longitude and latitude) by uni app
- Android & Kotlin : 困惑解答
- *7-2 CCF 2015-09-2 日期计算
- 一张图讲解 SQL Join 左连 又连
猜你喜欢
![[code source] daily question - queue](/img/79/79570529445e7fbb86fb63af8dcf50.jpg)
[code source] daily question - queue

The jar package has been launched on Alibaba cloud server and the security group has been opened, but postman still can't run. What should we do

cf #785(div2) C. Palindrome Basis

Object initialization

Why use json.stringify() and json.parse()

OC--Foundation--字符串+日期和时间

OC -- first acquaintance

uni-app如何获取位置信息(经纬度)

学生管理系统(总结)

为什么要使用JSON.stringify()和JSON.parse()
随机推荐
[code source] score split of one question per day
What is cerebral fissure?
OC -- first acquaintance
Numpy array attribute, shape changing function, basic operation
【代码源】每日一题 非递减01序列
Numpy - Construction of array
Prim 最小生成树(图解)
uni-app如何获取位置信息(经纬度)
打造个人极限写作流程 -转载
Browser access to swagger failed with error err_ UNSAFE_ PORT
[GYCTF2020]Node Game
单例模式(Singleton)
Voice chat app source code - produced by NASS network source code
Singleton mode
kotlin基础知识点
梦想启航(第一篇博客)
【代码源】每日一题 农田划分
Read and write mongodb database files
Redis set 结构命令
【代码源】每日一题 分割(nlogn&n解法)