当前位置:网站首页>去除蜂窝状的噪声(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('滤波后结果')

边栏推荐
- 获取指定年度所有周的工具类
- 2022年台湾省矢量数据(点线面)及数字高程数据下载
- unix系统编程 第十五章 15.2管道
- Unix Environment Programming Chapter 14 14.4 I/O Multiplexing
- caffe ---make all编辑出错
- Dialogue with the DPO of a multinational consumer brand: How to start with data security compliance?See you on 8.11 Live!
- Cluster understanding
- Unix Environment Programming Chapter 15 15.9 Shared Storage
- matlab fcnchk 函数用法
- MATLAB代码实现三次样条插值
猜你喜欢

自从我使用HiFlow场景连接器后,在也不用担心成为“落汤鸡”了

OpenSSF's open source software risk assessment tool: Scorecards

shap库源码和代码实现

PoseNet: A Convolutional Network for Real-Time 6-DOF Camera Relocalization论文阅读

prometheus接入mysqld_exporter
![[Original] Usage of @PrePersist and @PreUpdate in JPA](/img/a0/5aebdef4a12fe55b4782b69e39b817.png)
[Original] Usage of @PrePersist and @PreUpdate in JPA

人物 | 从程序员到架构师,我是如何快速成长的?

OpenSSF的开源软件风险评估工具:Scorecards

electron 应用开发优秀实践

微信小程序——天气查询
随机推荐
多商户商城系统功能拆解26讲-平台端分销设置
unix系统编程 第十五章 15.2管道
torch.cat()函数的官方解释,详解以及例子
matlab fcnchk 函数用法
[Error record] Solve the problem that ASRock J3455-ITX cannot be turned on without a monitor plugged in
UNIX Environment Programming Chapter 15 15.5FIFO
日期工具类
TensorFlow—计算梯度与控制梯度 : tf.gradients和compute_gradients和apply_gradients和clip_by_global_norm控制梯度
研发需求的验收标准应该怎么写? | 敏捷实践
使用pip成功安装某个库,但pycharm中找不到,此问题的解决方案
Unix Environment Programming Chapter 15 15.7 Message Queuing
arcgis制图之天地图符号样式配置
unix环境编程 第十五章 15.3 函数popen和pclose
2022年台湾省矢量数据(点线面)及数字高程数据下载
For versions corresponding to tensorflow and numpy, report FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate
threejs+shader 曲线点运动,飞线运动
Solve 1. tensorflow runs using CPU but not GPU 2. GPU version number in tensorflow environment 3. Correspondence between tensorflow and cuda and cudnn versions 4. Check cuda and cudnn versions
备份mongodb数据库(认证)
1006 Sign In and Sign Out (25分)
MySQL外键在数据库中的作用