当前位置:网站首页>First knowledge of opencv4.x --- box filtering
First knowledge of opencv4.x --- box filtering
2022-07-25 09:51:00 【F l e】
// Box filtering
#include <stdio.h>
#include <iostream>
#include <string>
#include <opencv2\opencv.hpp>
using namespace std;
using namespace cv;
int main()
{
// Box filtering , In fact, it is the same as mean filtering , Mainly used in CV_32F On the image of
Mat img_gaussion = imread("gaussion.jpg");
Mat img_salt = imread("salt.jpg");
img_gaussion.convertTo(img_gaussion, CV_32FC3, 1.0/255);
img_salt.convertTo(img_salt, CV_32FC3, 1.0 / 255);
Mat gaussion_result, salt_result;
boxFilter(img_gaussion, gaussion_result, CV_32FC3, Size(3, 3));
boxFilter(img_salt, salt_result, CV_32FC3, 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;
}


边栏推荐
- 【数据挖掘】第三章 数据分析基础
- Development history of convolutional neural network (part)
- Get to know opencv4.x for the first time --- add Gaussian noise to the image
- [data mining] Chapter 2 understanding data
- 无向连通图邻接矩阵的创建输出广度深度遍历
- CUDA 解释 - 深度学习为何使用 GPU
- 预测2021年:加速实现RPA以外的超自动化成果
- 一张图讲解 SQL Join 左连 又连
- Mixed supervision for surface-defect detection: from weakly to fully supervised learning:表面缺陷检测的混合监督
- Flutter rive multi state example
猜你喜欢

matlab绘图|坐标轴axis的一些常用设置

AMD EPYC 9664旗舰规格曝光:96核192线程 480MB缓存 3.8GHz频率

TensorFlow raw_rnn - 实现seq2seq模式中将上一时刻的输出作为下一时刻的输入

初识Opencv4.X----图像直方图绘制

基于机智云平台的温湿度和光照强度获取

Kotlin collaboration: foundation and use of collaboration

初识Opencv4.X----方框滤波

【深度学习】卷积神经网络

Mixed supervision for surface defect detection: from weakly to fully supervised learning

从鱼眼到环视到多任务王炸——盘点Valeo视觉深度估计经典文章(从FisheyeDistanceNet到OmniDet)(上)
随机推荐
Introducing MLOps 解读(一)
初识Opencv4.X----图像直方图均衡
Kotlin basic knowledge points
Preliminary understanding and implementation of wechat applet bottom navigation bar
CCF 201509-2 日期计算
T5论文总结
Flutter rive multi state example
matlab的find()函数的一些用法(快速查找符合条件的值)
CCF 201512-3 画图
预测2021年:加速实现RPA以外的超自动化成果
CUDA explanation - why GPU is used in deep learning
matlab如何导入大量数据
1094--谷歌的招聘
Segmentation based deep learning approach for surface defect detection
Use kotlin use to simplify file reading and writing
Bracket matching problem
从鱼眼到环视到多任务王炸——盘点Valeo视觉深度估计经典文章(从FisheyeDistanceNet到OmniDet)(下)
First knowledge of opencv4.x --- image histogram equalization
[deep learning] convolutional neural network
[code source] National Railway