当前位置:网站首页>去除蜂窝状的噪声(matlab实现)
去除蜂窝状的噪声(matlab实现)
2022-08-09 10:52:00 【1nsights】
如下图所示,图片中有蜂窝状的噪声,影响视野,可以通过频域滤波进行消除。
%% 读取图像
i = rgb2gray(imread('图1.jpg'));
figure(1)
subplot(221),imshow(i,[]),title('原图')
i_fft = fftshift(fft2(i));
subplot(222),imshow(abs(log10(abs(i_fft)+1)),[]),title('原图对应频谱')
%% 生成频域高斯低通滤波
x = linspace(-23,24,480);
y = linspace(-31,32,640);
[X,Y] = meshgrid(y, x);
D=sqrt(X.^2+Y.^2);
D0=0.1*35;
H=exp(-(D.^2)/(2*(D0)^2));
%% 滤波结果
res_fft = i_fft.*H;
subplot(223),imshow(abs(log10(abs(res_fft)+1)),[]),title('滤波后频谱')
res = ifft2(fftshift(res_fft));
subplot(224),imshow(res,[]),title('滤波后结果')
边栏推荐
- 基于STM32设计的环境检测设备
- json库的dumps()方法和loads()方法
- Preparation for gold three silver four: how to successfully get an Ali offer (experience + interview questions + how to prepare)
- 山东招远通报星童幼儿园食品安全问题最新调查情况
- 依赖注入(Dependency Injection)框架是如何实现的
- Create a table in a MySQL database through Doc
- 2022年台湾省矢量数据(点线面)及数字高程数据下载
- 性能测试(04)-表达式和业务关联-JDBC关联
- autogluon安装,使用指南,代码
- 1008 Elevator (20分)
猜你喜欢
随机推荐
pytorch widedeep文档
Missing URI template variable ‘employeeNumber‘ for method parameter of type String
Pyhton实战汇总篇
unix环境编程 第十五章 15.5FIFO
kubernetes中不可见的OOM
如何在gazebo进行 joint的转动控制
相关系数计算,热力图绘制,代码实现
tensorflow实现线性方程的参数调整
tensorflow和numpy对应的版本,报FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecate
微信小程序——天气查询
Multi-merchant mall system function disassembly 26 lectures - platform-side distribution settings
985毕业,工作3年,分享从阿里辞职到了国企的一路辛酸和经验
在webgis中显示矢量化后的风险防控信息
prometheus接入mysqld_exporter
性能测试(01)-jmeter元件-线程组、调试取样器
TensorFlow—计算梯度与控制梯度 : tf.gradients和compute_gradients和apply_gradients和clip_by_global_norm控制梯度
[Original] Usage of @PrePersist and @PreUpdate in JPA
WebSocket
Tensorflow realize parameter adjustment of linear equations
caffe ---make all editing error