当前位置:网站首页>Smoothing data using convolution
Smoothing data using convolution
2022-06-26 15:05:00 【jk_ one hundred and one】
Convolution can be used to smooth two-dimensional data containing high-frequency components . Use peaks Function to create 2D data , And plot the data at each contour level .
Z = peaks(100);
levels = -7:1:10;
contour(Z,levels)As shown in the figure :

Insert random noise into the data and draw noisy contours .
Znoise = Z + rand(100) - 0.5;
contour(Znoise,levels)As shown in the figure :

MATLAB Medium conv2 The convolution() function computes the convolution of two-dimensional data using a specified kernel , The elements of this kernel define how to remove or enhance the features of the original data . The size of the core does not have to be the same as the input data . The small kernel is enough to smooth the data containing only a few frequency components . Larger cores can adjust the frequency response more accurately , To get a smoother output .
Define a 3×3 nucleus K And use conv2 Yes Znoise Smooth the noisy data in . Draw smoothed contour lines .conv2 Medium 'same' Option to make the output the same size as the input .
K = (1/9)*ones(3);
Zsmooth1 = conv2(Znoise,K,'same');
contour(Zsmooth1, levels)As shown in the figure :

use 5×5 Check the noisy data for smoothing , And draw new contours .
K = (1/25)*ones(5);
Zsmooth2 = conv2(Znoise,K,'same');
contour(Zsmooth2,levels)As shown in the figure :

边栏推荐
- R language dplyr package bind_ The rows function merges the rows of the two dataframes vertically. The final number of rows is the sum of the rows of the original two dataframes (combine data frames)
- SAP 销售数据 实际发货数据导出 销量
- Informatics Olympiad all in one 1400: count the number of words (string matching)
- 【soloπ】adb连接单个多个手机
- 在云服务器中云磁盘如何挂载
- Where do people get their top energy?
- The engine "node" is inconsistent with this module
- How to mount cloud disks in ECS
- Sectigo的IP证书申请流程
- 710. 黑名单中的随机数
猜你喜欢

View触摸分析

【云原生】 ”人人皆可“ 编程的无代码 iVX 编辑器

15 bs对象.节点名称.节点名称.string 获取嵌套节点内容

This is the graceful file system mounting method, which is effective through personal testing

关于 selenium.common.exceptions.WebDriverException: Message: An unknown server-side error 解决方案(已解决)

NAACL2022:(代码实践)好的视觉引导促进更好的特征提取,多模态命名实体识别(附源代码下载)...

Authoritative announcement on the recruitment of teachers in Yan'an University in 2022

One copy ten, CVPR oral was accused of plagiarizing a lot, and it was exposed on the last day of the conference!

Deploy the flask environment using the pagoda panel
![[solo π] ADB connects multiple mobile phones](/img/44/4bd88725434fb67c9237645f024071.png)
[solo π] ADB connects multiple mobile phones
随机推荐
Minister of investment of Indonesia: Hon Hai is considering establishing electric bus system and urban Internet of things in its new capital
Informatics Olympiad 1405: sum and product of prime numbers (thinking problem)
Get the intersection union difference set of two dataframes
Mark: unity3d cannot select resources in the inspector, that is, project locking
聊聊 RPA 方向的规划:简单有价值的事情长期坚持做
Is it safe to open an online stock account? Somebody give me an answer
[async/await] - the final solution of asynchronous programming
在云服务器中云磁盘如何挂载
Naacl2022: (code practice) good visual guidance promotes better feature extraction, multimodal named entity recognition (with source code download)
获取两个dataframe的交并差集
R language dplyr package bind_ The rows function merges the rows of the two dataframes vertically. The final number of rows is the sum of the rows of the original two dataframes (combine data frames)
人的顶级能量从哪里获取?
vue中缓存页面 keepAlive使用
Use of subqueries
Sharing ideas for a quick switch to an underlying implementation
Cluster addslots establish a cluster
权威发布 | 延安大学2022年教师岗位招聘公告
Is the QR code for account opening given by the manager of the securities firm safe? Who can I open an account with?
R language uses GLM function to build Poisson logarithm linear regression model, processes three-dimensional contingency table data to build saturation model, uses step function to realize stepwise re
Is it safe to open an account by digging money? Is there any risk?