当前位置:网站首页>去除蜂窝状的噪声(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('滤波后结果')
边栏推荐
- Official explanation, detailed explanation and example of torch.cat() function
- electron 应用开发优秀实践
- 商业技术解决方案与高阶技术专题 - 数据可视化专题
- torch.cat()函数的官方解释,详解以及例子
- 1009 Product of Polynomials C语言多项式乘积(25分)
- 乘积量化(PQ)
- caffe ---make all编辑出错
- faster-rcnn中的RPN原理
- caffe ---make all editing error
- Create a table in a MySQL database through Doc
猜你喜欢
Getting Started with MNIST Machine Learning
【 original 】 VMware Workstation implementation Openwrt soft routing, the ESXI, content is very detailed!
在webgis中显示矢量化后的风险防控信息
性能测试(03)-JDBC Request
PoseNet: A Convolutional Network for Real-Time 6-DOF Camera Relocalization Paper Reading
商业技术解决方案与高阶技术专题 - 数据可视化专题
Dialogue with the DPO of a multinational consumer brand: How to start with data security compliance?See you on 8.11 Live!
centos7.5 设置Mysql开机自启动
美的数字化平台 iBUILDING 背后的技术选型
OpenSSF的开源软件风险评估工具:Scorecards
随机推荐
jvm-类加载系统
批量转换经纬度的网页实现方法
cesium加载地图
unix系统编程 第十五章 15.2管道
【 original 】 VMware Workstation implementation Openwrt soft routing, the ESXI, content is very detailed!
详细的np.matmul / np.dot / np.multiply / tf.matmul / tf.multiply / *
grpc系列-初探grpc 路由注册和转发实现
Quartz的理解
Shell script combat (2nd edition) / People's Posts and Telecommunications Press Script 2 Validate input: letters and numbers only
UNIX Environment Programming Chapter 15 15.6 XSI IPC
How tall is the B+ tree of the MySQL index?
我用开天平台做了一个定时发送天气预报系统【开天aPaaS大作战】
中断系统结构及中断控制
Unix System Programming Chapter 15 15.2 Pipes
聚类了解
sublime记录
1005 Spell It Right (20分)
torch.stack()的官方解释,详解以及例子
Netscope:神经网络结构在线可视化工具
vite的原理,手写vite