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


边栏推荐
- 解决esp8266无法连接手机和电脑热点的问题
- 初识Opencv4.X----图像模板匹配
- Minkowskiengine installation
- TensorFlow2 安装快速避坑汇总
- [code source] score split of one question per day
- 【机器翻译】SCONES——用多标签任务做机器翻译
- First knowledge of opencv4.x --- image template matching
- 无向连通图邻接表的创建输出广度深度遍历
- Sort out personal technology selection in 2022
- Customize the view to realize the background of redeeming lottery tickets [elementary]
猜你喜欢

单目深度估计自监督模型Featdepth解读(上)——论文理解和核心源码分析

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

How to import a large amount of data in MATLAB

Minkowskiengine installation

Principle analysis of self supervised depth estimation of fish eye image and interpretation of omnidet core code

*6-3 save small experts

相机姿态估计

基于PackNet的演进——丰田研究院(TRI)深度估计文章盘点(上)

基于PackNet的演进——丰田研究院(TRI)深度估计文章盘点(下)

初识Opencv4.X----方框滤波
随机推荐
Binary Cross Entropy真的适合多标签分类吗?
目标检测与分割之MaskRCNN代码结构流程全面梳理+总结
[code source] daily one question non decreasing 01 sequence
初识Opencv4.X----均值滤波
Kotlin realizes file download
[code source] score split of one question per day
CUDA explanation - why GPU is used in deep learning
基于机智云平台的温湿度和光照强度获取
pytorch使用tensorboard实现可视化总结
Expect+sh realize automatic interaction
无向连通图邻接矩阵的创建输出广度深度遍历
Preliminary understanding and implementation of wechat applet bottom navigation bar
CCF 201509-2 日期计算
深度估计自监督模型monodepth2在自己数据集的实战——单卡/多卡训练、推理、Onnx转换和量化指标评估
MLOps专栏介绍
[data mining] Chapter 3 basis of data analysis
First knowledge of opencv4.x --- image template matching
matlab绘图|坐标轴axis的一些常用设置
CCF 201503-3 节日
Gartner 2022年顶尖科技趋势之超级自动化