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

边栏推荐
猜你喜欢

Netscope: Online visualization tool for neural network structures

golang 三种指针类型具体类型的指针、unsafe.Pointer、uintptr作用

centos7.5 设置Mysql开机自启动

c语言函数的递归调用(汉诺塔问题,楼梯递归问题等)

The complete grammar of CSDN's markdown editor

Dialogue with the DPO of a multinational consumer brand: How to start with data security compliance?See you on 8.11 Live!

性能测试(04)-表达式和业务关联-JDBC关联

cesium加载地图
![[Original] Usage of @PrePersist and @PreUpdate in JPA](/img/a0/5aebdef4a12fe55b4782b69e39b817.png)
[Original] Usage of @PrePersist and @PreUpdate in JPA

Probably 95% of the people are still making PyTorch mistakes
随机推荐
人物 | 从程序员到架构师,我是如何快速成长的?
The complete grammar of CSDN's markdown editor
golang 三种指针类型具体类型的指针、unsafe.Pointer、uintptr作用
Probably 95% of the people are still making PyTorch mistakes
微信小程序——天气查询
15.8 the semaphore Unix environment programming chapter 15
备份mongodb数据库(认证)
sublime记录
prometheus接入mysqld_exporter
vite的原理,手写vite
centos7.5 设置Mysql开机自启动
Unix Environment Programming Chapter 15 15.7 Message Queuing
PoseNet: A Convolutional Network for Real-Time 6-DOF Camera Relocalization论文阅读
日期工具类
为什么组合优先于继承
类与对象 (下)
leetcode-搜索旋转排序数组-33
AQS同步组件-FutureTask解析和用例
乘积量化(PQ)
PoseNet: A Convolutional Network for Real-Time 6-DOF Camera Relocalization Paper Reading